Skip to content
IDOR Write-up Intermediate

The Query That Forgot to Ask Whose Data It Was: Cross-Tenant Leak

Several endpoints on a multi-tenant project-management platform queried records by numeric ID alone, without checking that the record's tenant matched the requesting user's tenant. An authenticated user from one organisation could read another unrelated organisation's project exports, file attachments and task comments by supplying a known or guessed ID.

T4nv1 Follow

Published on medium.com

Multi-tenant architecture makes a promise that’s easy to state and surprisingly hard to enforce everywhere, every time, across an entire codebase: every single database query, in every single feature, must filter by tenant, with zero exceptions. Say it once, in a design document, and it sounds simple.

T4nv1, on medium.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 several endpoints queried records by numeric ID alone without verifying that the record's tenant identifier matched the requesting user's tenant, despite tenant-scoping being the platform's intended design elsewhere.

Impact

Any authenticated user could read certain categories of another unrelated tenant's data by referencing a known or guessed internal ID, bypassing the platform's multi-tenant isolation for those endpoints.

What the attacker needed

An authenticated account on the platform; a second, unrelated tenant to test against; knowledge or guessing of a target record ID

The fix

The three identified endpoints were patched within days, and the platform began a broader review to enforce tenant-scoping at a shared data-access layer.

How it was found

  1. Create two independent, unrelated test organisations on the platform.
  2. Authenticate as the first organisation and request an export for a project ID belonging to the second organisation.
  3. Observe that the export succeeds and returns the second organisation's project data.
  4. Repeat the cross-tenant ID substitution against other numeric-ID endpoints such as task details, time entries, file attachments and comments.
  5. Note that project export, file attachment download and task-comments listing leak, while the other endpoints correctly reject the request.

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 stores many separate customer organisations' data in one shared database, and is supposed to keep each organisation's records separate. Here, a few features looked up a record using only its number, without also checking that the record belonged to the organisation making the request. So anyone logged in could ask for another company's project or file by guessing its number and receive 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.

More by T4nv1

View all

113 more disclosed reports, best first.

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.