The Bug I Slept On: How a 404 Error Led to My First-Ever Bug Boun
An endpoint exposed an archive containing Open Policy Agent configuration files and employee data, including names, emails, roles, and IDs. An attacker could download this archive to obtain sensitive employee information and a blueprint of the internal access control architecture.
Published on hamzabohra.medium.com
Every bug hunter knows the feeling. You’re staring at your screen at 2:00 AM, eyes burning, looking at a JSON response that seems… too good.
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
Impact
An attacker could obtain employee PII and a complete blueprint of the internal access control architecture, which could be used for further attacks or social engineering.
What the attacker needed
No authentication required; Endpoint /opa/data is publicly accessible
How it was found
- Perform reconnaissance to find live subdomains and spider them to discover a Swagger UI endpoint.
- Audit every endpoint listed in the Swagger UI.
- Send a GET request to /opa/data.
- Download and unpack the returned archive (a.tar.gz).
- Inspect the archive contents, which include OPA policy files and JSON data mapping employees to roles and permissions.
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 had a file that anyone could download without logging in. That file contained private information about employees and details about how the company decides who can access what. This is a problem because attackers could use that information to target employees or understand the system's security.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.