About two days ago, I received a warning from Google saying my website has been exploited and hacked. Of course, the emails they sent I never received, so I didn’t realise I had an issue until about an hour ago. My first reaction was OMG, WTF! I knew it most likely had something to do with the recent TimThumb exploit, but I didn’t even know my theme had TimThumb included. I also looked at the Google diagnostic repost which it linked me to, which I found the malware related to
First of all, I would advise running the script found at Sucuri. Then, scan your site using the Sucuri Site Scanner to find out which pages they have exploited and how. This is the best little site I have found for this, and I would definitely bookmark it for future reference as well if I were you.
Extremely quickly, I jumped to action. This is the exact steps I took and you can take too, to remove the exploits from your code:
wp-settings.php wp-includes/js/jquery/jquery.js wp-includes/js/l10n.js
wp-config.php” and look for anything that seems out of place. In mine, I found a script which appears to harvest login credentials/cookies, which found on the 2000 or so line. Above and a few thousand lines below were all blank:
If you found anything like the above, delete it straight away. If you’re not sure, delete every file that isn’t an image.
timthumb.php with the latest version found at
Change your MySQL and login password and update wp-config.php to correspond with the update.
Change the secret keys in
Clear your browsers cache and cookies.
Empty any page caching plugins you may have enabled to push the updates through to your visitors.
Throughout this, I also found a botting script and some spam black hat links. Make sure you scan your site using the Sucuri Site Scanner once again to make sure you removed all the exploits. When you are sure you have removed everything, submit your site to Google for review. This can be done in the
Diagnostics -> Malware tab of your Google Webmaster account. To keep up with anymore potential exploits, I would recommend following their fantastic blog found at blog.sucuri.net.