XPATH Injection

XPath Injection is an attack technique used to exploit applications that construct XPath (XML Path Language) queries from user-supplied input to query or navigate XML documents.

Summary

Tools

Methodology

Similar to SQL injection, you want to terminate the query properly:

Blind Exploitation

  1. Size of a string

  2. Access a character with substring, and verify its value the codepoints-to-string function

Out Of Band Exploitation

Labs

References

Last updated