Skip to content
IDOR Write-up Beginner

Authorization bug that every bug hunter missed on a popular program

An account deletion endpoint accepted a user identifier supplied in the query string and deleted the matching account without verifying that the caller owned it. An attacker who knew a victim's identifier could permanently delete that account.

Ajinkya Pathare Follow

Published on fellchase.blogspot.com

Sunday, December 15, 2019

Ajinkya Pathare (@fellchase), on fellchase.blogspot.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 handler trusted a client-supplied user identifier from the query string and did not check that it matched the authenticated session.

Impact

An attacker who obtained a victim's user identifier could permanently delete that account; the report notes the identifier was a UUID and the author could not find a way to harvest it, so the issue remained largely theoretical.

What the attacker needed

A free account; knowledge of the victim's user identifier

The fix

The endpoint should verify that the supplied user identifier belongs to the authenticated session before deleting an account.

How it was found

  1. Sign up for an account and capture the account info request in a proxy.
  2. Change the request method from GET to DELETE and observe the error about a missing user ID.
  3. Add the user ID as a query string parameter and send the DELETE request.
  4. Observe a 200 response and confirm the account was permanently 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 website should check that you are allowed to act on an account before it does so. Here, the delete-account request trusted a user ID placed in the web address, so anyone who knew another person's ID could delete their account. The ID was a long random string, which made it hard to guess.

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 Ajinkya Pathare

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.