Skip to content
Info disclosure Disclosed report Beginner

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.

Screenshot_2019-07-10_at_01.08.24.png
Screenshot_2019-07-10_at_01.08.24.png From the original on GitLab

However, anyone can see the project labels using below endpoint.
https://gitlab.com/groups/newgroup_t/-/labels.json

Steps to reproduce

  1. Create a public group
  2. Create a public project inside group and set issues & Repository as Only Project Members Settings.
  3. 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.
  4. Now directly navigate to https://gitlab.com/groups/newgroup_t/-/labels.json and 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!

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

  1. Create a public group.
  2. Create a public project inside the group and set issues and repository visibility to 'Only Project Members'.
  3. Log in as another user and go to the group and projects to check if project labels are visible; they should not be.
  4. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.