Skip to content
Info disclosure Write-up Beginner

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.

Hamzabohra Follow

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.

Hamzabohra, on hamzabohra.medium.com

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

  1. Perform reconnaissance to find live subdomains and spider them to discover a Swagger UI endpoint.
  2. Audit every endpoint listed in the Swagger UI.
  3. Send a GET request to /opa/data.
  4. Download and unpack the returned archive (a.tar.gz).
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.