Skip to content
Info disclosure Disclosed report Beginner

Guests can see name of the groups shared in projects

A low-privileged user could query an autocomplete endpoint to list the names of groups shared with a project, even private groups, which the project members page hides from them.

GitLab

Originally disclosed on GitLab

  • Fixed in 2.8 years
  • Disclosed after 2.8 years

HackerOne report #447817 by ashish_r_padelkar on 2018-11-20:

Summary: Hello,

There is no documentation for this i guess but i assume that Developer and lower level users can not see list of groups that is shared in projects at https://gitlab.com/<Project>/project_members

Here, they can only see individual members.

Description:

It is possible for users with Developer and lower level to see if the project is shared with groups

The endpoint responsible for this is https://gitlab.com/autocomplete/project_groups.json?project_id=<ProjectID>

This will list all the names of the group(even if private)

Steps To Reproduce:

  1. As a Developer or lower level role, visit https://gitlab.com/<Project>/project_members . You will not see groups that are shared in this project

  2. Now using https://gitlab.com/autocomplete/project_groups.json?project_id=<ProjectID> , you can see the names!

Supporting Material/References:

I found this endpoint in autocomplete dropdown in protected branch and protected tag at /settings/repository in Allowed to merge dropdown

Regards, Ashish

Impact

Guest can see groups shared in projects

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 autocomplete endpoint did not apply the same authorisation checks as the project members page, so it returned group names to users who should not see them.

Impact

A guest-level user could learn the names of groups shared with a project, including private groups, which is information the members page intentionally hides.

What the attacker needed

A GitLab account with Developer or lower role; access to the target project

How it was found

  1. As a Developer or lower role, visit the project members page and note that shared groups are not shown.
  2. Request the project groups autocomplete endpoint with the project ID to see the group 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.

In GitLab, a project can be shared with groups, and the members page is meant to hide those group names from low-level users. A separate autocomplete feature used for dropdowns returned the full list anyway, so anyone with a basic account could learn which groups a project was shared with.

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.