Post

Room 404

He booked the quiet room. It's not on the floor plan, not in the brochure, not on any door. But port 8080 is wide open, and the rooms it never lists are the ones worth finding.

Room 404

image-1193image-1194

image-1195

Solution


Directory Enumeration

Started with dirb against the web root to look for hidden files/directories.

image-1196

.git/HEAD returns 200 OK — the application’s .git directory is exposed on the live web server. This is a classic misconfiguration: a git repo deployed alongside the app without excluding the .git folder.


Confirm Exposure

Browsed directly to the .git path to confirm directory listing is enabled.

image-1197

A full directory listing of the .git internals is available; that’s enough to reconstruct the entire repository, including its commit history.


Dump the Repository

Used git-dumper to pull down the full repo from the exposed .git directory.

image-1198

git-dumper recursively fetches every object, ref, and log needed to rebuild the working tree locally in the repo/ folder.


Recover the Source & Find the Flag

With the repo reconstructed locally, listed the files and read the README.

image-1199

image-1201

And we found the flag!

DONE!!!


This post is licensed under CC BY 4.0 by the author.