Skip to content
Access control Write-up Beginner

Unauthorized File Deletion via Broken Access Control

A restricted user who only had view and download permissions could delete files uploaded by an organisation administrator. By replaying the administrator's delete request with the restricted user's session, the server accepted it and removed the file.

omerasraan Follow

Published on medium.com

A broken access control vulnerability was identified in a CRM application that allows a restricted user with view/download-only permissions to delete uploaded files by Org administrator.

Omer Mohsen, 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 delete endpoint only relied on the UI hiding the action and did not verify the caller's role or ownership on the server side.

Impact

A low-privilege user could delete files uploaded by an administrator, causing loss of stored records.

What the attacker needed

A restricted user account; an admin-uploaded file to target; ability to intercept requests

How it was found

  1. A privileged user uploads a file to a CRM record.
  2. Confirm the delete option is disabled in the restricted user's interface.
  3. As the administrator, trigger delete and intercept the request.
  4. Replace the administrator's session cookies with the restricted user's and resend.
  5. The server returns 200 OK and the file is deleted.

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 CRM is software for managing customer records, and it lets people upload files. The application hid the delete button from a low-privilege user, but the server never checked whether that user was allowed to delete. So swapping in the low-privilege user's login session on a delete request still worked, and the file was removed.

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 omerasraan

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.