CWE-643Improper Neutralization of Data within XPath Expressions ('XPath Injection')

PUBLISHEDweakness recordHigh
released 2008-01-30 · last modified 2025-12-11

Metadata

CWE ID:
CWE-643
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2008-01-30
更新日期:
2025-12-11

名称

Improper Neutralization of Data within XPath Expressions ('XPath Injection')

描述

The product uses external input to dynamically construct an XPath expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This allows an attacker to control the structure of the query.

The net effect is that the attacker will have control over the information selected from the XML database and may use that ability to control application flow, modify logic, retrieve unauthorized data, or bypass important checks (e.g. authentication).

常见后果

范围:
Access Control
影响:
Bypass Protection Mechanism
注释:
Controlling application flow (e.g. bypassing authentication).
范围:
Confidentiality
影响:
Read Application Data
注释:
The attacker could read restricted XML content.

相关 CWE

相关警报