Release names visible in public projects despite release set as project members only
A project's release visibility setting was not enforced on the tags page, so release names were shown to unauthenticated visitors even when releases were restricted to project members. An attacker could learn the names of private releases.
GitLab
Originally disclosed on GitLab
- Fixed in 49 days
- Disclosed after 49 days
HackerOne report #1725841 by ashish_r_padelkar on 2022-10-07, assigned to @cmaxim:
Report | Attachments | How To Reproduce
Report
Summary
Hello,
Release can be restricted for Only Project Members in project settings. This should ensure that no release information is visible outside team members.
However, anyone can see release names in public projects through tags page at https://gitlab.com/<NameSpace>/<ProjectName>/-/tags even when releases are set as project members only.
Steps to reproduce
1.As a project owner, set your project as public with Releases as Only Project Members at https://gitlab.com/<NameSpace>/<ProjectName>/edit#js-general-project-settings.

2.Now create a Release at https://gitlab.com/<NameSpace>/<ProjectName>/-/releases.
3.Access the https://gitlab.com/<NameSpace>/<ProjectName>/-/releases without authentication but you will get 404 as Release is only visible for Team members.
4.Now access tag page at https://gitlab.com/<NameSpace>/<ProjectName>/-/tags and you should see Release associated with the tags like below.

5.As repository is public, you are able to see tag page and tag page discloses the release names. This requires proper permission check.
Examples
You can see https://gitlab.com/groupnew321/projectbugs/-/tags release name visible for tag. Clicking on release will give you 404 page.
What is the current bug behavior?
Release names are disclosed in tag names despite release set as project members only.
What is the expected correct behavior?
Release names should not be visible for unauthenticated users when they are set as only project members
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Release names visible in public projects despite release set as project members only
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
Proposal
Add the proper permission check to the tag partial which is rendered server side.
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 server-side template that renders tags did not check the release visibility permission before displaying release names.
What the attacker needed
Public project; releases set to project members only; no authentication needed
How it was found
- As a project owner, set the project to public and set Releases to Only Project Members.
- Create a release in the project.
- Visit the releases page without logging in and see a 404.
- Visit the tags page without logging in and see the release names.
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 owner can hide releases so only team members see them. But the tags page, which lists version labels, still showed the release names to anyone. This leaked information that was 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.