ACECTF 2025 - web - Flag Fetcher
Extracted the flag by analyzing console errors showing failed fetch requests
ACECTF 2025 - web - Flag Fetcher
Challenge Description
1
Hey guys, I created a flag fetcher using some web stacks & technologies. It was supposed to fetch the flag.webp image file which contains the flag, but something went wrong. Can you check it? Maybe just get the flag—I don’t really care if you fix it or not.
Analysis
When I visited the URL, it initially loaded with the path /Flag-Fetcher/
and then redirected to /flag.webp
.
Initial Investigation
- Checked Cookies & Local Storage – Nothing useful.
- Inspected Page Source & Website Elements – No hidden clues.
- Tried Path Traversal – Attempted to fetch files directly, but it didn’t work.
- Checked Apache Version – Found it was the latest version and not vulnerable to known exploits.
- Downloaded
flag.webp
– The file contained no useful information.
Finding the Clue
While inspecting the browser console, I noticed multiple errors related to file fetching. The site was attempting to retrieve specific directory paths but returned 404 Not Found errors.
Extracting the Flag
By carefully checking the errors, I realized the system was fetching each letter of the flag separately. By reconstructing the flag based on these failed requests, I was able to piece together the complete flag.
Lessons Learned
- Always check the browser console for errors – Debug messages might reveal hidden clues.
- 404 errors can still provide useful information – Pay attention to missing files.
- Web applications may unintentionally leak data – Understanding how files are loaded can help retrieve hidden information.
This post is licensed under CC BY 4.0 by the author.