Splitting the email atom: exploiting parsers to bypass access controls
Email address parsers may disagree on the domain, so a crafted address could pass validation for one domain but be delivered to another, potentially bypassing domain-based access controls.
Published on portswigger.net
In this paper I'm going to show you how to turn email parsing discrepancies into access control bypasses and even RCE.
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 root cause is that applications rely on email parsing libraries with inconsistent interpretations, so validation and mail routing disagree on the effective domain.
Impact
An attacker could potentially bypass domain-based access controls, though the effectiveness depends on the target's configuration and mailer.
What the attacker needed
Target parses email addresses to infer domain
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.
Websites may check the part after the @ to decide your company. Different programs read email addresses differently, so an address could look like one company but be treated as another, potentially tricking the site.
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.