Insecure Direct Object Reference Allows Cross-Organization Resource Disclosure
An embedded-content API endpoint returned private external links belonging to other organisations when the resource identifier was swapped, and in some cases responded without any authentication token. An attacker who obtained another tenant's identifier could read that tenant's private group content.
Hello, Assalamualaikum. After a long time I thought need to write something on medium as got enough response on previous writeup.
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 endpoint looked up embedded content by identifier without checking that the caller belonged to the owning organisation, and in some paths without requiring authentication at all.
Impact
An attacker who obtains another organisation's identifier could read that organisation's private group content, and the endpoint may return content even without authentication.
What the attacker needed
Identifiers for both organisations' content; a free account
How it was found
- Add a private external link to a private group in one account and note the generated identifier.
- Add content to a private group in a second account and note its identifier.
- Request the embedded-content endpoint from the first account using the second account's identifier.
- Observe that the other organisation's private content is returned.
- Repeat the request without an authentication token and observe that content is still returned.
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 private link was meant to be visible only inside one organisation's group. The server looked up the link by its identifier but never checked that the person asking belonged to that group, so changing the identifier showed someone else's private link. The identifier is a long random string, which makes guessing hard, but the report argues that authorisation, not secrecy of the identifier, is what should protect the data.
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.