A guest user can see Release Tag from Group Release endpoint
A guest user of a private project could see release tag names through the group-level releases JSON endpoint, even though the project release page hides that information. This exposed repository information that guests are not meant to see.
GitLab
Originally disclosed on GitLab
- Fixed in 13 months
- Disclosed after 13 months
HackerOne report #1058315 by ashish_r_padelkar on 2020-12-14, assigned to @ankelly:
Report
Report
Summary
Hello,
As per this https://docs.gitlab.com/ee/user/permissions.html, Guest users can access GitLab Releases for downloading assets but are not allowed to download the source code nor see repository information like tags and commits.
This is true in private project when they directly navigate to release page at /-/releases. They cant see Tag from here. However, the group endpoint of releases https://gitlab.com/groups/<GroupName>/-/releases.json discloses such Tag information.
Steps to reproduce
- Create a group and private project underneath.
- Create a release in private project at
https://gitlab.com/<GroupName>/<ProjectName>/-/releases. - Add Guest user at group level.
- Login as Guest user and directly navigate to
https://gitlab.com/<GroupName>/<ProjectName>/-/releases. You wont see Tag information of the release. - Now use
https://gitlab.com/groups/<GroupName>/-/releases.jsonand it should show you TAG name of that release.
What is the current bug behavior?
Tag names of releases visible to guest user of private project which should not be possible otherwise
What is the expected correct behavior?
As per documentation, tag names should not be disclosed of releases.
Output of checks
This bug happens on GitLab.com GitLab Enterprise Edition 13.7.0-pre 47b1a8d080e
Regards,
Ashish
Impact
A guest user can see Release Tag (of private project) from Group Release endpoint
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
Impact
A guest could learn release tag names of a private project, which the documentation says they should not see.
What the attacker needed
A group with a private project; guest role at group level
How it was found
- Create a group with a private project underneath.
- Create a release in that private project.
- Add a user as a guest at group level.
- Log in as the guest and open the project release page; the tag is not shown.
- Request the group releases JSON endpoint, which returns the tag 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.
GitLab lets you give someone a 'guest' role, which should let them download release files but not see things like tag names. A tag is a label pointing at a specific version of the code. The normal release page hid the tag, but a different address that lists releases for the whole group still returned it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.