How I Uncovered an Email Leak That Could Have Cost Millions
An API endpoint returned user email addresses without requiring authentication when a user ID parameter was supplied. An attacker could enumerate user IDs to harvest email addresses for phishing or account takeover.
medium.com
Published on medium.com
π The Day Everything Changed As a bug bounty hunter, every click holds potential. One afternoon, while testing a popular SaaS platform, I stumbled upon something unsettling: exposed user email addresses hidden in plain sight.
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 endpoint did not check whether the requester was authenticated and returned sensitive fields such as email in its response.
Impact
An attacker could scrape email addresses of all users, which could enable phishing, account takeovers, and reputation damage; the text does not state that a defence blocked the exploit.
What the attacker needed
No authentication required; knowledge of user ID parameter
The fix
The company should validate user sessions for sensitive endpoints, implement rate-limiting, and sanitise API responses to exclude emails unless necessary; the text says the company fixed it but does not describe the actual fix.
How it was found
- Capture API requests using a tool such as Burp Suite.
- Change the user_id parameter to different sequential values.
- Check whether the responses contain email addresses without authentication.
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.
An API is a way for programs to talk to each other. Here, a request for a user's profile also included their email address, and anyone could make that request without logging in. By changing the user ID number, someone could collect many email addresses.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.