close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Hackers somehow using mail_php.php

Thread began 9/03/2017 6:21 pm by Steve | Last modified 9/22/2017 10:44 am by Steve | 1485 views | 11 replies

Steve

UPDATE

So here is what we received recently (see screen shots). I changed the "blank" email template to have three asterixis as shown here:

***Details are also saved to DB for later use

Also there is NO input on the Contact form with the Id or Name of "message" yet it shows in the final recieved email.

Additionally, the Blank template page using the $remove[] method to exclude "hdn-consent" from the final email but it is not coming into play as this shows in the final email.

Still at al loss on how they could be sending / submitting these forms when they show field values not present and now even reference a recent update of "***Details are also..."




<?php
$remove = array();
$remove[] = "";
$remove[] = "x";
$remove[] = "y";
$remove[] = "hdn-consent";
$remove[] = "comment";

$removeBegins = array();
$removeBegins[] = "Security";

$removeEnds = array();
$removeEnds[] = "_x";
$removeEnds[] = "_y";

$removeIncludes = array();
$removeIncludes[] = "Security";
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blank Template</title>
</head>
<body style="padding: 20px; text-align: center;">
<div id="background" style="padding: 20px; text-align: center; font-size: 12px; width:97%">
<div id="page" style="padding: 5px; margin: 0 auto; width: 660px; text-align: left;">
<div id="header" style="padding: 10px;">
<h1 style="padding: 0px; margin: 0px 0px 2px 0px; font-size: 18px; text-decoration: none; font-weight: bold;">MH Only Submission</h1>
<p style="padding: 0px; margin: 0px 0px 2px 0px;">***Details are also saved to DB for later use</p>
</div>
<div id="contentWrapper" style="padding: 0px 0px 40px 0px;">
<div id="contentHeader">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">Form Submitted:</th>
<td style="font-size: 12px; padding: 3px;"><?php $now = time(); ?><?php echo date("n-j-Y", $now); ?>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<?php echo date("g:i A T", $now); ?></td>
</tr>
</table>
</div>
<div id="content" style="padding: 10px 10px 10px 0px;">

<table cellpadding="0" cellspacing="0" border="0">
<?php
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
if (get_magic_quotes_gpc()) $pval = stripslashes((is_array($pval)?implode(", ",$pval):$pval));
if ($pkey == "34rrSGD") $pkey = "Comments";
?>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>
</tr>
<?php
}
}
?>

</table>
</div>
</div>
</div>
</div>
</body>
</html>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...