SMTP Smuggling Attack
-
Last week SEC Consult published an e-mail spoofing attack that can be used to smuggle unauthorized messages within an authorized message delivered via SMTP. The attack has been named SMTP Smuggling.
https://sec-consult.com/blog/detail/smtp-smuggling-spoofing-e-mails-worldwide/
Earlier today three CVEs were posted for postifx, exim and sendmail describing an SMTP Smuggling attack
CVE-2023-51764 postfix
CVE-2023-51765 sendmail
CVE-2023-51766 eximQuoting the description of the attack from https://www.postfix.org/smtp-smuggling.html
Details
The attack involves a COMPOSITION of two email services with specific differences in the way they handle line endings other than <CR><LF>:
-
One email service A that does not recognize malformed line endings in SMTP such as in <LF>.<CR><LF> in an email message from an authenticated attacker to a recipient at email service B, and that propagates those malformed line endings verbatim when it forwards that message to:
-
One different email service B that does support malformed line endings in SMTP such as in <LF>.<CR><LF>. When this is followed by "smuggled" SMTP MAIL/RCPT/DATA commands and message header plus body text, email service B is tricked into receiving two email messages: one message with the content before the <LF>.<CR><LF>, and one message with the "smuggled" header plus body text after the "smuggled" SMTP commands. All this when email service A sends only one message.
Postfix is an example of email service B. Microsoft's outlook.com was an example of email service A.
Impact
-
The "smuggled" SMTP MAIL/RCPT/DATA commands and header plus body text can be used to spoof an email message from any MAIL FROM address whose domain is hosted at email service A, to any RCPT TO address whose domain is hosted at email service B.
-
The spoofed email message will pass SPF-based DMARC checks at email service B, because the spoofed message has a MAIL FROM address whose domain is hosted at email service A, and because the message was received from an IP address for email service A.
Four questions:
- Can MDaemon be used to smuggle outbound messages?
- If yes, is there a workaround that can be deployed to prevent it?
- Does MDaemon accept smuggled inbound messages?
- If yes, is there a workaround that can be deployed to prevent it?
Happy Holidays.
Jeffrey Altman
-
-
-