Skip to content
IDOR Write-up Beginner

IDOR Allows Attackers to Delete Any User’s Identity Documents \

The document deletion endpoint accepted an IdentityUniqueId without checking that the logged-in user owned that document. An attacker could change the identifier to another user's value and delete their identity documents.

Shrujal Mandawkar Follow

Published on medium.com

Hey security enthusiasts! 👋 Today, I’m sharing an alarming security vulnerability that allows an attacker to delete any user’s identity documents on xyz.com. This issue arises from anIDOR (Insecure Direct Object Reference) vulnerability, where the IdentityUniqueId parameter can be guessed or brute-forced, leading to…

Shrujal Mandawkar, 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

Impact

An attacker could delete other users' identity documents, which could cause account lockouts, compliance problems and identity theft risks.

What the attacker needed

A free account; ability to capture and modify requests

The fix

The endpoint should check that the authenticated user owns the document before deleting it, and should not rely on a client-supplied identifier alone.

How it was found

  1. Register two accounts, one attacker and one victim, and test the identity document upload and deletion process.
  2. Log into the attacker's account and capture the document deletion request.
  3. Change the IdentityUniqueId in the request to a range of possible values.
  4. Use Burp Intruder to automate the requests and delete multiple identity documents.
  5. Log into the victim's account and check their documents; all documents are 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.

An IDOR (Insecure Direct Object Reference) happens when a website uses an identifier from the user to pick a record but forgets to check that the user is allowed to touch that record. Here, the delete request included a document number, and the server deleted whatever document matched that number, even if it belonged to someone else.

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.

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.