XPath Injection
IntermediateThe login endpoint authenticates against an XML user store by concatenating your username and password straight into //user[username='…' and password='…']. A single quote breaks out of the string and can make the predicate always true. Forge a payload, bypass authentication, then switch to parameterized XPath.
Progress:
1
Bypass the Login2
Log in as Admin3
Escape the Input⚡ Login form
POST /api/login
//user[username='…' and password='…']
🛡 Server protection
Server response log
Waiting for login attempt…