Guests will view the shared private groups and share private groups Guests will also view the other shared private groups Via API Response
A guest member of a private project could see the names of other private groups that the project was shared with via the API, even though the web interface hid this information. This allowed guests to discover private groups they were not members of.
GitLab
Originally disclosed on GitLab
- Fixed in 3 days
- Disclosed after 3 days
HackerOne report #615163 by uzsunny on 2019-06-14, assigned to gitlab_cmaxim:
Here I want to report 2 bugs.
same root cause leads to 2 bugs.
Only Permissions with Owners And Maintainers will only able to see the shared private groups but here guests will disclose the shared private groups.
Reproduction Steps:
Go to gitlab.com create a private group and create private project.
Share the project with 2 private groups for test.
Next invite the attacker with guest permissions.
When the attacker visits [REDACTED]
Only project members will be shown
![[REDACTED]
But attacker visits the API
He will view the shared private groups which the project has shared to
attacker if he visits to
[REDACTED]
s[REDACTED]
In the above response the 2 private shared groups will be shown.
I have shared the project with 2 shared private groups for test so the 2 shared private groups will be disclosed.
Disclose another shared private groups to shared private groups Guests members.
I have also tested with shared private group.
Create private group and private project.
Share this private project with 2 private shared groups with guest permissions only.
The guests user in one private shared group will view the another shared private groups.
attacker if he visits to
https://gitlab.com/api/v4/projects/Your-Project-ID
[REDACTED]
Impact
There are 2 bugs with same root cause.
Guests will able to view the shared private groups in API response.
Guests members in one shared private will view the another shared private groups via API response.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
- [REDACTED]ng)
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 API endpoint that returns project details did not properly filter the list of shared groups based on the requester's permissions, exposing private group names to guests.
What the attacker needed
A GitLab account; guest access to a private project; project shared with private groups
How it was found
- Create a private group and a private project.
- Share the project with two private groups.
- Invite an attacker with guest permissions.
- As the attacker, visit the project's API endpoint to view the shared private groups.
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, projects can be shared with groups. Normally, only project owners and maintainers can see which groups a project is shared with. However, a user with only guest access could use the API to see the names of those groups, even if they were private. This means a low-privileged user could learn about private groups they shouldn't know about.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.