DOM-Based XSS
IntermediateThe search page copies location.hash straight into innerHTML. The payload never touches the server — the sink is in the browser. Craft an HTML payload, watch it "execute", then switch to a safe sink.
Progress:
1
Pop a Script via the Hash2
Steal the Session Cookie3
Neutralize with textContent⚡ URL fragment payload
https://shop.example.com/search#…
🛡 Client-side fix
Render trace
Waiting for a fragment…