How I Chained a Broken Multi-Tenant Filter and a Missing IDOR Che
A multi-tenant employee-management platform validated only the top-level workspace identifier against the caller's token, then passed a nested filter object straight to the database query builder. By supplying an array of workspace identifiers inside that filter, an attacker could read another tenant's data and send themselves an administrative invitation to the victim organisation.
It was 2 AM on a Tuesday, and I was staring at a blank Burp Suite HTTP history. I had spent three hours mapping a massive enterprise employee-management platform (let’s call it targetapp.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 authorisation check ran only on the top-level workspace identifier, after which the user-supplied filter object was handed to the ORM, which turned a nested array into an IN clause without re-checking tenant ownership.
Impact
An authenticated low-privilege user could read another tenant's configuration data and obtain an administrative account in that tenant, reaching its employee database, billing settings and cloud integrations.
What the attacker needed
A low-privilege account in one tenant; knowledge of the victim tenant's workspace ID; ability to send crafted JSON requests
The fix
The API gateway was changed to reject unexpected data types such as arrays where a string is expected, and queries are now bound to the authenticated user's organisation at the database abstraction layer.
How it was found
- Capture the workspace query request made while editing your own profile.
- Confirm a plain swap of the workspace identifier is rejected as forbidden.
- Add the identifier key inside the filters object as an array holding both workspace IDs.
- Observe that records from both workspaces are returned.
- Reuse the same array nesting on the team invite endpoint with an elevated role.
- Receive an administrative invitation to the victim organisation and complete sign-up.
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.
The app lets many companies share one system, and each company should only see its own records. The server checked the main 'which company' field but then trusted a second, nested field that the user also controls, so a list of company IDs slipped past the check. That let the tester read another company's data and even get an admin invite to it.
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.