Severity of an incident can be changed by a guest user
A guest user could change the severity of an incident because the server did not re-check permissions after the user was demoted. An attacker with a previously captured request could still modify incident severity despite no longer having the right.
GitLab
Originally disclosed on GitLab
- Fixed in 36 days
- Disclosed after 36 days
HackerOne report #1341674 by cradlr on 2021-09-16, assigned to @ngeorge1:
Report | Attachments | How To Reproduce
Report
Summary
The severity of an incident can be changed by a guest user due to privilege escalation.
Steps to reproduce
- Create 2 accounts on Gitlab.com. Create a group and invite another member to the group as an owner.
- Create a project under the group.
- From the invited user's session Go to Groups->Projects->Monitor->Create Incident.
- Create an incident and then choose the severity of that incident. Capture the request in Burp and send it to repeater.
- From the main user's session demote the user to Guest. Change the severity to low from the first user.
- Refresh the 2nd user's session. Now the 2nd user cannot change the severity.
- Fire the request from repeater. Severity gets changed.
Thanks,
Cradlr
Impact
Un-authorized user's can change the severity of the incident.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
Potential fix
See https://gitlab.com/gitlab-org/gitlab/-/issues/341479#note_690495909
Security development issue
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 re-check the user's current role when processing the request to change incident severity.
Impact
An unauthorised user could change the severity of an incident.
What the attacker needed
Two GitLab accounts; one user invited as group owner; ability to capture and replay requests
How it was found
- Create two accounts and a group; invite the second user as an owner.
- Create a project under the group.
- As the invited user, create an incident and capture the severity-change request.
- As the main user, demote the invited user to Guest.
- Refresh the invited user's session to confirm they can no longer change severity.
- Replay the captured request; the severity still changes.
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 many apps, users have roles like owner or guest. When a user's role is lowered, the app should stop them from doing privileged actions. Here, the server kept accepting an old request, so a demoted user could still change an incident's severity.
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.