Skip to content
Info disclosure Write-up Beginner

Biggest Information Disclosure Bug I Found Today — Easily Worth $800+ in Bug Bounty!

A hardcoded API key in a JavaScript file gave access to an internal API that returned full user details, including hashed passwords. By changing the user_id parameter, the author could access other users' data, showing a lack of proper authentication checks.

theindiannetwork Follow

Published on theindiannetwork.medium.com

Bug bounty hunting is a rollercoaster of emotions. Some days, you’re on top of the world, discovering critical vulnerabilities, and other days, you’re drowning in false positives and duplicate reports.

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 key was embedded in client-side JavaScript and the API did not enforce proper authorisation checks on the user_id parameter, allowing any holder of the key to access arbitrary users' data.

Impact

An attacker could enumerate users and extract sensitive data such as email addresses, usernames, and hashed passwords, potentially leading to account compromise.

What the attacker needed

Access to the target's JavaScript files; a valid API key (found in the JS)

The fix

The API should enforce proper authorisation checks on each request and secrets should not be embedded in client-side code; the text does not state that a fix was applied.

How it was found

  1. Enumerate subdomains and analyse JavaScript files to find endpoints and secrets.
  2. Discover a hardcoded API key and an internal API endpoint in a JavaScript file.
  3. Use the key to call the API and confirm it returns sensitive user data.
  4. Modify the user_id parameter to access other users' details.

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 secret key was left inside a website's code that anyone can download. That key unlocked an internal service that returned private user information, and by changing a number in the request, the author could read other people's data. This is like finding a master key under the doormat and using it to open every flat in the building.

What is Info disclosure?

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

More by theindiannetwork

View all

23 more disclosed reports, best first.

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.