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.
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
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
- Create a second account (Account B).
- Obtain a valid document ID belonging to another user.
- Navigate directly to the document URL using that ID.
- Observe that the document loads and real-time editing works and persists.
- Send a DELETE request directly to the backend for the document ID.
- 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.