CAPEC-588: DOM-Based XSS

ID CAPEC-588
Typical Severity Very High
Likelihood Of Attack High
Status Stable

This type of attack is a form of Cross-Site Scripting (XSS) where a malicious script is inserted into the client-side HTML being parsed by a web browser. Content served by a vulnerable web application includes script code used to manipulate the Document Object Model (DOM). This script code either does not properly validate input, or does not perform proper output encoding, thus creating an opportunity for an adversary to inject a malicious script launch a XSS attack. A key distinction between other XSS attacks and DOM-based attacks is that in other XSS attacks, the malicious script runs when the vulnerable web page is initially loaded, while a DOM-based attack executes sometime after the page loads. Another distinction of DOM-based attacks is that in some cases, the malicious script is never sent to the vulnerable web server at all. An attack like this is guaranteed to bypass any server-side filtering attempts to protect users.

https://capec.mitre.org/data/definitions/588.html

Weaknesses

# ID Name Type
CWE-20 Improper Input Validation weakness
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') weakness
CWE-83 Improper Neutralization of Script in Attributes in a Web Page weakness

Taxonomiy Mapping

Type # ID Name
OWASP Attacks Reflected DOM Injection
Loading...