Merge request titles visible publicly despite being set as project members only
Merge request titles were visible to unauthenticated users on a public project's branches page even when merge request visibility was set to 'Only Project Members'. An attacker could view these titles without logging in.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 months
⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.
HackerOne report #2357370 by ashish_r_padelkar on 2024-02-07, assigned to @ottilia_westerlund:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
It is possible for anyone to see Merge Request titles despite setting it as only project members visibility.
Steps to reproduce
1.Create a public project.
2.Set the repository as Everyone with access but set merge requests as Only Project Members.

3.Create a new branch at https://gitlab.com/<NameSpace>/<ProjectName>/-/branches and then merge request using that branch.
4.Now visit the URL without login in https://gitlab.com/<NameSpace>/<ProjectName>/-/branches and hover over the merge request icon like below.

5.You will see merge request title.
Examples
You can see my test poc here https://gitlab.com/groupjan2024/Janproject/-/branches where i have set merge request visibility to only project members yet you see the titles.
What is the current bug behavior?
Merge request titles visible publicly despite being set as project members only
What is the expected correct behavior?
Only project members should see the merge request titles
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Merge request titles visible publicly despite being set as project members only
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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
What the attacker needed
Public project; merge request visibility set to members only; no login required
How it was found
- Create a public project.
- Set repository access to 'Everyone with access' and merge request visibility to 'Only Project Members'.
- Create a new branch and then a merge request using that branch.
- Visit the branches page without logging in and hover over the merge request icon.
- Observe the merge request title.
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 merge request is a way to propose changes to code. The project had a setting to keep merge request details private to members only, but the branches page still showed the titles to anyone, even without logging in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.