Skip to content
Info disclosure Disclosed report Beginner

Number of private subgroups/projects is displayed in groups view

GitLab displayed the number of private subgroups and private projects within a public subgroup to users who did not have access to those private resources. An unauthenticated attacker could learn the count of private groups and projects, leaking information about the existence of private resources.

GitLab

Originally disclosed on GitLab

  • Fixed in 19 months
  • Disclosed after 19 months

HackerOne report #712299 by xanbanx on 2019-10-11, assigned to @jeremymatos:

Hi GitLab Security Team,

Summary

GitLab allows to create public groups with public subgroups. Within that subgroups, one can create private groups or private projects.
The top-level view of the parent group shows a list of publicly available resources (projects,subgroups).
For subgroups however, GitLab displays the number of private resources (groups, projects), although the visiting user does not have access to that private groups/projects, thus leaking information.

Steps to reproduce

  1. Create a public group and within that public group another subgroup
  2. Within the subgroup, create some private sub-groups and some private projects
  3. As an unauthenticated users, visit the top-level group's detail page via https://example.gitlab.com/groups/<top-level-group>

You can see some private subgroup details like

  • the number of private subgroups
  • the number of private projects

Impact

Unauthorized users see the number of private subgroups, projects, and members.

Examples

As an unauthenticated user, goto https://gitlab.com/my-top-level-group

On the right side, you see the subgroup public-group has one private subgroup and two private projects.

What is the current bug behavior?

Unauthorized users can see private statistics.

What is the expected correct behavior?

Only show the relevant statistics (number of groups, projects) if the user has access to these underlying entities.

Output of checks

This bug happens on GitLab.com

Best regards,
Xanbanx

Impact

See above.

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 group overview page counted all subgroups and projects without checking whether the viewing user had permission to see the private ones.

Impact

Unauthenticated users could see the number of private subgroups, projects, and members, leaking information about private resources.

What the attacker needed

A public top-level group with a public subgroup; private subgroups or projects inside that subgroup; no authentication required

How it was found

  1. Create a public group and within that public group another subgroup
  2. Within the subgroup, create some private sub-groups and some private projects
  3. As an unauthenticated user, visit the top-level group's detail page

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, groups can contain smaller groups and projects. Some of these can be set to private, meaning only certain people can see them. The bug was that the group page still showed how many private items existed, even to people who were not allowed to see them, which revealed that those private items were there.

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.