SMTP protection not used
Unknown
Vulnerability Details
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 :
https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability
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**
Actions
View on HackerOneReport Stats
- Report ID: 56177
- State: Closed
- Substate: resolved
- Upvotes: 1