Stories of Sensitive Data Exposure: What I Found as a Pentester and How You Can Prevent It: Episode 1—Data Leakage
A GraphQL endpoint returned full user profile details (name, phone, role, internal ID) for any email address supplied, without authentication or authorization. An attacker could enumerate all user accounts by automating requests with different email addresses.
Published on systemweakness.com
Hello everyone. I am Yamini Yadav, a security engineer, an OSCP-certified professional, and a passionate bug bounty hunter.
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 GraphQL endpoint lacked authentication and authorization checks, allowing any caller to retrieve user data by supplying an email address.
Impact
An attacker could enumerate all user accounts and obtain personal data such as full name, phone number, role, and internal user ID, which could enable identity theft or further attacks.
What the attacker needed
Knowledge of a valid email address; no authentication required
The fix
The endpoint should enforce authentication and authorization checks and return only the minimum necessary data.
How it was found
- Intercept and replay API requests using Burp Suite.
- Find a GraphQL endpoint used to fetch user data.
- Change the email parameter in the request.
- Observe the server returning complete profile details for the supplied email.
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 asking for user data by email returned private details for anyone, with no login needed. That means someone could write a script to try many email addresses and collect personal information about every user.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.