Skip to content
Access control Disclosed report Intermediate

A developer of a subgroup can gain access to the main private group

A developer of a private subgroup could gain read access to the parent private group by creating a project inside the subgroup. This exposed the parent group's milestones and labels, though not its other projects.

GitLab

Originally disclosed on GitLab

  • Fixed in 6 months
  • Disclosed after 6 months

HackerOne report #675633 by rpadovani on 2019-08-17, assigned to estrike:

Summary

Given a secret group with this structure:

- secret-group  
|--> secret-subgroup  

a user who has access with developer role only at secret-subgroup can gain access to secret-group

Steps to reproduce

Alice: owner of secret-group
Bob: a random developer.

Alice creates secret-group as private, and creates secret-subgroup inside it. She gives developer access to Bob to only the secret-subgroup.

Bob can now access https://gitlab.com/secret-group/secret-subgroup, but he cannot access https://gitlab.com/secret-group/.

Bob creates a new project inside https://gitlab.com/secret-group/secret-subgroup - he can, since he is a developer.

This triggers the bug: now Bob can access https://gitlab.com/secret-group/. Also, he is not reported as a member of secret-group in https://gitlab.com/groups/secret-group/-/group_members, so Alice cannot know this happened.

Calling the APIs, I suspect Bob has gained the :read_group permission over https://gitlab.com/secret-group/, that he didn't have at the beginning.

Impact

This gives access to Bob to these resources:

  • milestones of secret-group
  • labels of secret-group
  • (I suspect, but I don't have a license to verify) epics of secret-group

Probably something else, but I haven't investigated further.

However, it DOES NOT give access to other projects of the group. This is why I also marked Confidentiality as low: epics, labels, and milestones are important, but not as much as repositories and issues.

Examples

I created a private group with a private subgroup - if needed I can give access to the subgroup and you can escalate the privilege on your own.

Output of checks

This bug happens on GitLab.com

Impact

Attackers can gain access to milestones and labels they shouldn't have

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 a permission check that grants read access to a parent group when a user creates a project in a subgroup, without verifying actual membership in the parent group.

Impact

Bob could view the parent group's milestones and labels, and possibly epics, but not its other projects; he also did not appear as a member of the parent group.

What the attacker needed

A GitLab account; developer role on a private subgroup; the subgroup is inside a private parent group

How it was found

  1. Alice creates a private group and a private subgroup inside it.
  2. Alice gives Bob developer access only to the subgroup.
  3. Bob confirms he cannot access the parent group.
  4. Bob creates a new project inside the subgroup.
  5. Bob can now access the parent group's 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 subgroups, and permissions are meant to be separate. A user who was only a developer in a subgroup could, after making a new project there, see information from the parent group that they were not supposed to see.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.