Cross-Site Scripting (XSS) happens when attacker-controlled JavaScript runs in the victim’s browser. The three variants differ in where the payload enters the flow — but the end result is always the same: arbitrary JS in a trusted origin, which lets you read cookies, hijack sessions, exfiltrate data, and impersonate users.
Quick Reference
- 📋 Cheatsheet & Checklist — payloads, listener setup, methodology
Sections
- XSS Types — Stored, Reflected, DOM-based
- Discovery — manual testing, automated tools, code review
- Defacing — modifying page appearance via DOM
- Phishing via XSS — fake login forms in a trusted origin
- Session Hijacking — cookie theft and replay
- Blind XSS — exploiting endpoints you can’t see
- Prevention — output encoding, CSP, defensive patterns
