Missing spf flags for hackerone.com
The reporter claimed that hackerone.com's SPF record used a soft-fail qualifier, which they said would let an attacker send spoofed email appearing to come from the domain. They argued a victim could be tricked into visiting a phishing page that steals their session cookie.
- Fixed in 14 hours
- Disclosed after 25 hours
I just checked for SPF records for the hackerone.com domain, and there are none, effectively allowing for spam(spoof) to originate from that domain. you can validate by testing yourself here: http://www.kitterman.com/spf/validate.html
i want to show you an attack scenario An attacker would send a Fake email from [email protected] saying that Please change your password, The victim is aware of phishing attacks, But when he sees that the mail originated from [email protected] , He has no other way than to believe it. Clicking on the link takes him to a website where certain JavaScript is executed which steals his hackerone.com id and pin (SESSION COOKIE). The results can be more dangerous.
<?php $to = "[email protected]"; $subject = "Password Change"; $txt = "Change your password by visiting here - [VIRUS LINK HERE]l"; $headers = "From: [email protected]"; mail($to,$subject,$txt,$headers); ?>I strongly recommend you to read this article :
your spf report of hackerone.com is
SPF record lookup and validation for: hackerone.com SPF records are published in DNS as TXT records.
The TXT records found for your domain are: detectify-verification=013989914c06d6a62aa4663666920ac9 google-site-verification=glWWhC-27LpigyjAxBsVOVUScJgNQ23GWdC4uOWC3dc tinfoil-site-verification: 873ece466d6b512578883941b7e40f6c751bb6f0=190a4eea096ee61c4ba13b63a442cbc3dcf94811 google-site-verification=GObJCayWrxZLoAvYGPn8y75tF0SJk5d4iYrwMQTa23Y v=spf1 include:_spf.google.com include:sendgrid.net include:mail.zendesk.com include:spf.mandrillapp.com ~all
Checking to see if there is a valid SPF record.
Found v=spf1 record for hackerone.com: v=spf1 include:_spf.google.com include:sendgrid.net include:mail.zendesk.com include:spf.mandrillapp.com ~all
Your SPF record is v=spf1 include:_spf.google.com include:sendgrid.net include:mail.zendesk.com include:spf.mandrillapp.com ~all
It should be v=spf1 include:_spf.google.com include:sendgrid.net include:mail.zendesk.com include:spf.mandrillapp.com ~all
The problem The article clearly shows difference between softmail and fail you should be using fail as Softmail allows anyone to send spoofed emails from your domains. in your SPF record you should replace ~ with - at last before all , - is strict which prevents all spoofed emails except if you are sending. Your bug is that you are using ~ , you should use -
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
Likely the SPF record ends with a soft-fail qualifier rather than a hard-fail qualifier, which the reporter believes permits spoofed mail to be delivered.
Impact
An attacker could send email that appears to come from the domain, which may help phishing, although the text does not show that any spoofed mail was actually delivered.
What the attacker needed
Ability to send email; victim trusts sender address
The fix
The SPF record should be changed to use a hard-fail qualifier instead of a soft-fail one.
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 listing which mail servers may send email for a domain. The last part says what receivers should do with other mail: a tilde means soft-fail, a minus means hard-fail. The reporter says the tilde setting lets spoofed mail through.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.