Skip to content
IDOR Write-up Beginner

From View to Destroy: Exploiting BOLA for Full Cross-User Documen

The platform used document IDs as direct object references and did not enforce ownership checks server-side, so any authenticated user could view, edit and delete other users' documents. An attacker with a valid document ID could read and modify another user's document in real time and permanently delete it.

Aditya Bhatt Follow

Published on meetcyber.net

https://github.com/karnop/realtime-collaboration-platform/security/advisories/GHSA-gj3h-wcpc-5pw7 https://github.com/karnop/realtime-collaboration-platform/security/advisories/GHSA-m56q-pj22-83xq

Aditya Bhatt, on meetcyber.net

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 backend trusted the document ID supplied by the client and never verified that the requesting user owned that document before allowing read, update or delete operations.

Impact

An attacker could read and modify other users' documents and permanently delete them, breaking confidentiality, integrity and availability across users.

What the attacker needed

A free account; a valid document ID of another user

The fix

The backend should enforce ownership checks on every request that reads, changes or deletes a document, rather than relying on the document ID alone.

How it was found

  1. Create a second account (Account B).
  2. Obtain a valid document ID belonging to another user.
  3. Navigate directly to the document URL using that ID.
  4. Observe that the document loads and real-time editing works and persists.
  5. Send a DELETE request directly to the backend for the document ID.
  6. Observe HTTP 204 and that the document is 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 document ID is like a house number. The site checked that you had a key (you were logged in) but never checked that the house was yours. So anyone who knew or guessed the number could walk in, change things and even knock the house down.

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 Aditya Bhatt

View all

25 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.