Skip to content
Access control Write-up Intermediate

I Found a Zero-Day Exploit & Got Paid $3000 — Full Real-World Breakdown!

An internal API endpoint that returned 403 Forbidden could be accessed by sending a specific Referer header, leaking database credentials and configuration data. The attacker used the leaked credentials to access a staging database, crack an admin password, log into the admin panel, and upload a PHP shell to execute commands.

theindiannetwork Follow

Published on theindiannetwork.medium.com

Bug bounty hunting and security research demand patience, creativity, and deep technical knowledge. In this article, I’ll walk you through my journey of discovering a zero-day vulnerability, my failed attempts, and how I ultimately reported it responsibly for a bounty.

TheIndianNetwork, on theindiannetwork.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 API relied on the client-controlled Referer header for access control instead of proper authentication.

Impact

An attacker could exfiltrate data, modify records, and execute arbitrary commands on the system.

What the attacker needed

Knowledge of the internal API endpoint; ability to send custom HTTP headers

The fix

The company restricted API access and added proper authentication.

How it was found

  1. Send a request to the internal API endpoint with a Referer header pointing to an admin page.
  2. Observe that the response contains sensitive configuration data including database credentials.
  3. Use the leaked credentials to access the staging database and obtain admin email addresses and password hashes.
  4. Crack the password hashes to recover an admin password.
  5. Log into the admin panel using the recovered credentials.
  6. Upload a malicious PHP shell via a file upload feature and execute system commands.

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 tricked into thinking a request comes from a trusted page by faking the 'Referer' header, which is supposed to tell where a link was clicked from. Here, the server used that header as a security check, so anyone who set it to an admin page could see private data. That data included passwords, which then let the attacker take over the system.

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 theindiannetwork

View all

23 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.