Skip to content
IDOR Write-up Beginner

The Bug That Let Me Crash Another Tenant’s Department

A multi-tenant application enforced tenant boundaries when adding members to a department through one endpoint, but a different endpoint that edited a user's profile accepted a cross-tenant department identifier. An attacker could add their own user to another tenant's department and the victim tenant could not remove them.

medium.com

Published on medium.com

The app I was testing was multi-tenant — each tenant has its own users and departments. Normally, users can only add members from their own tenant into departments.

Sid_x95, 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 the user-profile update endpoint did not validate that the submitted department identifier belonged to the same tenant, unlike the department-member endpoint.

Impact

Cross-tenant trust was broken, attackers could place themselves inside victim departments, and victims had no way to remove the attacker, giving persistent unauthorised access.

What the attacker needed

A user account in one tenant; knowledge of a victim tenant's department id

The fix

The issue was quickly patched after being reported.

How it was found

  1. Try adding a cross-tenant user to a department through the department edit endpoint and observe the forbidden error.
  2. Edit a user profile and notice the department is included in the request.
  3. Replace the department identifier with a cross-tenant department identifier and submit.
  4. Observe the user is now a member of the victim tenant's department.
  5. Log in as an admin of the victim tenant and try to remove the user, observing the same validation error.

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 app keeps each customer's data separate, like separate companies using the same service. The app checked the rules on one screen but forgot to check them on another screen that also changed the same information. That let the tester put their own account into another company's group, and the other company could not remove 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.

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.