Skip to content
Info disclosure Disclosed report Beginner

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
  1. Login to gitlab and create a private project and navigate to the project.
  2. Navigate to Settings ->General -> Service Desk and toggle Activate Service Desk and click Save changes
  3. Now navigate to Project information -> Members and invite a user as Guest
  4. Now login as Guest user and navigate to Issues -> Service Desk, the email address is not shown in the UI
  5. Now navigate to https://gitlab.com/api/v4/projects/[PROJECT_ID], replace PROJECT_ID with 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:

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

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

  1. Log in to GitLab and create a private project.
  2. Enable Service Desk in the project settings.
  3. Invite a user as Guest to the project.
  4. Log in as the Guest user and confirm the service desk email is not shown in the UI.
  5. 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.

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.