Labels visible despite no access to issues & repositories
A public group's labels endpoint exposed labels from projects whose issues and repositories were restricted to project members only. An unauthenticated attacker could view these labels by directly accessing the endpoint, bypassing the intended access controls.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 months
HackerOne report #638505 by ashish_r_padelkar on 2019-07-09, assigned to akelly:
Summary
Hello,
When Public group has public project with below settings, it should not be possible to see all ts labels.

However, anyone can see the project labels using below endpoint.
https://gitlab.com/groups/newgroup_t/-/labels.json
Steps to reproduce
- Create a public group
- Create a public project inside group and set
issues&RepositoryasOnly Project MembersSettings. - Login as another users, Go to group and projects and see if you can see project labels. You should not as you dont have access and you are not a team member.
- Now directly navigate to
https://gitlab.com/groups/newgroup_t/-/labels.jsonand you should see all labels which belongs to project which you cant access its issues & Repository.
Examples
Use this https://gitlab.com/groups/newgroup_t/-/labels.json. You will see labels from project which you cant see in UI because of permissions set on projects.
What is the current bug behavior?
Labels visible publicly despite no access to issues & Repositories of a project.
What is the expected correct behavior?
Labels should not be visible when above settings are in place for projects
Output of checks
This bug happens on GitLab.com and might be on omnibus installations too!
Regards,
Ashish
Impact
Project Labels visible despite issue & repository permissions
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 labels endpoint did not enforce the same access controls as the project's issues and repository features.
Impact
Project labels could be viewed by anyone despite issue and repository permissions.
What the attacker needed
Public group; public project with restricted issues and repository; no authentication required
How it was found
- Create a public group.
- Create a public project inside the group and set issues and repository visibility to 'Only Project Members'.
- Log in as another user and go to the group and projects to check if project labels are visible; they should not be.
- Directly navigate to the group's labels JSON endpoint to see all labels from the inaccessible project.
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 set so that only team members can see issues and code. However, the labels used to categorise issues were still visible to anyone through a special web address. This means someone outside the team could see the labels, even though they shouldn't have access to the project's content.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.