SPF Protection not used, I can hijack your email server
The domain's email authentication policy (SPF) was configured in a soft-fail mode, so receiving mail servers were not told to reject mail claiming to come from the domain. An attacker could send spoofed email appearing to come from a company address, such as a security team, to phish users.
Originally disclosed on HackerOne
- Disclosed after 22 months
Description
Companies like Twiter,Facebook and even Hackerone implemented a strict email security policy (combining SPF, DKIM, and DMARC) but I don't see that from gratipay 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 gratipay.com 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.
POC IS ATTACHED HERE
Read why i am saying you to replace ~ with - : http://www.howtoforge.com/forums/archive/index.php/t-9007.html
Attachments

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
Impact
An attacker could send spoofed email from the domain, which could be used in phishing to steal a victim's session cookie and credentials; the text does not show a live spoof actually being delivered.
What the attacker needed
Ability to send email from any server; victim trusts the spoofed sender
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.
Email senders can be faked because the 'from' address is just text a sender writes. SPF is a DNS record that lists which servers are allowed to send mail for a domain, and the ending of that record tells receivers what to do with mail from anywhere else. A soft setting only marks such mail as suspicious, while a hard setting tells receivers to reject it, so the report asks for the hard setting.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.