YesWeHack ยท IDOR ยท Hall of Fame Rank 43
One merchant's login, every merchant's data
A missing ownership check turns a normal dashboard into everyone's dashboard.
Background
The platform โ whose name I am withholding in this writeup โ is one of India's largest merchant commerce platforms โ point-of-sale terminals and payment services used by a very large number of businesses. Platforms like this are multi-tenant by design: thousands of merchants share the same application, and the only thing separating one merchant's business data from another's is authorization logic on the server.
That makes them a perfect place to hunt for IDOR (Insecure Direct Object Reference), also called BOLA โ Broken Object Level Authorization, #1 on the OWASP API Security Top 10. The bug is never exotic: the server authenticates who you are but forgets to check whether this object belongs to you.
The vulnerability
The pattern is simple and devastating:
- Log in as Merchant A and perform a normal action โ view a record, a report, a transaction.
- The request carries an object identifier (an ID in the URL or body).
- Replace that identifier with one belonging to Merchant B.
- If the server returns B's data, it never verified ownership โ it only verified that someone was logged in.
That is exactly what happened here. Requests from my test merchant account returned data scoped to other merchants when the object reference was changed. No special tooling, no race condition, no bypass โ just a missing check.
How I found it
My standard two-account method for any multi-tenant app:
- Map first. Use Account A normally and record every request that carries an identifier โ in Burp Suite's history these stand out immediately.
- Harvest B's IDs. Create Account B, perform the same actions, note its identifiers and how they differ (sequential? predictable? leaked in other responses?).
- Replay across the boundary. Send A's requests with B's identifiers, keeping A's session. A
200 OKwith B's data is the finding; a403/404is the control working. - Prove scope, stop early. A handful of records across the boundary proves the class. I never bulk-download other people's data โ the report needs a demonstration, not a database.
Impact
Merchant data on a payments platform is commercially sensitive: transaction volumes, business details and operational records. In the hands of a competitor โ or a fraudster profiling targets โ a read-only IDOR at this scale is a serious breach of tenant isolation, and tenant isolation is the entire security promise of a multi-tenant platform.
Remediation
- Enforce object-level authorization on every request: the queried object must belong to the authenticated tenant, checked server-side.
- Scope database queries by tenant (
WHERE tenant_id = :session_tenant) instead of filtering after fetch. - Add negative tests to CI: Account A requesting Account B's objects must always fail.
Lessons
IDOR survives because authentication is visible and authorization is not โ login works, dashboards load, and nobody notices the missing check until someone changes an ID. If your app has two tenants, test the boundary between them before your users' competitors do.
Found something similar?
I help teams verify and fix issues like this โ and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.