Email spoofing in [email protected]
The reporter found that they could send an email with a forged sender address ([redacted]) that was delivered to the recipient's inbox rather than being flagged as spam. The attacker could impersonate the domain to send deceptive emails.
- Fixed in 6 days
- Disclosed after 7 days
Hey, I've found email spoofing vulnerability in [email protected] Issue:
When I try to send a fake email from [email protected] to my email ([email protected]) I was successful in sending a fake email to my inbox, this is an issue; because, fake mails should be sent into the 'spam' folder.
Exploit Code:
<?php
$to = "[email protected]";
$subject = "test by ahsan";
$txt = "testing";
$headers = "From: [email protected]";
mail($to,$subject,$txt,$headers);
?>
When I tried to run it as a web-app in my browser, like, I created a file in my server (e.g test.php) and in that file I put this exploit code, and saved it when i run it like myserver.com/test.php it showed a blank white page, and next i checked out my email and i received an email from [email protected] into my inbox saying 'testing'
I hope you'll fix it soon.. :-)
Thanks, Ahsan Tahir
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 domain lacks proper email authentication (such as SPF, DKIM, or DMARC) that would allow receiving servers to detect and block forged sender addresses.
What the attacker needed
Ability to send email with custom headers; a server to run a script
How it was found
- Create a PHP script on a server that sends an email with a forged From header.
- Run the script via a web browser.
- Check the recipient's inbox and observe the email appears to come from the spoofed address.
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 spoofing is when someone sends an email that looks like it came from a different address. Here, the sender could pretend to be [redacted], and the email landed in the inbox instead of spam, which could trick people.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.