Issue system notes reveals private project path when it is closed view merge request and moved to a public project
Issue system notes revealed merge request or commit IDs to guest users when an issue was closed via a merge request, and when the issue was moved to a public project, the notes also exposed the full private project path. An attacker with guest access could learn internal identifiers and project paths that should have remained hidden.
GitLab
Originally disclosed on GitLab
- Fixed in 2.2 years
- Disclosed after 2.2 years
HackerOne report #724880 by ashish_r_padelkar on 2019-10-29, assigned to @jbroullon:
Summary
Hello,
When issue is closed via merge request, the associated merge request ID or commit ID is visible via issue system notes to guest users. The same system note reveals full project path too when this issue is moved to public projects.
Steps to reproduce
- Create a issue in private project
- Create a merge request for the same.
- Merge the merge request so that issue is closed.
- A system note in issue is created saying
closed via merge requestorclosed via commit

OR

- Same is visible to Guest users in issue(go to issue details) system notes which shouldnt be possible.
- Now move this issue to public project and the same system notes reveals the full private project path from which this issue is moved from.
What is the current bug behavior?
Issue system notes reveals merge request ID or commit ID, may also reveal full project path when its moved
What is the expected correct behavior?
None of the information related to merge request or commits should be visible
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too. This is verified on Gitlab.com at the time of writing the report.
Regards,
Ashish
Impact
Merge request ID, Commit ID and Project Path visible when issue is closed via merge requests
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 system notes did not properly filter or redact merge request and commit references based on the viewer's permissions, and moving an issue to a public project did not sanitise those notes.
Impact
Guest users could see merge request IDs, commit IDs, and after moving the issue to a public project, the full private project path.
What the attacker needed
Guest access to the private project; ability to move issue to public project
How it was found
- Create an issue in a private project.
- Create a merge request for the same issue.
- Merge the merge request so that the issue is closed.
- A system note is created saying closed via merge request or closed via commit.
- The same note is visible to guest users in the issue details.
- Move the issue to a public project and the system note reveals the full private project path.
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, when a merge request closes an issue, the system adds a note to the issue saying it was closed by that merge request or commit. The problem was that this note showed the merge request or commit ID to users who only had guest access, and if the issue was later moved to a public project, the note also showed the private project's full path. This meant people who should not see that information could learn internal identifiers and project names.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.