Non member can view unresolved threads marked as internal notes
A non-member of a public project could view unresolved threads marked as internal notes by accessing a specific URL. This allowed an attacker to see information intended only for project members with at least Reporter access.
GitLab
Originally disclosed on GitLab
- Fixed in 3 months
- Disclosed after 3 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 #2705909 by salh4ckr on 2024-09-07, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
When user starts a unresolved thread on merge request it is possible to be visible for project members with at least Reporter access. but i found that on public project iti is possible non member to view unresolved threads via url.
Steps to reproduce
As Owner
- Create public group A and create public project A in that group
- Create Merge request 1 in project A
- Start unresolved thread in merge request

As Attacker
- Go to project A and click merge request 1
- Here you can see that unresolved threads are not visible for you.
- Now go to https://gitlab.com/groupA/projectA/-/issues/new?merge_request_to_resolve_discussions_of=1
replace group A and project A with you group and project name, also change 1 with your mr id

Video POC
Impact
Non member (Attacker) can view unresolved threads marked as internal notes, which is intended to be visible to only members with atleast reporter access
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; non-member (account status not specified)
How it was found
- Create a public group and a public project within it.
- Create a merge request in that project.
- Start an unresolved thread in the merge request.
- As an attacker, go to the project and click the merge request; note that unresolved threads are not visible.
- Visit the issue creation URL with the merge_request_to_resolve_discussions_of parameter set to the merge request ID.
- Observe that the unresolved threads are displayed.
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, merge request discussion threads marked as internal notes should only be visible to project members with at least Reporter access. The report found that a non-member could view these threads on a public project by visiting a special issue-creation link that references the merge request.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.