Skip to content
Info disclosure Disclosed report Beginner

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.

vaib25vicky Follow

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.

The original report as published on HackerOne, by vaib25vicky. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Have an account with private email settings.
  2. Send a GraphQL query for a user by username, requesting the email and username fields.
  3. 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.

More by vaib25vicky

View all

5 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.