PicoCTF Challenge: More SQLi
Challenge Overview:
- The following was the description for the challenge:
Deep dive
- We first test the behavior of the website:
- The response:
- Right, so there is something important to note here; is that, the order of the user input is reversed, hence this makes the challenge, a bit tricky.
- And this means we cannot use the comment query to the username; for instance:
- Check where i highlighted, that is is pointless to use a comment query there.
- After trying numerous payloads, i found the one that worked:
username: admin password: ' OR 'x'='x' --- Response:
- Response:
- We are logged in, but we have to hunt for the flag; after analyzing the source code i found nothing:
- After playing around with “devtools”, and a tool that always go hand in hand with web exploitation is burpsuite.
Burpsuite
- In this case, the flag was in plainsight in burbsuite: