Skip to content
Info disclosure Disclosed report Beginner

Service desk email address of a project is being leaked through graphql to non-members of the project even If a custom suffix is set for the same.

The GraphQL API exposed a project's service desk email address to non-members, even when a custom suffix was set to keep it secret. An attacker could use this address to send spam or vandalise the project's issue tracker.

GitLab

Originally disclosed on GitLab

  • Fixed in 25 days
  • Disclosed after 25 days

HackerOne report #1439254 by albatraoz on 2022-01-02, assigned to @cmaxim:

Report | Attachments | How To Reproduce

Report

Summary

I've reported this vulnerability previously too but closed it as N/A myself as the service desk email address is guessable If we have a project name. But this time I saw some activity on gitlab issues about the visibility & it has been changed to reporter & also If any project owner decides to add suffix to their service desk email address to defend the spam, that too would be exposed through graphql.

Steps to reproduce
  1. Visit https://gitlab.com/-/graphql-explorer
  2. Put the following graphql query and hit play
query{  
  project(fullPath:"gitlab-org/gitlab") {  
    id  
    serviceDeskAddress  
  }  
}

You will see the internal service desk email of the project in the response.

{
  "data": {  
    "project": {  
      "id": "gid://gitlab/Project/278964",  
      "serviceDeskAddress": "contact-project+gitlab-org-gitlab-278964-issue-[@]incoming.gitlab.com"  
    }  
  }  
}
What is the current bug behavior?

Service desk email address is visible to non members of a project.

What is the expected correct behavior?

Service desk email address should be visible only to members of a project with minium reporter level access.

Relevant logs and/or screenshots
GraphiQL.png
GraphiQL.png From the original on GitLab
Issue references

https://gitlab.com/gitlab-org/gitlab/-/issues/345692
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74179

Impact reference

https://gitlab.com/gitlab-org/gitlab/-/issues/329446#note_563640175

Impact

Even though the service desk email address is guessable If we have the project name, If the owner decides to add a secret suffix only visible & shared with project members, the email address would be leaked to non members through graphql. This can lead to issue spam or vandalism of a project.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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

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

The service desk email address, including any secret suffix, could be leaked to non-members, potentially leading to issue spam or vandalism of the project.

What the attacker needed

Access to the GraphQL API; knowledge of the project path

The fix

The service desk email address should only be visible to project members with at least reporter access.

How it was found

  1. Visit the GraphQL explorer page.
  2. Run a query that requests the serviceDeskAddress field for a project.
  3. Observe the service desk email address in the response.

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 service desk email address lets people create issues in a project by sending an email. The project owner can add a secret suffix to this address so only people who know the suffix can use it. The bug meant that anyone, even without being a project member, could see the full address through a query to the GraphQL API, defeating the secrecy of the suffix.

What is Info disclosure?

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

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.