Service desk email is leaked via API for all users despite any role in the private project
The service desk email of a private project was exposed through the project API to any user, including Guest, despite documentation saying it should only be visible to Maintainers and above.
GitLab
Originally disclosed on GitLab
- Fixed in 57 days
- Disclosed after 57 days
HackerOne report #1360744 by gratitude101 on 2021-10-06, assigned to @cmaxim:
Report | How To Reproduce
Report
Summary
Service desk email is leaked via API for all users despite any role in a project. The documentation here says The unique internal email address is visible to project members with Maintainer (or higher) permission level in your GitLab instance but that is not the case, the email address is leaked here https://gitlab.com/api/v4/projects/[PROJECT_ID] for any user i.e., GUEST, REPORTERetc
Steps to reproduce
- Login to gitlab and create a private project and navigate to the project.
- Navigate to
Settings ->General -> Service Deskand toggleActivate Service Deskand clickSave changes - Now navigate to
Project information -> Membersand invite a user asGuest - Now login as
Guestuser and navigate toIssues -> Service Desk, the email address is not shown in the UI - Now navigate to
https://gitlab.com/api/v4/projects/[PROJECT_ID], replacePROJECT_IDwith your Project ID which you can get in the root of the project, you should see service desk email being leaked in the response.
The problem is also for public projects.
Impact
Service desk email is leaked via API for all users despite any role in the private project
What is the current bug behavior?
Service desk email is leaked via API for all users despite any role in the private project
What is the expected correct behavior?
According to the docs, the service desk email should not be leaked for any user below Maintainer role.
Output of checks
This bug happens on GitLab.com
Impact
Service desk email is leaked via API for all users despite any role in the private project despite the documentation saying the opposite
How To Reproduce
Please add reproducibility information to this section:
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 API endpoint that returns project details did not properly restrict the service desk email field based on the user's role.
What the attacker needed
A GitLab account; access to a private project as Guest or higher
How it was found
- Log in to GitLab and create a private project.
- Enable Service Desk in the project settings.
- Invite a user as Guest to the project.
- Log in as the Guest user and confirm the service desk email is not shown in the UI.
- Request the project API endpoint with the project ID and observe the service desk email 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 lets people create issues by email. The report says even a Guest could see this email by requesting project information from the API, though the documentation says only Maintainers should see it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.