When Multi-Tenant Isolation Completely Falls Apart
A multi-tenant partner portal trusted a client-supplied tenant ID header without authentication, allowing anyone to read other organisations' partner data. The APIs also returned sensitive business and personal data without any credentials.
medium.com
Published on medium.com
So I was poking around a partner portal during some routine security research, and I stumbled into something ugly. I changed one HTTP header, literally just swapped X-PRM-TenantId: 986 to X-PRM-TenantId: 200, and suddenly I was looking at a completely different company's partner data.
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
The server derived tenant context from a client-controlled header and did not require authentication or verify authorisation before returning data.
Impact
An attacker could read other tenants' partner names, revenue figures, contact details and database schema without credentials, enabling competitive intelligence gathering and targeted phishing; the customer later made the most sensitive fields private, but the vendor left the public endpoints and cross-tenant routing unchanged.
What the attacker needed
Network access to the portal; no account needed
The fix
The customer changed the sensitive fields to no longer be anonymously accessible, but the vendor did not address the cross-tenant routing on public endpoints.
How it was found
- Notice that API requests include a numeric tenant ID header.
- Change the tenant ID to a different number and send the request.
- Observe that partner account data for another organisation is 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 multi-tenant platform is one website shared by many companies, and each company's data should be kept separate. Here, the server decided which company's data to show based on a number the visitor's browser sent, and it never checked who the visitor was. So anyone could change that number and read another company's information.
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.