SMTP protection not used
The domain's SPF record used a soft-fail qualifier, which tells receiving mail servers to accept but flag mail from unauthorised senders. An attacker could therefore send spoofed email appearing to come from the company's security address and use it to phish users.
b7882330c6060c6b277c5a1 Follow
Originally disclosed on HackerOne
- Fixed in 25 hours
- Disclosed after 58 days
Hi
I'm checking your website found spf record there. You should apply strict SMPT policy to stop spoofed email sending from your domain.
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 coin.space 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);
?>
Fix
Your SPF record is v=spf1 include:_spf.google.com ~all
It should be v=spf1 include:_spf.google.com -all
I strongly recommend you to read this article :
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 -
Best Regard Shubham
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 ended with a soft-fail qualifier instead of a hard-fail qualifier, so receiving servers were told to accept spoofed mail rather than reject it.
Impact
An attacker could send spoofed email from the company's security address to phish users into visiting a malicious site that steals their session cookie; the report does not show this was actually carried out.
What the attacker needed
Domain uses SPF soft-fail; victim trusts sender address
The fix
The SPF record should be changed to end with a hard-fail qualifier so 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 mail servers are allowed to send email for a domain. The last part of the record says what to do with mail from anywhere else: a tilde means 'accept it but mark it suspicious', while a minus means 'reject it'. Because this domain used the tilde, someone could still send email that looked like it came from the company.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.