SMPT Protection not used, I can hijack your email server.
The domain's SPF record uses a neutral qualifier, so receiving mail servers are not told to reject mail from unauthorised senders. An attacker could send spoofed email appearing to come from the company's support address, which could be used in phishing to steal credentials.
- Triaged in under an hour
- Fixed in 2 hours
- Paid in under an hour
- Disclosed after 9 months
Description
Companies like Coinbase, Yahoo,Google,Facebook and even hackerone implemented a strict email security policy (combining SPF, DKIM, and DMARC) but I don't see taht from block.io , You should apply strict SMPT policy to stop spoofed email sending from your domain. POC is attached.
Exploit 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 block.io id and password (SESSION COOKIE). The results can be more dangerous.
Code to Exploit:
<?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);
?>
You should do the fix (see the fix below) To prevent misunderstanding and to protect your users.
FIX
Replace ?all with -all to prevent fake email.
Your's record:
v=spf1 include:spf.mandrillapp.com ?all
It should be
v=spf1 include:spf.mandrillapp.com -all
POC IS ATTACHED HERE: http://gyazo.com/1f753428abff659b3f83df625dc380bc
OUTPUT:
SPF record lookup and validation for: Block.io
SPF records are published in DNS as TXT records.
The TXT records found for your domain are:
v=spf1 include:spf.mandrillapp.com ?all
Checking to see if there is a valid SPF record.
Found v=spf1 record for Block.io:
v=spf1 include:spf.mandrillapp.com ?all <---------- this is your mistake
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 a neutral qualifier (?all) instead of a hard fail (-all), so receiving servers are not instructed to reject unauthorised senders.
Impact
An attacker could send spoofed emails from the support address, which could trick users into visiting a phishing site and giving up their credentials.
What the attacker needed
No special access needed; victim must receive and trust the email
The fix
The SPF record should be changed to end with -all so that unauthorised senders are rejected.
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 servers are allowed to send email for a domain. The record here ends with a neutral setting, so other mail servers have no instruction to reject fake messages. That makes it easier for someone to send email that looks like it came from the company.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.