GraphQL Query leads to sensitive information disclosure
The GitLab GraphQL API returned user email addresses that are not shown on public profile pages, and a user could query the API to obtain them.
- Disclosed after 6 months
NOTE! Thanks for submitting a report! Please replace all the (parenthesized) sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!
Summary
Graphql Query mentioned below disclosed emails of profiles which are not visible on their public pages in gitlab
Steps to reproduce
1> Go to Gitlab Graphql Explorer (https://gitlab.com/-/graphql-explorer) 2> Use the query to fetch the information
{
users {
edges {
node {
username
email
avatarUrl
status {
emoji
message
messageHtml
}
}
}
}
}
3> Navigate through any of the public profile of the usernames fetched with url : https://gitlab.com/username 4> Email information is not displayed in the public profile while the graphql query fetches it
Impact
This can be abused since email address is not publicly visible through gitlab profile. Any person can access user emails and try to hack their accounts using brute-force etc.
What is the current bug behavior?
It displays sensitive information about the user which is not available in their public profile
What is the expected correct behavior?
it should only display public profile information such as username but not email
Relevant logs and/or screenshots
Screenshot attached
Impact
This can be abused since email address is not publicly visible through gitlab profile. Any person can access user emails and try to hack their accounts using brute-force etc
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
Root cause
Likely the GraphQL user type exposed the email field without checking whether the requesting user was allowed to see it.
Impact
An attacker could collect email addresses of GitLab users and use them for brute-force attacks or other abuse.
How it was found
- Open the GitLab GraphQL Explorer.
- Run a query that requests users and their email fields.
- Open a public profile page for one of the returned usernames.
- Observe that the email is not shown on the profile but was returned by the query.
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.
GitLab has a GraphQL API that lets programs ask for information in a structured way. The API was giving back email addresses for users even though those emails are hidden on the normal website.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.