A member able to upgrade their/other member role to owner role
A user with the maintainer role could change their own or another member's access level to owner by modifying the access_level parameter in the request. This allowed privilege escalation to the highest project role.
GitLab
Originally disclosed on GitLab
- Fixed in 3 months
- Disclosed after 3 months
HackerOne report #1520001 by bethewolf on 2022-03-23, assigned to @nmalcolm:
Report | Attachments | How To Reproduce
Report
Hi Team,
Description:-
According docs and git lab GUI --->
A member with maintainer role is able to change other user role to (maintainer/developer/guest ), there is no option in git lab GUI for member that he can upgrade his or other member role as owner role .
But as maintainer I'm able upgrade my role and other user role to owner role ..
In request their is access level -
{"project_member":{"access_level":40}}' change it to {"project_member":{"access_level":50}}`
role will be change to owner role automatically :)
Reproducible steps -- for upgrade their role as owner -:
1.As a maintainer on a project click to upgrade or downgrade any other user role
2.Intercept request and change that member id with your member id
-
Make
{"access_level":50}there and forward request on burp -
See there A member was able to successfully upgrade their role as Owner
Now Upgrade any other member role to owner role --:
Reproducible steps:
- As a maintainer on a project click to upgrade or downgrade any other user role
2.Intercept request and Make {"access_level":50} there and forward request on burp
- See there A member role upgraded to owner
Impact
A member was able to upgrade thier and other user role to Owner (their is no option for owner role --> and a maintainer could't upgrade their or other user to Owner -->>
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
[REDACTED]
How To Reproduce
Please add reproducibility information to this section:
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 server did not verify that the requesting user had permission to assign the owner role, only checking that they could modify member roles.
Impact
A maintainer could upgrade their own or another member's role to owner.
What the attacker needed
Maintainer role on a project
How it was found
- As a maintainer, click to upgrade or downgrade another user's role.
- Intercept the request and replace the member ID with your own member ID.
- Change the access_level value to 50 and forward the request.
- Observe that the member's role is now Owner.
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.
In GitLab, project members have roles like guest, developer, maintainer, and owner. The report shows a maintainer could send a request with access level 50 instead of 40 and the role changed to owner.
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.