Skip to content
Access control Write-up Intermediate

6 Hours, 6 Real-world Critical Bugs: A Case Study in Efficient Bug Hunting

A forgotten subdomain exposed an API that returned employee records when given an invalid bearer token, and hidden pagination parameters then allowed retrieval of over 15,000 records. The same host leaked log files, a backup archive with full source code, production configuration with database credentials, and a directory listing containing SQL dumps and private keys.

0xzyo Follow

Published on 0xzyo.medium.com

This writeup documents a hunting session where I found 6 critical vulnerabilities in roughly 6 hours(Real-World Cases with explanation). The goal here isn’t to brag, it’s to share the methodology and thought process that busy researchers can use.

Ziad (Zierax), on 0xzyo.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

Root cause

Likely the application trusted the presence of an Authorization header without validating the token, and stale debug, log and backup files were left publicly reachable on a forgotten host.

Impact

An unauthenticated attacker could read tens of thousands of employee records, download full application source code, and obtain production database credentials, potentially leading to direct database access.

What the attacker needed

No account needed; target host reachable over HTTP

How it was found

  1. Send a request to the user API endpoint with an invalid bearer token and observe that data is returned.
  2. Use parameter discovery to find hidden pagination parameters on the same endpoint.
  3. Set a very large page limit to retrieve the full employee dataset.
  4. Extract a hidden API path from a JavaScript file and fuzz it to find a file-reading endpoint.
  5. Add a privilege parameter found in the JavaScript to read a private key file.
  6. Read an exposed log file, then fetch the backup archive and configuration files it references.

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 was left running an old application that nobody watched. One of its interfaces accepted any made-up login token and handed back staff details, and a hidden setting let the author pull the whole staff list. Other files on the same server, such as logs and backups, were readable without logging in and contained passwords and source code.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by 0xzyo

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.