Skip to content
IDOR Write-up Beginner

How I Could Delete Any Account via a Critical IDOR/BOLA Flaw and

The account deletion endpoint identified the account to delete from an email value supplied by the client in a cookie and the request body, rather than from the authenticated session. An attacker could change that value to another user's email and delete that user's account.

S4AD_DXD Follow

Published on medium.com

Hi everyone! My code name is knox99, and my name is saad talji.

S4AD_DXD, 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 deletion endpoint took the target account's email from client-controlled cookie and body values instead of deriving the user's identity from the server-side session.

Impact

An authenticated attacker could delete another user's account, and the report says the server returned a success status and the victim account was gone; the Cloudflare WAF did not stop it because the request looked legitimate.

What the attacker needed

A free account; knowledge of the victim's email; a proxy tool to edit requests

The fix

The endpoint should derive the user's identity from a server-side session mapping and never accept the target account from client-supplied cookie or body values.

How it was found

  1. Create a normal user account and browse the application to map its features.
  2. Find the sitemap file referenced in robots.txt and note the account deletion endpoint.
  3. Submit the deletion form with your own details and intercept the request in a proxy.
  4. Change the Base64 email value in the cookie to the victim's email.
  5. Change the plain-text email in the request body to the victim's email.
  6. Send the request and confirm the victim account no longer exists by trying to log in.

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.

When you log in, the server normally remembers who you are and decides what you may do. Here the server instead believed an email address that the browser sent along with the request, so anyone could swap in someone else's email and the server would act on that person's account. This kind of flaw is called an IDOR: the program uses an identifier supplied by the user without checking that the user owns it.

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 S4AD_DXD

View all

1 more disclosed report, 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.