Skip to content
Access control Disclosed report Beginner

External users can create new groups although not allowed

External users in GitLab are not supposed to create groups, but when added as a maintainer to a group, they can still create new subgroups within that group. This violates the documented restrictions on external users.

GitLab

Originally disclosed on GitLab

  • Fixed in 11 months
  • Disclosed after 11 months

HackerOne report #900345 by xanbanx on 2020-06-17, assigned to @ngeorge1:

Hi GitLab Security Team,

Summary

GitLab has a feature of external users, which have restricted access to the application. In general, these users only have access to resources they are explicitly granted to. Furthermore, they cannot create projects. The documentation at https://docs.gitlab.com/ee/user/permissions.html#external-users-core-only states this in here: Cannot create groups, projects, or personal snippets.

However, this is not applied properly. If an external users is added as a maintainer member to a group, the external user can create new groups within that group, thus violating the capabilities of an external user.

Steps to reproduce

  1. As an administrator, create an external users
  2. Create a new group and add the external user with Maintainer rights to the group
  3. As the external user, create a new group within the group he was added to.

Impact

External users can create groups in group namespaces, although that is not allowed according to the docs. Thus, external users are violating their capabilities.

What is the current bug behavior?

External users can create new groups within a group although not allowed.

What is the expected correct behavior?

External users are not allowed to create new groups.

Output of checks

Tested on a local installation of GitLab Enterprise Edition 13.1.0-pre f0af9f078cd.

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 permission check for creating subgroups does not account for the external user flag when the user has maintainer rights in the parent group.

Impact

External users can create groups in group namespaces, violating their intended restrictions.

What the attacker needed

GitLab instance with external users feature; External user added as maintainer to a group

How it was found

  1. As an administrator, create an external user.
  2. Create a new group and add the external user with Maintainer rights.
  3. As the external user, create a new group within the group he was added to.

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.

GitLab has a special type of user called an 'external user' who is only supposed to access things they are explicitly given and cannot create new groups or projects. The report shows that if you make an external user a maintainer of a group, they can still create new subgroups inside it, which they should not be able to do.

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.