esses logo

Media Temple WordPress Sites Hacked

If you’re running WordPress on Media Temple’s Grid Service, there’s a good chance your blog has been compromised. I at first figured that my virus scanner was going haywire, but after looking at source code on a couple of sites I have hosted over on the Grid, I realized my database had been plagued with some script injection attacks.

http://ae.awaue.com/7

http://ie.eracou.com/3

If you’re finding the above references in an injected script in your source at the end of every post you have the exact same problem. The script has been appended to every post you have in your MySQL database. Luckily the fix is quick and easy. Here’s how to get rid of the WordPress hack:

1. Log In to your Media Temple Account Center

2. In the domain Admin Panel click ‘Manage Databases’

3. Log In To Admin which will take you to phpMyAdmin

4. Select the database of your WordPress installation from the left sidebar

5. Choose the SQL tab on the top

Copy in the following:

UPDATE wp_posts SET post_content = replace(post_content, ‘<script src=”http://ae.awaue.com/7″></script>’, ”);


The command there basically replaces the script with nothing, but it assumes that your database tables have the default suffix wp_. You may need to edit the command or malicious script accordingly. Now hit go and phpMyAdmin should tell you the number of instances of the script it removed. You can also check by viewing any previously posts in phpMyAdmin.

The next steps are to figure out what to do if you’ve been hacked. There’s a great post on the WordPress Codex for that here. @mediatemple also sent me this link on twitter. (thanks for the quick reply mt support).

I only host a site or two, none of them client sites, on the Grid Server. These recent security issues are one of the reasons why I have moved away from the (mt) Grid. Unfortunately, the affected blogs were my Dad’s so I really do have to notify the “client” in this case. Good luck with your own site!

14 Comments

Holler.

t: (415)493.8813
email icon e-mail
twitter icon twitter
facebook icon facebook