$100 Bug Bounty: Exposing User Emails via GraphQL on an Earning S
A GraphQL endpoint on a subdomain had introspection enabled and a user query that returned email addresses without authentication. By changing the user ID in the query, an attacker could retrieve the email addresses of other users.
What’s better than grinding for $2 in 4 hours on an earning site? Finding a security vulnerability and getting paid $100 instead! 😆
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 on the user query, and introspection was left enabled, allowing enumeration of the schema and access to other users' data by changing the ID.
Impact
An unauthenticated attacker could enumerate and collect the email addresses of all users on the platform.
What the attacker needed
None
The fix
The report states the issue was fixed by disabling introspection, adding authentication and authorization checks, and removing email addresses from unnecessary queries.
How it was found
- Check subdomains and find one with GraphQL introspection enabled.
- Run an introspection query to list all available queries and mutations.
- Identify a query that returns user details including email addresses.
- Send the query without authentication and change the user ID to retrieve other users' emails.
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.
GraphQL is a way for apps to ask a server for specific data. Introspection is a feature that lets anyone see the full list of available queries. Here, the server also failed to check who was asking, so simply changing a user ID returned other people's email addresses.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.