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/

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:
-
As a
Ownerof a private group , enable member lock athttps://gitlab.com/groups/<group>/-/edit#js-permissions-settings -
Login as
Maintainerand go into project within the group. You will see that you dont have option to add project members athttps://gitlab.com/<GroupWithMemberLock>/<ProjectName>/project_members -
Now just visit direct url
https://gitlab.com/<GroupWithMemberLock>/<ProjectName>/project_members/import -
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!
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
- As an owner of a private group, enable member lock in the group settings.
- Log in as a maintainer and go to a project within the group; note that the option to add project members is missing.
- Visit the project members import URL directly.
- 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.