Serious bug, SPAM getting through

Bugs in eFa 4
Post Reply
User avatar
BOOZy
Posts: 39
Joined: 04 Oct 2017 13:17

Serious bug, SPAM getting through

Post by BOOZy »

I'm seeing spam that seems to originate from our domain getting through without a problem.
SPF for our domain is set as strict as possible with -all to hardfail on no match.
At closer inspection of the headers and how EFA checks SPF the issue seems clear:
EFA is not checking the domain in the 'From' entry, it's checking the domain in the 'Return-Path' entry.
That's not how it's supposed to work!

The 'Return-Path' entry is easily spoofed. Right now there's a spam run going on using 'return@edition.cnn.com' which is a legitimate domain but doesn't have any SPF records.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Serious bug, SPAM getting through

Post by shawniverson »

Can you give me some hard details, such as sanitized logs/headers/reports showing this happening?

SPF should be looking at the Envelope-From.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Serious bug, SPAM getting through

Post by shawniverson »

SPF by itself only looks at the envelope-from (MAIL FROM). It does not check the header From or check alignment. This envelope-from is reflected in the Return-Path.

https://tools.ietf.org/html/rfc7208
https://en.wikipedia.org/wiki/Sender_Policy_Framework

"SPF alone, though, is limited only to detect a forged sender claimed in the envelope of the email which is used when the mail gets bounced.[1] Only in combination with DMARC can it be used to detect the forging of the visible sender in emails (email spoofing[2]), a technique often used in phishing and email spam. "

https://tools.ietf.org/html/rfc7489
https://en.wikipedia.org/wiki/DMARC

"SPF checks that the IP address of the sending server is authorized by the owner of the domain that appears in the SMTP MAIL FROM command. (The email address in MAIL FROM is also called envelope-from or 5321.MailFrom.) In addition to requiring that the SPF check pass, DMARC additionally checks that 5321.MailFrom aligns with 5322.From."

In order to enable SPF From alignment, you need a DMARC record.
Post Reply