HexBrain

HackerOne · Report #56742

SPF whitelist of mandrill leads to email forgery

Validstatus
6upvotes
8 Jun 2015disclosed

How it was found

I just sent a forged email to [email protected] that appears to originate from [email protected]. I was able to do this because of the following SPF record:

dig txt hackerone.com hackerone.com. 299 IN TXT "v=spf1 include:_spf.google.com include:sendgrid.net include:mail.zendesk.com include:spf.mandrillapp.com ~all"

Using my own mandrill account I can send email which appears to originate from hackerone. This is useful in phishing, and this type of vulnerability is news worthy (http://bits.blogs.nytimes.com/2015/04/09/sendgrid-email-breach-was-used-to-attack-coinbase-a-bitcoin-exchange/).

The patch is pretty simple. Complete your mandril registration process. This will lock out other mandrill users from sending email that originates from *@hackerone.com.

Let me know if you need me to send another forged email, or if have any other questions.

Thanks, Mike Brooks from Bishop Fox.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original