Testing for XSS
XSS Types
Type
Description
Test Payloads
Basic Test
<script>alert(window.origin)</script>Alternatives (if alert blocked)
<plaintext>
<script>print()</script>
<img src=x onerror=alert(1)>DOM XSS (when script tags blocked)
<img src="" onerror=alert(window.origin)>XSS Discovery Tools
Reflected XSS Exploitation
DOM XSS - Source & Sink
Common Sources (user input)
Dangerous Sinks (vulnerable functions)
Stored XSS
Key Logger
Chat Room XSS
Stored XSS Payloads
DOM-Based XSS
Internal Network Scanner
Website Defacing
Change Background
Change Title
Replace Page Content
Remove Element
XSS Phishing
Inject Login Form
Comment Out Remaining HTML
Session Hijacking / Cookie Stealing
Cookie Stealing Payloads
PHP Cookie Logger (steal.php)
Start Listener
Blind XSS Detection
Remote Script Loading (per field)
Blind XSS Payloads
script.js for Cookie Stealing
Common Injection Contexts
Context
Payload
Bypass Techniques
Case Variation
Encoding
No Parentheses
No Quotes
Filter Bypass Payloads
Last updated