terminal What is XSS?
Cross-Site Scripting (XSS) is a security vulnerability where an attacker injects malicious scripts (usually JavaScript) into a trusted website. When other users view the infected page, their browser executes the script, thinking it's legitimate code from the website.
- cookie Steal Cookies: Attackers can hijack user sessions and take over accounts.
- visibility Spy on Users: Log keystrokes, capture screenshots, or track browsing history.
- theater_comedy Deface Websites: Change the content or appearance of the site for visitors.
Welcome, User!
Here is your comment:
The Attack Simulation Lab
Try to hack this mock application. Then, turn on defenses to stop yourself.
security Defense Console
Try these payloads:

Hello World
Admin
Welcome to the feed! Feel free to leave a comment below.
Analysis Log
Waiting for input...
The 3 Flavors of XSS
1. Stored XSS
Most DangerousThe malicious script is permanently stored on the server (e.g., in a database). Every time a victim loads the page, the server serves the script to them.
2. Reflected XSS
Most CommonThe script is part of the request (e.g., URL parameters) and the server reflects it back in the response immediately. It's not stored.
site.com?search=