Skip to content
Access control Write-up Intermediate

Privilege Escalation Via Broken Authentication A Story Of

A lower-privileged admin could delete the super admin by changing the user ID in a delete request, because the server did not check whether the caller had permission to remove that user. This allowed an admin to take over the workspace.

V3D Follow

Published on infosecwriteups.com

Hi Fellow Hunters, Hope you are doing well and taking care of your health, this side V3D. I want to write a quick write-up with my friends Anuj (whhackerbsac) and Manav (Ashhunter) on our recent findings.

V3D, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not enforce role-based authorization on the delete-user endpoint, allowing any admin to delete any user regardless of role.

Impact

A lower-privileged admin could delete the super admin and take over the workspace.

What the attacker needed

Attacker has admin role in workspace; attacker can invite or manage users; attacker can intercept requests

How it was found

  1. Create a workspace and invite a user as admin.
  2. As the admin, invite another user as read-write and then change their role to read-only.
  3. Intercept the request to delete the read-only user.
  4. Replace the read-only user's ID with the super admin's ID and forward the request.
  5. The super admin is deleted and the workspace is taken over.

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 write-up has not been written yet. The Original tab links to the source.

In a team workspace, different roles have different permissions. An admin should not be able to remove the super admin, but the server only checked that the request was a delete and did not verify the caller's role against the target user. By swapping the user ID in the request, the admin could delete the super admin and take control.

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

View all

2 more disclosed reports, best first.

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.