Skip to content
Access control Write-up Beginner

How a Throwaway Email Walked Me Into Someone Else’s Tenant —

A multi-tenant SaaS application automatically added new users to an existing tenant if their email domain matched the tenant's configured domain. An attacker could sign up with a throwaway email on a public domain and gain access to other users' personal information within that tenant.

Thamotharan Vajramani Follow

Published on medium.com

I used the email I always use for first-look accounts. A fresh @yopmail.com address.

Thamotharan Vajramani, 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

Impact

An attacker could access personal information (email, name, phone number, job title, and in one case a full project record with address and geolocation) of other users in the tenant they were merged into.

What the attacker needed

A throwaway email on a public domain; the target tenant has that domain configured

The fix

The application should not automatically join users to a tenant based on email domain; it should require an invitation or explicit approval, and should verify domain ownership before associating a domain with a tenant.

How it was found

  1. Register a new account using an email address from a public domain like yopmail.com.
  2. Click the verification link sent to that email inbox.
  3. Sign in and observe that the returned companyId belongs to an existing tenant, not a new one.
  4. Use the authentication token to request the tenant's user list, which returns other users' personal information.

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.

When you sign up for a service, the system should create a new account for you. Here, the system mistakenly put new users into an existing group (tenant) just because their email ended with the same domain as the group's configured domain. This let anyone with an email from that domain see other members' details.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.