Skip to content
IDOR Write-up Intermediate

Chained Broken Object Level Authorization (BOLA) + CORS Misconfig

Documents were meant to be restricted per user, but any authenticated user could fetch another user's document just by referencing its identifier, because the server did not check ownership. A credentialed CORS misconfiguration then let a malicious website make authenticated requests on a victim's behalf and read the responses, so private documents could be exfiltrated across origins.

Aditya Bhatt Follow

Published on systemweakness.com

But when authorization flaws and browser misconfigurations combine, the impact multiplies.

Aditya Bhatt, on systemweakness.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 document endpoint performed no server-side ownership check on the requested object, and the CORS policy reflected an arbitrary origin while allowing credentials.

Impact

An attacker could read and harvest other users' private documents from a malicious page the victim visits, with no token theft or brute force needed.

What the attacker needed

Victim has an account and is logged in; victim visits an attacker-controlled page; attacker knows a document identifier

How it was found

  1. Victim logs into the application.
  2. Victim visits a malicious webpage.
  3. JavaScript on that page runs an authenticated fetch request to the document endpoint.
  4. The response containing another user's private document is rendered on the attacker page.

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.

Every document has a unique identifier, a bit like a file name. The server handed the document back to anyone who asked with that identifier, without checking whether the asker owned it. On top of that, the server told browsers that any website was allowed to read its responses while carrying the user's login cookies, so a page the victim visited could quietly fetch and read their private documents.

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.