pentesting, updated

Testing for XPath Injection

Check whether input reaches an XPath query unsanitized, letting you alter the query logic against XML data stores.

Goal

Confirm XPath queries built from user input are parameterized rather than concatenated.

How to test

Try classic auth-bypass style payloads against any field querying XML data:

' or '1'='1
x' or 1=1 or 'x'='y
curl -s https://example.com/login -d "user=' or '1'='1&pass=' or '1'='1"

What to look for

A login bypass or a query returning more data than the legitimate input should.

References

§ home
~/knubertus/home/
1,1 Top