Able to leak private email of any user given his/her username via graphql
The GraphQL user query returned the email field even when a user had set their email to private. An attacker could retrieve any user's private email address by knowing only their username.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 4 months
Summary
Graphql query user is leaking private email of users
query {
user(username:"<victim>"){
email
username
}
}
Steps to reproduce
(Step-by-step guide to reproduce the issue, including:)
- Have a account with private email settings
- Use graphql query to access the private email
query {
user(username:"<victim>"){
email
username
}
}
- Done
Impact
Leaks private emails of users by just knowing their usernames. Attacker can use this bug for mass leakage of gitlab users private emails.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could leak private emails of users by just knowing their usernames, potentially at mass scale.
What the attacker needed
Know the victim's username; ability to send GraphQL queries
How it was found
- Have an account with private email settings.
- Send a GraphQL query for a user by username, requesting the email and username fields.
- Observe that the private email is returned.
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 report has not been written yet. The Original tab links to the source.
A GraphQL query is a way to ask a server for specific pieces of information. Here, the server was supposed to hide a user's email if they marked it private, but it still sent it back when asked. Anyone who knew a username could therefore see that person's private email address.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.