Users can see number of open merge requests/issue `counts` from public project despite no permissions
A public project's issue and merge request counts were visible on a contributor's profile even when those features were restricted to project members. An attacker could see the number of open issues and merge requests, which should have been hidden.
GitLab
Originally disclosed on GitLab
- Fixed in 16 months
- Disclosed after 16 months
HackerOne report #692199 by ashish_r_padelkar on 2019-09-11, assigned to akelly:
Summary
Hello,
When public projects issues and merge requests are set as Only Project Members , none of its information should be publicly visible.
However, anyone can see the open merge requests and issue counts of such projects using user profile who have contributed to such projects.
Steps to reproduce
- Set a user profile at
https://gitlab.com/profileas public

- Create a public project with issue and merge requests as
Only project members - Contribute to this project so that it appears on your profile at
https://gitlab.com/users/<UserName>/contributed - Login as non member who cant see issues/merge requests from the public project.
- Navigate to the user who contributed to that project
https://gitlab.com/users/<UserName>/contributed - You will see number of
Openmerge requests andOpenpublic issue counts from that project which is otherwise not visible.

What is the current bug behavior?
Able to see number of open merge requests and issue counts from public projects which are restricted.
What is the expected correct behavior?
None of the info should be visible when issue and merge requests are accessible only to members
Output of checks
This bug happens on GitLab.com and might be on omnibus installations!
Regards,
Ashish
Impact
Information disclosure of open merge request counts and public issue counts from public projects when issues and merge requests are restricted to project members only.
This is also possible in private projects where guest is able to see open merge requests counts which is not possible otherwise
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 user profile's contributed projects list did not check the project's issue and merge request visibility settings before displaying counts.
Impact
An attacker could learn the number of open issues and merge requests in projects where those features are restricted to members, which is a minor information leak.
What the attacker needed
A GitLab account; victim has a public profile; victim contributed to a restricted project
How it was found
- Set your user profile to public.
- Create a public project with issues and merge requests set to 'Only project members'.
- Contribute to the project so it appears on your profile's contributed projects page.
- Log in as a non-member who cannot see the project's issues or merge requests.
- Go to the contributor's profile page at /users/<UserName>/contributed.
- Observe the open merge request and issue counts for the restricted project.
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.
Some projects on GitLab let you hide their issues and merge requests so only members can see them. However, if you looked at the profile of someone who contributed to that project, it still showed how many open issues and merge requests there were. That is a problem because that number should be secret too.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.