Cross-site scripting (XSS)
Lesson 10 of 20 · Sec.Micro
When a page shows user text as HTML, it can run an attacker's script.
Your comment (only simulated: nothing here is ever executed)
Normal comments are just text. The question is how the page inserts them into its HTML.
Do it in the browser: a real cybersecurity tool, a short mission and instant feedback. No install.
Start this lesson — free