Finding the two halves of a DOM XSS data flow
DOM-based XSS happens entirely in client-side code. JavaScript reads attacker-influenced data from a source such as location.search, location.hash, document.referrer, storage or postMessage, then passes it to a sink that interprets text as HTML or code.
Scan.now reviews inline scripts and a bounded set of same-origin JavaScript files for recognised sources and dangerous sinks. When both appear, it reports a candidate for developer review. Static proximity is not proof that data flows between them, so this check deliberately reports information rather than claiming confirmed exploitation.