Skip to content
Info disclosure Disclosed report Beginner

Number of merge requests associated with milestones are visible from private projects

Merge request counts and statuses associated with milestones were visible to unauthorised users when a private project was inside a public group or when merge requests were restricted to project members in a public project. An attacker could see the number of merge requests and their statuses without being a member.

GitLab

Originally disclosed on GitLab

  • Fixed in 15 months
  • Disclosed after 15 months

HackerOne report #675427 by ashish_r_padelkar on 2019-08-17, assigned to estrike:

Summary

Hello,

I reported this before here at #529951 in a comment but looks like it was missed from your side to fix it and i also forgot to test it again as it was a comment. The main issue reported was fixed but not this one.

So basically, When merge requests are associated with Milestones, the counts with their statuses are visible publicly when

  1. Private project is inside the public group -when project merge requests are associated with public group milestones.

  2. Merge requests are set as Only Project Members in public projects when associated with milestones.

Steps to reproduce

  1. Create a public project with Repository set as Only Project Members
  2. Create a merge request inside it and associate it with a milestone for eg Milestone1
  3. Login as different user. This user wont see the merge requests as user is not a member.
  4. But he can see the milestone as issues are visible. So user can go to milestone page /thisispublicproject/-/milestones/<ID of Milestone1> and can see the number of merge requests associated with this milestone in right side bar
Screenshot_2019-08-17_at_12.16.38.png
Screenshot_2019-08-17_at_12.16.38.png From the original on GitLab

Same thing happens when public group contains private project and the merge requests are associated with group milestones!

What is the current bug behavior?

Able to see number of merge requests along with their status when associated with milestones.

What is the expected correct behavior?

Merge requests information should not be visible publicly when they are not allowed to.

Output of checks

This bug happens on GitLab.com and must be on omnibus installations too!

Regards,
Ashish

Impact

When merge requests are associated with Milestones, the counts with their statuses are visible publicly when

  1. Private project is inside the public group -when project merge requests are associated with public group milestones.

  2. Merge requests are set as Only Project Members in public projects when associated with milestones.

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 milestone page did not check whether the viewer had permission to see the associated merge requests before displaying their count and statuses.

What the attacker needed

Public project with restricted merge requests; or private project in public group; attacker has any account

How it was found

  1. Create a public project with repository set to 'Only Project Members'.
  2. Create a merge request and associate it with a milestone.
  3. Log in as a different user who is not a member.
  4. Go to the milestone page and see the number of merge requests in the sidebar.

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.

In GitLab, projects can be public or private, and merge requests (code changes) can be restricted to members only. This report shows that even when merge requests were restricted, the count of merge requests linked to a milestone (a goal or deadline) was still shown to anyone visiting the milestone page. That let outsiders learn how many merge requests existed and their statuses, which should have been private.

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.