List of packages visible publicly despite Only Project Members settings
A public group's package list exposed packages from a project whose repository was set to 'Only Project Members'. An unauthenticated user could view the names of packages that should have been restricted.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 months
HackerOne report #635502 by ashish_r_padelkar on 2019-07-04, assigned to estrike:
Summary
Hello,
Any user can see list of packages from projects even when Repository settings are set as Only project Members
This is possible when project is inside the groups and both are public
Steps to reproduce
- Create a public group
- Create a public project inside it and set the repository as
Only Project Members - Now login as any user and navigate to group packages
https://gitlab.com/groups/<GroupName>/-/packages - You should see list of packages which should not be visible for anyone.
Examples
You can use my Project https://gitlab.com/groups/newgroup_t/-/packages and you will see list of packages from project.
What is the current bug behavior?
List of packages visible for publicly
What is the expected correct behavior?
When Repository of projects are set as Only Project Members, packages should not be visible publicly.
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too!
Regards,
Ashish
Impact
List of packages visible publicly!
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 group-level package listing did not check the visibility setting of the underlying project's repository.
Impact
The list of packages from a project with a restricted repository could be viewed publicly.
What the attacker needed
Public group; public project with repository set to Only Project Members
How it was found
- Create a public group.
- Create a public project inside it and set the repository to 'Only Project Members'.
- Log in as any user and navigate to the group's packages page.
- Observe the list of packages that should not be visible.
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 project can be set so only its members can see its code. But the list of packages built from that project was still shown to anyone visiting the group's package page. This let outsiders learn the names of packages that were meant to be private.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.