Skip to content
Access control Disclosed report Intermediate

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
  1. Create 2 accounts on Gitlab.com. Create a group and invite another member to the group as an owner.
  2. Create a project under the group.
  3. From the invited user's session Go to Groups->Projects->Monitor->Create Incident.
  4. Create an incident and then choose the severity of that incident. Capture the request in Burp and send it to repeater.
  5. From the main user's session demote the user to Guest. Change the severity to low from the first user.
  6. Refresh the 2nd user's session. Now the 2nd user cannot change the severity.
  7. 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

https://gitlab.com/gitlab-org/security/gitlab/-/issues/519

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 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

  1. Create two accounts and a group; invite the second user as an owner.
  2. Create a project under the group.
  3. As the invited user, create an incident and capture the severity-change request.
  4. As the main user, demote the invited user to Guest.
  5. Refresh the invited user's session to confirm they can no longer change severity.
  6. 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.

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.