Access Denied to Hall-of-Fame
A subdomain exposed internal server configuration files, including server.js and package.json, and later a database.js file that revealed internal MongoDB connection details and IP addresses. An attacker could use this information to learn about the internal network structure.
medium.com
Published on medium.com
Click for Freee….eeeee Reading 👈
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the web server was misconfigured to serve internal configuration files from a publicly accessible directory.
What the attacker needed
None
How it was found
- Gather URLs from the Wayback Machine and extract unique domains.
- Check which domains are live using httpx.
- Pick a subdomain and notice a document path under /docs/.
- Run directory brute-forcing on the /docs/ path to find accessible files.
- Discover server.js and package.json are publicly accessible.
- Guess a path based on the environment variable and access database.js, which returns HTTP 200 after a retry.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The website had some files that were not meant to be public, like a server configuration file. These files showed how the internal database is set up and included private network addresses. Anyone who found them could learn about the hidden parts of the system.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.