Cyber Risks · PortSwigger Research

DOM-based Java Script injection

Summary: DOM-based JavaScript-injection vulnerabilities arise when a script executes attacker-controllable data as JavaScript, letting an attacker construct a URL that runs arbitrary JavaScript in a victim's browser session if that user visits it. PortSwigger says users can be induced to visit the malicious URL through delivery vectors similar to those used for reflected cross-site scripting, and the injected code can steal session tokens or login credentials, perform arbitrary actions on the victim's behalf, or log keystrokes.

Why it matters: The payload runs inside the victim's own browser session, so the stolen session token or credentials are already authenticated - and the delivery method is the same link-luring that reflected XSS has relied on for years.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related