Guest users in private projects can see TAG names of releases.
Guest users in private projects could see tag names through the release API's edit_url parameter, even though the documentation says guests cannot see repository information such as tags. An attacker with guest access could learn tag names that should have been hidden.
GitLab
Originally disclosed on GitLab
- Fixed in 2 days
- Disclosed after 2 days
HackerOne report #744750 by ashish_r_padelkar on 2019-11-22, assigned to @cmaxim:
Summary
Hello,
As per documentation here https://gitlab.com/help/user/permissions , Guest users can access Release pages for downloading assets but are not allowed to download the source code nor see repository information such as tags and commits..
But when i go to EDIT page of release, it says Releases are based on Git tags .
The release API https://gitlab.com/api/v4/projects/15203433/releases gives response with edit_url parameters which discloses the TAG names in URL.
This probably happened because of recent changes. I am not sure though if thats the case but this URL is not required to be shown to guest users as they dont have ability to EDIT it anyways. By having that parameter for guest users gives them TAG names associated with releases which is contradicting the documentation.
Steps to reproduce
- In private project create a release.
- Login as guest user in private project. If you go to release page, UI doesnt load
- Now go to
https://gitlab.com/api/v4/projects/<ID>/releaseswhich will give you response withedit_urlwhich contains the TAG name in URL.
What is the current bug behavior?
Tag name disclosure to guest users in private projects through release API
What is the expected correct behavior?
In my opinion, releases shouldnt be visible to guest users at all as they dont have any access to repositories. Not sure if the feature is going in this direction but looks like UI doesnt load release page for guest users now. However, releases API still works which reveals TAG names through edit_url parameter.
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too!
Regards,
Ashish
Impact
Guest users are able to see TAG names of releases which is against documentation
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 release API included an edit_url field for guest users without checking whether they had permission to see repository tags.
Impact
Guest users could see tag names of releases, which contradicts the documented permission model; the report does not show any further access to source code or commits.
What the attacker needed
A guest account in a private project; the project has at least one release
How it was found
- Create a release in a private project.
- Log in as a guest user in that private project.
- Request the project's releases API endpoint.
- Observe the edit_url in the response containing 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.
A guest is a low-privilege user in a private project who should not see the code or its version labels (tags). The release API returned a link meant for editing, and that link contained the tag name, so guests could read it. This leaked information the project owner expected to keep private.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.