CS Fundamentals Trainer · JavaScript · Security
Put the steps of a stored XSS attack in order, first to last.
- A victim opens the page that lists the comments
- The attacker submits a comment containing `<img src=x onerror=...>`
- The server inserts the comment into the HTML response without encoding it
- The server saves the comment in its database unchanged
- The victim's browser parses the markup and runs the handler in the site's origin
Difficulty: easy