Skip to content
Access control Write-up Beginner

Unauthorized Workspace Deletion via Broken Access Control

The workspace deletion API did not check the caller's role, password confirmation, or the requirement to remove all members first, even though the UI enforced these. A low-privileged Operational Admin could replay the deletion request and permanently delete the whole workspace.

medium.com

Published on medium.com

I’m Sagar Kirola, and in this writeup I’ll share an interesting business logic vulnerability I discovered in a communication and collaboration platform used for workplace management.

Sagar Kirola, on medium.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 backend API trusted the frontend to enforce role checks, password confirmation and preconditions, and never re-validated them server-side.

Impact

A low-privileged admin could permanently delete an entire workspace, causing organisation-wide denial of service, loss of administrative access and possible loss of business data.

What the attacker needed

A low-privileged admin account; a captured deletion request

The fix

The backend should enforce the exact role, a recent password confirmation, ownership and all business-logic preconditions on the deletion endpoint itself rather than relying on the UI.

How it was found

  1. Log in as a Super Admin and start the workspace deletion, capturing the request in a proxy.
  2. Note that the deletion request body carries no password even though the UI asks for one.
  3. Create a second account and give it the Operational Admin role.
  4. Log in as the Operational Admin and capture its session cookies.
  5. Swap the Super Admin session for the Operational Admin session and replay the same deletion request.
  6. Observe that the workspace is deleted with no password prompt and no Super Admin approval.

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.

A workspace is a shared area where a company's users and settings live. The website's screens hid the delete button from less powerful admins, but the server behind the screens accepted the delete request from anyone who sent it. So a junior admin could wipe the whole workspace even though the interface said they could not.

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.

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.