The Night I Found a Public Log Directory Exposing Nearly a Gigab
A publicly accessible log directory on a production API exposed downloadable error and request log files totalling nearly one gigabyte. An attacker could read internal error details and request data that may include tokens, API keys and session identifiers.
Some vulnerabilities appear with fireworks — a broken auth flow, a misconfigured endpoint, a juicy SQL injection.
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 configured to allow directory listing and did not restrict access to the log folder.
Impact
An attacker could download the logs and use internal error details and any tokens, API keys or session identifiers present in request logs to plan or carry out further attacks.
What the attacker needed
No authentication required; log directory reachable on the internet
How it was found
- The tester was testing a utility API as part of a bug bounty programme.
- The tester opened the log directory path in a browser.
- A directory listing appeared showing error.log and requests.log.
- The tester confirmed both files were publicly downloadable.
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.
A web server can be set up to show a list of files in a folder, like opening a drawer and seeing everything inside. Here a folder meant for internal logs was left open to anyone on the internet, so visitors could download the files. Those files can contain private details about how the system works and what users sent to it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.