$ cat writeup.md…
$ cat writeup.md…
umasscybersec
Task: a PHP site exposed internal docs in robots.txt and a vulnerable ?file= reader under /internal-docs/. Solution: path traversal disclosed source files, revealing the hidden admin dashboard, default credentials, and the hardcoded flag.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
Organizer description was not preserved in the local task files.
English summary: a PHP website exposed internal documentation via robots.txt. Those documents described a file-read endpoint that could be abused with path traversal to read application source code, discover a hidden admin dashboard, and recover both credentials and the flag.
The main clue was robots.txt, which pointed to /internal-docs/. One internal document described a file read feature that accepted ?file=.
Reading index.php showed the server prepended /var/www/html/ to the user-controlled filename and only blocked inputs starting with /etc/passwd. Because the application did not canonicalize the path, traversal sequences such as ../ still worked, giving a local file inclusion / arbitrary file read primitive.
Using that primitive on config.php revealed the hidden route /dashboard-admin.php. Reading that file then exposed default credentials administrator / administrator and the same flag constant returned after login.
robots.txt and discover /internal-docs/.?file= endpoint.index.php and confirm weak blacklist-based filtering.config.php to recover the hidden admin dashboard path.dashboard-admin.php to obtain the default credentials and the flag constant.administrator / administrator and retrieve the flag from the dashboard....
$ grep --similar