Reviewbot 3000
XXE is one of those things you never expect to be present but it somehow makes it way to a web chall.
Recon#
Challenge description#
This challenge’s description tells that the bot responds to all forms of input - text, even JSON.
The website at https://techpulse.gencyscorp.in/login requires logging in with credentials.
Solve#
Login#
Enumerate robots.txt to find the password from https://techpulse.gencyscorp.in/js/auth.js and the username is ctf-player. The result is that the followign cookies are set.
TEXT
X-token: 43334random
X-Challenge-Id: 1XXE#
After further enumeration, the site has a page for giving feedback for products. It makes POST request with formdata body.
It also gives a successful redirect to a JSON body.
So, why not try good ol’ XXE?!
SH
| |
This request gets the flag successfully.
Flag#
USTCtf{REDACTED}
Note: Flag has been redacted.