XPath Injection
A vulnerability where user input in XPath queries allows attackers to manipulate query logic to access unauthorized data from XML documents.
XPath Injection is a vulnerability where user input is incorporated into XPath queries without proper sanitization, allowing attackers to manipulate queries to access unauthorized data from XML documents.
How It Works
XPath is a query language for selecting nodes from XML documents. When applications build XPath queries using unvalidated user input, attackers can inject XPath syntax to modify query logic, similar to SQL injection.
Impact
- Authentication bypass
- Unauthorized data access
- Information disclosure from XML stores