← Back
XPath-injection-String | Avishai’s CTF Writeups

Avishai's CTF Writeups

Yalla Balagan! A collection of my CTF writeups and solutions.

View on GitHub

Here we uses this payload from payloadAllTheThings

')] | //user/*[contains(*,' 

It says: concat to the results from before |, and select all nodes (/*) under user (//user), which contains anything (contains(*)

We can on the same way ask for this query, and by this way search only in the passwords section:

')] | //user/password[contains(*,' 

FINAL

Flag: MB5PRCvfOXiYejMcmNTI