Skip to content
Access control Write-up Beginner

Breaking the Rules: Deleting Confirmed Organizations Through a Backend Flaw

The application only hid the delete option for confirmed organizations in the browser interface, but the server still accepted a delete request for them. An attacker with access to the admin panel could delete a confirmed organization that was meant to be permanent.

cyberpro151 Follow

Published on medium.com

Hey everyone! Myself cyberpro151 and I’m back with another writeup about a unique flaw that I found in a recent pentest.

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

The restriction on deleting confirmed organizations was enforced only in the front-end, with no server-side validation of the organization's state before processing the delete request.

Impact

An authenticated user with access to the organization management panel could delete confirmed organizations that the application intended to keep permanent.

What the attacker needed

Authenticated access to the admin panel; ability to create a draft organization; an intercepting proxy

The fix

The server should check the organization's state and reject delete requests for confirmed organizations, rather than relying on the front-end to hide the option.

How it was found

  1. Log in to the application and open the organizations page.
  2. Create a draft organization for testing.
  3. Use the options menu on the draft organization and choose to delete it, capturing the request in an intercepting proxy.
  4. Drop the captured request so it is not sent.
  5. Confirm the organization in the browser so it becomes a confirmed organization.
  6. Resend the previously captured delete request and observe a successful response, then check that the organization is gone.

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.

Some websites hide buttons in the browser to stop you doing something, but the server behind the website may still accept the action if you send the request directly. Here, the delete button was hidden for confirmed organizations, yet the server did not check whether deletion was allowed. Someone using a tool to capture and resend web requests could delete an organization that was supposed to stay.

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 cyberpro151

View all

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