Skip to content
Access control Disclosed report Intermediate

Ability to Invite Users despite Disable invitation option is enabled on group via POST api/v4/projects/target_id/import_project_members/importer_id

A group setting that disables user invitations could be bypassed by using the project member import API, allowing an invited maintainer to add members to a project despite the restriction. An attacker with maintainer access could thus circumvent the group owner's membership control.

GitLab

Originally disclosed on GitLab

  • Fixed in 6 days
  • Disclosed after 6 days

⚠️ 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 #3182507 by hunter0xp7 on 2025-06-07, assigned to @katwu:

Report | Attachments | How To Reproduce

Report

Summary

Hello.
This may look like #3176719, but endpints are different,
Gitlab introduced new feature that allows group owners to disable user invitations on group, and when this option is enabled no one should be to invite other members, to a group are project in it. but i found that except preventing it via UI it is possible to use import API to add members on a project.

Steps to reproduce

As Owner

1.Create group A and apply ultimate trial to it
2.Create project A inside of your group A
3. Invite User as Maintainer to your project A

4.Enable Disable user invitations in group settings

As invited Maintainer

5.Create project B
6. Invite members you want here to import on project A

6.Send This Api request

POST /api/v4/projects/project-A_id/import_project_members/project-B_id HTTP/2  
Host: gitlab.com  
Cookie: redacted  
Content-Length: 0  
Sec-Ch-Ua: "Chromium";v="117", "Not;A=Brand";v="8"  
X-Csrf-Token: redacted  
Accept-Encoding: gzip, deflate, br  
Accept-Language: en-US,en;q=0.9

video_poc

[REDACTED]

Impact

This feature helps organizations/groups maintain strict control over membership access, Failing to to so will bypass secuity measures for membership control

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

[REDACTED]

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 import project members API endpoint did not check whether user invitations were disabled for the group.

Impact

An attacker with maintainer access could bypass the group's membership control and add unauthorised members to a project.

What the attacker needed

Ultimate trial on group; attacker is invited maintainer; disable invitations enabled

How it was found

  1. As owner, create a group and apply an ultimate trial.
  2. Create a project inside the group and invite a user as maintainer.
  3. Enable the 'Disable user invitations' setting in the group.
  4. As the invited maintainer, create a second project and invite members there.
  5. Send a POST request to the import_project_members API endpoint using the second project's ID as the importer.

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 owner can turn off invitations so that no one can add new members. However, a maintainer could still use a special import feature to bring in members from another project, ignoring the block. This means the restriction only worked in the normal interface, not in the API.

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.