Published on: February 5, 2025
3 min read · Posted by Baba is Dead
Take a tour of the deep sea! Explore the depths of webpage secrets and find the hidden treasure. Pro tip: Zoom out!
This challenge is a simple inspect element challenge. We are greeted with this landing page
Following the pro tip, we zoom out to see a bunch of sea creatures we can click on
Alternatively, you can inspect element to figure out which pages to go to
<a href="/shark">...</a>
<a href="/squid">...</a>
<a href="/clam">...</a>
<a href="/shipwreck">...</a>
<a href="/whale">...</a>
<a href="/treasure">...</a>
Each of these endpoints bring us to a different page where different parts of the flag are hidden, with hints on where to find them. I will just briefly outline the solutions to each one
Inspect element and look at the HTML
<div class="notFlagPartTrust">
<!-- You found the shark! Part 1 of the flag: "bcactf{b3}" -->
</div>
Inspect element and look at the javascript being loaded, or open the console.
You found it! Here's the second part of the flag: "t_y0u_d1"
We are given a hint in the console:
Hint: how do websites remember you? Where do websites store things?
Website’s store things in a few places:
We can check these places by going to inspect => application
We can check both the cookies and local and session storages, to find the flag part 3 in the cookies.
We are given a hint in the console
To check the response headers, we go to Network tab of our inspector
Here we can take a look at the response headers, to find the 4th part of the flag
No direct hints given here, so we take a look at the javascript. You can do this via the network tab, and double clicking whale.js, or simply find it under the sources tab.
// Part 5 of the flag: "e4sur3"
The hint given here is
robots.txt is a special file which tells search engine crawlers which URLs the crawler can access on your site. Usually, it might house hidden endpoints, but for some ctfs, they just store the flag there. So, we navigate to /treasure/robots.txt to see it’s contents.
The final flag is bcactf{b3t_y0u_d1dnt_f1nd_th3_tre4sur3_t336e3}
Please login to comment
No comments yet