Splitting the email atom: exploiting parsers to bypass access controls
Executive Summary
The paper demonstrates how inconsistencies in email address parsing—stemming from RFC‑compliant but complex syntax such as quoted strings, comments, escapes, and Punycode—can be leveraged to create domain confusion that bypasses access controls and even leads to remote code execution. The author presents a proof‑of‑concept framework, a free online CTF, and slides from Black Hat and DEF CON, illustrating how attackers can craft seemingly valid addresses that are interpreted differently by mailers, parsers, and applications. While the work is purely research, it highlights that web applications that rely on third‑party parsing libraries may unknowingly make security decisions based on misparsed domains. Defensive guidance includes strictly following RFC specifications when implementing email parsing, validating parsed results against expected formats, and avoiding reliance on parsed domain information for critical access control decisions.
Original Overview
Some websites parse email addresses to extract the domain and infer which organisation the owner belongs to. This pattern makes email-address parser discrepancies critical. Predicting which domain an email will be routed to should be simple, but is actually ludicrously difficult - even for 'valid', RFC-compliant addresses. In this paper I'm going to show you how to turn email parsing discrepancies into access control bypasses and even RCE. This paper is accompanied by a free online CTF, so you'll be able to try out your new skill set immediately. You can also get this paper as a print/download friendly PDF. You can also grab the slides from Black Hat . I presented this talk at Black Hat and DEF CON. You can watch it here: Creating email domain confusion Encoded-word case studies...