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.
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.
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
- Enumerate subdomains and analyse JavaScript files to find endpoints and secrets.
- Discover a hardcoded API key and an internal API endpoint in a JavaScript file.
- Use the key to call the API and confirm it returns sensitive user data.
- 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.