solved by hartmannsyg
After making a website on my favourite stuffed toy, the Blahaj, I made a flag and hid it somewhere on the website. But now I cannot find it! Please help me get my flag again š¢
This is a Flag Hunt challenge, with the flag split into multiple parts.
Part 1
If we go to the /about
page, we view the websiteās source (Inspect Element or Ctrl+U). Part 1 of the flag is at the bottom of the file:
193 | </body> <!-- Oops, this is where I left the first part of the flag. --> <!-- blahaj{i_l0v3_b14 --> <!-- If only I knew where to find the other parts of the flag... --> </html> |
So the first part is blahaj{i_l0v3_b14
Part 2
Many websites have a ./robots.txt
to instruct web robots (typically search engine robots) how to crawl pages on their website. It is also almost always used in these sort of āFlag Huntā challenges. In the /robots.txt
we have:
1 | Oops, this is where I left the second part of the flag. |
So the second part is haj_and_y0u_shou
Part 3
The last part was harder. I didnāt know where the next part could be, but after dirbusting a lot of trial and error, I found /sitemap.xml
:
1 | <sitemapindex> |
We see an extremely suspicious /sup3r-s3cr3t
endpoint. However when we went there they greeted us with:
1 | <p>GET functionality still in development</p><br><!-- TODO: Make this page request automatically POST --> |
So I did a POST
request to /sup3r-s3cr3t
, and I received:
1 | What is your fav_plush? |
Just how many layers do you want this third part to be????
Anyways after fiddling with url parameters, Headers, and json, I submited a x-www-form-urlencoded
(default) with fav_plush: blahaj
:
1 | import requests |
and I got the flag:
1 | Welcome back, here is the 3rd part of the flag.<br> |
Putting it all together: blahaj{i_l0v3_b14haj_and_y0u_shou1d_70o_^_^}