Skip to content
Access control Disclosed report Beginner

Non-group members can be added to projects even though the "Users cannot be added to projects in this group" feature is active in the victim group

A group setting that prevents adding non-group members to projects could be bypassed by accepting an access request, allowing a non-group user to join a project. An attacker with Maintainer rights could thus add users who are not group members, violating the group policy.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #3209641 by rhidayahh on 2025-06-19, assigned to GitLab Team:

Report | Attachments | How To Reproduce

Report

Description

In groups, users can enable the "Users cannot be added to projects in this group" feature, which means that users who want to be made members of a project in a group must first become members of the group. However, this can still be bypassed and the result is that users who are not members of the group can still be made members of the project. This is not in accordance with the expected behavior that the application should reject.

Reproduction Steps

Users

  • User A (victim)
  • User C (attacker)
  • User D (attacker)

Steps

  1. From User A, create a public group > invite User C to your group as "Maintainer" > create a public project in the group > then enable the "Users cannot be added to projects in this group" feature in the group settings.
  2. From User C, visit User A's profile > enter the group > enter the project in it > in the UI you will not be able to add users, even the feature is not available.
  3. From User D, visit User A's profile > enter his group > enter the project in it > then request access to the project.
  4. From User C, refresh the page > you will see that User D is requesting access to the project in User A's group > then accept User D's access request > User D automatically joins as a member of the project in the group even though User A has activated the feature "Users cannot be added to projects in this group" and User D should be a member of the group first before becoming a member of the project in the group.

Proof of Concept (PoC)

bandicam_2025-06-19_14-05-00-302.mp4 From the original on GitLab

Recommendation

The application should reject when a user receives an access request from another user in the group project.

Impact

  1. Non-group members can be added to a project even if the group owner has enabled the "Users cannot be added to projects in this group" feature.
  2. Violating group policies.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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 access request approval flow does not check the group setting that forbids adding non-group members to projects.

Impact

A non-group member could be added to a project despite the group setting, violating group policies.

What the attacker needed

Victim group with setting enabled; attacker is group Maintainer; victim project is public

How it was found

  1. As the victim, create a public group, invite the attacker as Maintainer, create a public project, and enable the setting that prevents adding users to projects in the group.
  2. As the attacker, visit the victim's profile, enter the group and project; the UI does not allow adding users.
  3. As a second attacker, visit the victim's profile, enter the group and project, and request access to the project.
  4. As the first attacker, refresh the page, see the access request, and accept it.
  5. The second attacker becomes a project member even though they are not a group member.

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.

A group has a setting that says only people already in the group can be added to its projects. But if someone outside the group asks to join a project, a group maintainer can approve that request, and the person gets in anyway. This breaks the rule the group owner set.

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.