Skip to content
Info disclosure Disclosed report Beginner

Number of open issues and MRs leaked through new project list

The GitLab projects overview page displayed the number of open issues and merge requests for projects even when the user did not have permission to view those items. This allowed unauthorised users to learn the count of open issues and merge requests for public or internal projects with restricted access, and for private projects to leak the number of merge requests to guest members.

GitLab

Originally disclosed on GitLab

  • Fixed in 2.0 years
  • Disclosed after 2.0 years

HackerOne report #480960 by xanbanx on 2019-01-16, assigned to asaba:

Lately, GitLab redesigned the projects overview page. Now, this page also includes the number of open issues, number of open merge requests, and number of forks. However, this information is leaking to users with restricted project access. For public and internal projects, this information is leaked when the project's issues and MRs are configured to be accessible only by project members. For private projects, the number of MRs is leaked also to Guest project members, who, according to the GitLab permission system, don't have access to MRs.

Steps to reproduce

Tested on GitLab 11.7.0-rc5-ee

  1. Create a public project, restrict the access of issues and merge requests to project members only. In this example, I named the project test-project-page
  2. Create new issue and a merge request in this project
  3. As a non-project member, visit the projects page. Here you can search for the project since it's public by visiting the page: https://example.gitlab.com/explore/projects?utf8=%E2%9C%93&name=test-project-page&sort=latest_activity_desc
  4. The search result is leaking the number of issues and merge requests, although as a non-project member, you don't have access to this. You can also see this in the attached screenshot.

Steps to mitigate

Only display number of issues or MRs if user has permission to it

Impact

Users who don't have access to issues and MRs the number of open items.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 project list page did not check the user's permissions before displaying the counts of issues and merge requests.

Impact

Users without access to issues and merge requests could see the number of open items, and for private projects, guest members could see the number of merge requests.

What the attacker needed

A GitLab instance with the projects overview page; A public or internal project with restricted issues/MRs; No special access needed for public projects

How it was found

  1. Create a public project and restrict issues and merge requests to project members only.
  2. Create a new issue and a merge request in that project.
  3. As a non-project member, visit the projects page and search for the project.
  4. Observe that the search result shows the number of issues and merge requests.

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 page that lists projects and shows how many open issues and merge requests each project has. Normally, only project members can see those issues and merge requests, but the counts were shown to everyone. So someone outside the project could still see how many open items exist, which is a small information leak.

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.