Skip to content
IDOR Write-up Intermediate

The Great Tenant Mix-Up: How I Accidentally Became Every Company’s Employee

The SaaS platform TenantSafe trusted client-supplied tenant identifiers in URLs, headers, cookies, and request bodies, allowing an authenticated user to access other tenants' data. An attacker could read documents, user lists, billing information, and integration credentials belonging to other companies.

infosecwriteups.com

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.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 application trusted client-supplied tenant identifiers (in URL paths, headers, cookies, and JSON bodies) without validating them against the authenticated user's tenant, and lacked consistent server-side tenant context binding.

Impact

An authenticated user could access confidential documents, billing information with credit card details, user databases with personal information, and API credentials from many other companies, potentially leading to regulatory violations and loss of customer trust.

What the attacker needed

A free trial account; knowledge of another tenant's identifier

The fix

The platform was fixed by removing client-supplied tenant identifiers, implementing server-side tenant context binding, adding tenant isolation testing, enhancing audit logging, and conducting security training.

How it was found

  1. Sign up for two trial accounts to simulate different companies.
  2. Observe that the dashboard URL contains the company name.
  3. Swap the company name in the URL and send the request with the original account's token and cookie.
  4. Receive the other company's dashboard data.
  5. Test API endpoints by adding tenant identifiers in headers, query parameters, and JSON bodies.
  6. Confirm cross-tenant access to documents, users, billing, and integrations.

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.

Multi-tenant software lets many companies share one system, and each company's data should be kept separate. Here, the system believed whatever company name the user's browser sent, so a user from one company could ask for another company's information and get it. This is like a hotel giving you a key to any room you name.

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.

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.