Skip to content
Access control Disclosed report Beginner

Maintainer can add project members despite group member lock

A maintainer of a project inside a group with member lock enabled could still import project members via a direct URL, bypassing the restriction that should prevent adding members. This allowed the maintainer to add members despite the lock.

GitLab

Originally disclosed on GitLab

  • Fixed in 4 months
  • Disclosed after 4 months

HackerOne report #457627 by ashish_r_padelkar on 2018-12-06:

Summary: Hello,

When group is enabled with Member Lock , the maintainers of the project inside group can not add any project members at https://gitlab.com/thisisprivategroup/projectinsideprivategroupt/project_members/

Screenshot_2018-12-07_at_01.33.48.png
Screenshot_2018-12-07_at_01.33.48.png From the original on GitLab

Description: However, using project member import feature, Users with Maintainer role of such projects can still import project members

The project member import url is https://gitlab.com/<GroupWithMemberLock>/<ProjectName>/project_members/import

Steps To Reproduce:

  1. As a Owner of a private group , enable member lock at https://gitlab.com/groups/<group>/-/edit#js-permissions-settings

  2. Login as Maintainer and go into project within the group. You will see that you dont have option to add project members at https://gitlab.com/<GroupWithMemberLock>/<ProjectName>/project_members

  3. Now just visit direct url https://gitlab.com/<GroupWithMemberLock>/<ProjectName>/project_members/import

  4. Import the project members from other project and it will be successfully added to the current project which should not have been possible otherwise!

Regards, Ashish

Impact

Maintainer can add/import project members despite member lock to a group

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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

Impact

A maintainer could add or import project members despite the group's member lock.

What the attacker needed

A private group with member lock enabled; a maintainer role in a project within the group

How it was found

  1. As an owner of a private group, enable member lock in the group settings.
  2. Log in as a maintainer and go to a project within the group; note that the option to add project members is missing.
  3. Visit the project members import URL directly.
  4. Import members from another project, and they are successfully added to the current project.

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 on a setting that stops project maintainers from adding new members. However, the maintainer could still add members by using a special import page that was not blocked. This meant the lock could be bypassed.

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.