Email Spoofing - SPF record set to Neutral
The domain cloud.gov has an SPF record ending in ?all, which tells receiving mail servers to make no assertion about whether a sending server is authorised. An attacker could therefore send email that appears to come from the domain, and the reporter demonstrated this with a spoofing tool.
Originally disclosed on HackerOne
- Disclosed after 11 days
Summary by the program
Some of our domains lack SPF and/or DMARC records. While this is something we improve where we can, it's a known issue, and quite low risk. So, we don't consider lack of SPF/DMARC on these domains to be valid security issues.
The report
Hi,
Introduction: There is a email spoofing vulnerability.Email spoofing is the forgery of an email header so that the message appears to have originated from someone or somewhere other than the actual source. Email spoofing is a tactic used in phishing and spam campaigns because people are more likely to open an email when they think it has been sent by a legitimate source. The goal of email spoofing is to get recipients to open, and possibly even respond to, a solicitation.
Steps to Reproduce:
1.goto http://www.kitterman.com/spf/validate.html 2.Enter domain name: cloud.gov and click spf record if any under "Does my domain already have an SPF record? What is it? Is it valid?" 3.The SPF record is observed as below "Found v=spf1 record for cloud.gov: v=spf1 include:spf.mandrillapp.com ?all "
which is set to neutral,Neutral-The SPF record specifies explicitly that nothing can be said about validity.
In addition to above checking,
I used https://emkei.cz/ and send a test mail using cloud.gov domain which was delivered successfully.This further confirms that the emails spoofed
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The SPF record uses the neutral qualifier ?all instead of a restrictive one such as -all, so no sending server is explicitly authorised or rejected.
Impact
An attacker could send spoofed email appearing to come from the domain, which may be used in phishing; the program notes that missing or weak SPF/DMARC is a known, low-risk issue.
What the attacker needed
None
The fix
The SPF record could be made restrictive so unauthorised senders are rejected, and DMARC could be added.
How it was found
- Open an online SPF validator.
- Enter the domain cloud.gov and check its SPF record.
- Observe that the record ends with ?all, meaning neutral.
- Use an email spoofing service to send a test message claiming to be from the domain.
- Confirm the message was delivered.
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 report has not been written yet. The Original tab links to the source.
SPF is a DNS record that lists which mail servers are allowed to send email for a domain. When it ends in ?all, it means 'I have no opinion', so receiving servers do not reject mail from other servers. This lets someone send email that looks like it came from the domain, which is often used in phishing.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.