Skip to content
Access control Write-up Intermediate

Email Splitting Attack

The application and its SSO provider parse email addresses differently when a quoted local-part is used, so an attacker can create a user that the app treats as belonging to the corporate domain but the SSO provider treats as an external address. This lets a client_admin assign the staff_admin role and log in with local credentials, bypassing SSO and MFA.

medium.com

Published on medium.com

Client administrators can create and assign users. However, a clientadmin cannot assign the staffadmin role to either existing or new users unless the user’s email address belongs to the company’s domain.

Reket, 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

The application and the SSO provider used different email parsing rules for quoted local-parts, so the same address was classified as corporate by one and external by the other.

Impact

A client_admin can escalate to staff_admin and bypass SSO and MFA requirements because the SSO provider does not recognise the email as corporate.

What the attacker needed

A client_admin account; ability to create or modify users

How it was found

  1. As a client_admin, send a request to create a user with a quoted local-part email address that ends in the corporate domain.
  2. Assign the staff_admin role to that user.
  3. Log in with the local credentials created for that user, because the SSO provider does not treat the address as corporate and does not enforce SSO or MFA.

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.

Email addresses can be written in a quoted form that some systems read differently. Here the main app saw the address as ending in the company domain, but the login provider saw a different address. That mismatch let an attacker give themselves a higher role and sign in without the company's usual multi-factor login.

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.