Detailedseverity: MediumDraft
CAPEC-243XSS Targeting HTML Attributes
Abstraction
Detailed
Status
Draft
Severity
Medium
Description
An adversary inserts commands to perform cross-site scripting (XSS) actions in HTML attributes. Many filters do not adequately sanitize attributes against the presence of potentially dangerous commands even if they adequately sanitize tags. For example, dangerous expressions could be inserted into a style attribute in an anchor tag, resulting in the execution of malicious code when the resulting page is rendered. If a victim is tricked into viewing the rendered page the attack proceeds like a normal XSS attack, possibly resulting in the loss of sensitive cookies or other malicious activities.
Related weaknesses· 1
Related attack patterns· 3
Exploits1
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Weakness | Improper Neutralization of Script in Attributes in a Web Pagecwe-83 | 100% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.