Private project path (forked) & branch visible in merge requests
A private forked project's path and branch name were shown publicly in merge requests from that private project to a public project. An attacker could see this information even after the fork relationship was removed and the path updated.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 months
HackerOne report #724895 by ashish_r_padelkar on 2019-10-29, assigned to @ankelly:
Summary
Hello,
When public project is forked by private project, the private project can request to merge into public project merge request. In such merge requests the project path and branch name of private forked projects publicly visible in request to merge sections.
The project path is continues to be visible even when forked relationship is removed and then updated paths are visible too.
Steps to reproduce
- Create a public project
- Fork it in private project
- Create a merge request from private to public project
- Now login as non member and visit the above merge request. You should see the path of the private forked project publicly along with the name in
Request to mergesection of merge request.

- Now remove the fork relationship from private project and update the path of the private project
- Again visit the same merge request and you should see the updated name too!
What is the current bug behavior?
Shows the private forked project path and branch name publicly in merge requests.
What is the expected correct behavior?
If forked project is private, none of its information should be visible publicly.
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too!
Regards,
Ashish
Impact
Private project path and branch name visible in merge requests publicly if project is forked in private projects
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 merge request page did not properly check the visibility of the source project when displaying the 'Request to merge' section, so it showed the private project's path and branch to all viewers.
Impact
A non-member could see the private project's path and branch name, and this information remained visible even after the fork relationship was removed and the path changed.
What the attacker needed
A public project; a private fork of that project; a merge request from the private fork to the public project; no special access needed to view the merge request
How it was found
- Create a public project
- Fork it in a private project
- Create a merge request from the private project to the public project
- Log in as a non-member and visit the merge request to see the private project's path and branch name
- Remove the fork relationship from the private project and update its path
- Visit the same merge request again to see the updated name
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.
When you fork a project, you make a copy of it. If that copy is private, its name and branch should stay secret. But here, a merge request from the private copy to a public project revealed those details to anyone, even people not logged in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.