picoCTF · picoGym Web Exploitation Easy 50 pts

Scavenger Hunt — Flag Across 5 Server Files

OWASP A05 — Security Misconfiguration

Vulnerability Overview

The flag was distributed across five separate files, each one hinting at the location of the next. The challenge demonstrates the range of files a web server can inadvertently expose — from developer comments in source code to server configuration files and OS metadata.

Exploitation Chain

StepFileFound
1HTML source (Ctrl+U)picoCTF{t
2mycss.cssh4ts_4_l0
3myjs.js → hint to robots.txtt_0f_pl4c
4robots.txt → hint to .htaccess3s_2_lO0k
5.htaccess → hint to .DS_Store_9588550}

Files Every Pentester Checks

FileWhat It Can Reveal
/robots.txtPaths the site wants to hide from indexing — often exposes admin panels, staging endpoints
/.htaccessApache directory configuration — can expose rewrites, authentication rules, allowed file types
/.DS_StoremacOS directory metadata accidentally pushed to the server — can enumerate directory contents
/.git/Full source code history if a git repo is deployed without excluding the .git folder
Key Insight: robots.txt is public. Listing a path under Disallow advertises it to anyone who reads the file — it does not restrict access. Server configuration files and OS metadata files accidentally committed to the web root are a real and common vulnerability. Always audit what files are deployed alongside application code.
Flag See challenge on picoCTF picoGym