Skip to content
IDOR Write-up Beginner

Accidental IDOR that Deleted Admin Account.

A team member deletion feature accepted a user ID without checking ownership, so an attacker could delete any account. The author accidentally deleted the admin account by sending a delete request with user_id=1.

Sayaan Alam Follow

Published on medium.com

Bounty$325 View original

{{media:0}}

Sayaan Alam, 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 server did not verify that the requesting user had permission to delete the target user ID.

Impact

An attacker could delete any user's account, including the admin's, causing denial of service and data loss.

What the attacker needed

A user account on the site; ability to intercept and modify requests

How it was found

  1. Find the feature to add and delete team members on your account.
  2. Capture the delete request in Burp.
  3. Change the user_id parameter to 1 (the admin's ID) and send the request.

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.

An IDOR (Insecure Direct Object Reference) is when a website lets you change a number or name in a request to access something that isn't yours. Here, the delete request used a user ID, and the server didn't check if the person sending it was allowed to delete that user. So by changing the ID to 1, the author deleted the admin's account.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Sayaan Alam

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.