Email exploitation with web hosting services.
The reporter claims that a PHP mail script uploaded to a public HTML directory allowed sending emails to arbitrary recipients, and that a domain exposed internal email addresses. They suggest an attacker could use these to spoof emails or conduct phishing.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 45 days
- Disclosed after 55 days
Exploitation steps:
You must upload the PHP file to the public HTML.
I created this PHP code for testing. And I uploaded it.
Must check the permissions are checked.
Basically, I can send emails to anyone using your organisation email list.
I can also send emails to your organisation people.
Most of the company are secure with this vulnerability.
You will find those emails in the primary section/ in the promotions section.
Please Carefully do everything it will happen must be.
Exploit code:
<?php $to = "█████"; $subject = "Email exploitation test"; $txt = "Email exploitation test"; $headers = "From: ███████"; mail($to,$subject,$txt,$headers); ?>Impact
A short explanation of why all organisations believe this is a technical security vulnerability.
When I visited this domain [ https://█████████/ ]
I found different types of emails from snov.io. And there are a lot of emails that are internal information about your organisation.
That should not be known to the public. An attacker can copy those emails and then they can do email spoofing or email
bombing with those emails. If an attacker can use those emails he/she then can send messages, not from your organisation. He or she can write
bad messages or wrong messages or false messages or scam messages to those victims. They can make a reputation loss.
They can send harmful news/false news/malicious files. They can do phishing attacks and steal the internal information of your organisation.
Sometimes it may occur different types of account hacks.
System Host(s)
███████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
You must upload the PHP file to the public HTML.
I created this PHP code for testing. And I uploaded it.
Must check the permissions are checked.
Basically, I can send emails to anyone using your organisation email list.
I can also send emails to your organisation people.
Most of the company are secure with this vulnerability.
You will find those emails in the primary section/ in the promotions section.
Please Carefully do everything it will happen must be.
Suggested Mitigation/Remediation Actions
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 web server allowed execution of a user-uploaded PHP mail script without proper access controls, and a public page exposed internal email addresses.
Impact
An attacker could send emails to arbitrary recipients and potentially use exposed internal addresses for spoofing or phishing, though the report does not demonstrate actual spoofing.
What the attacker needed
Ability to upload a PHP file to public HTML
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.
The report says a PHP script that sends email was placed on a public web server and worked, meaning the server allowed anyone to send mail through it. It also says a website showed internal email addresses that should have been private. The reporter worries an attacker could use these to send fake or harmful emails.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.