Skip to content
Business logic Disclosed report Beginner

Email Spoofing Possible on torproject.org Email Domain

The torproject.org domain lacks SPF and DMARC records, allowing attackers to send spoofed emails that appear to come from the domain. This could be used to phish employees or users.

greenwolf Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

Summary: Due to a missing SPF and DMARC record it is possible to spoof emails from torproject.org. This could potentially be used to trick employees or users via phishing emails.

Description: Mail servers rely on both SPF and DMARC to properly deal with email spoofing. SPF shows what servers are allowed to send emails for the current domain. However when a mail does not originate from one of the listed IP's or domains it does not automatically get rejected. What happens to the spoofed email relies of the DMARC policy of the domain. If there is no DMARC policy or the DMARC policy contains 'p=none;' then no action is taken and the email is accepted, even though SPF has failed.

Steps To Reproduce:

  1. You can verify there is no SPF or DMARC policy with the following commands on Linux or OSX:

$ dig torproject.org txt Verify there is not SPF record. $ dig _dmarc.torproject.org txt Verify there is no DMARC record.

Supporting Material/References:

  • I have attached an image of a spoofed email from [email protected] to my outlook account called 'Spoofed-Email.png'.
  • I have attached an image of some OSINT output, showing that a number of [company] employees use this email domain. 'OSINT-Showing-Primary-Domain.png'
  • I have attached a small sendgrid script for you to test the spoofing called 'spooftest.sh'.

Impact

By exploiting this issue, attackers can spoof emails from your domain, which could be used to target your customers or employees with phishing emails.

As 90% of security breaches and compromises start with Phishing emails, allowing your domain to be spoofed removes an additional layer of protection for your customers, as they will see a legitimate from address at the top of a non legitimate email. This means an attacker doesn't have to rely on techniques such as character replacement which users have been trained to spot. E.g goggle.com or microsift.com.

To fix the issue, a DMARC record containing 'p=reject;' should be added, which will cause spoofed emails to be rejected by the recipients mailbox.

Further Reading: https://blog.detectify.com/2016/06/20/misconfigured-email-servers-open-the-door-to-spoofed-emails-from-top-domains/ https://posts.specterops.io/gathering-open-source-intelligence-bee58de48e05

This may sound like a small thing, but it can be a severe issue when misunderstood. Once, while working with a client, they had to respond to a nasty phishing incident. The attacker was, very convincingly, spoofing their email addresses to employees and other organizations. This simple check for DMARC and SPF records helped them understand what had happened. They thought SPF and vendor-provided email security solutions had spoofing on lockdown, so they moved to the next logical assumption, that the accounts had been compromised. However, they had never setup a DMARC record. Spoofing is a deceitfully difficult thing for many organizations because email security is so frequently misunderstood and so many exceptions are made for marketing, PR, automated alert emails, and other situations where spoofed emails are being used legitimately.

Attachments

OSINT-Showing-Primary-Email-Domain.png
OSINT-Showing-Primary-Email-Domain.png From the original on HackerOne
Spoofed-Email.png
Spoofed-Email.png

The original report as published on HackerOne, by greenwolf. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 domain lacks SPF and DMARC DNS records, so receiving mail servers have no policy to reject spoofed emails.

Impact

Attackers could spoof emails from the domain, which could be used to phish customers or employees.

What the attacker needed

None

The fix

A DMARC record with a reject policy should be added to cause spoofed emails to be rejected.

How it was found

  1. Run a DNS TXT query for the domain to check for an SPF record.
  2. Run a DNS TXT query for the _dmarc subdomain to check for a DMARC record.

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.

Email systems use records like SPF and DMARC to check if a sender is allowed to send email for a domain. Without these records, anyone can send email that looks like it comes from that domain, and the recipient's server won't reject it. This makes it easier for attackers to trick people with fake emails.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by greenwolf

View all

1 more disclosed report, best first.

More from Tor

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.