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
-
Private project is inside the public group -when project merge requests are associated with public group milestones.
-
Merge requests are set as
Only Project Membersin public projects when associated with milestones.
Steps to reproduce
- Create a public project with Repository set as
Only Project Members - Create a merge request inside it and associate it with a milestone for eg
Milestone1 - Login as different user. This user wont see the merge requests as user is not a member.
- 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

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
-
Private project is inside the public group -when project merge requests are associated with public
group milestones. -
Merge requests are set as
Only Project Membersin public projects when associated with milestones.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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
- Create a public project with repository set to 'Only Project Members'.
- Create a merge request and associate it with a milestone.
- Log in as a different user who is not a member.
- 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.