The Great WordPress Attack of 2009: My Thoughts

WordPress LogoOn Fri­day reports began sur­fac­ing around the Inter­net that a new worm was attack­ing a large num­ber of Word­Press instal­la­tions. It was soon dis­cov­ered that the prob­lem is a cross-script attack­ing vul­ner­a­bil­ity that was patched in ver­sion 2.8.3. Any site run­ning an ear­lier ver­sion can be attacked. Sev­eral high pro­files sites have been affected includ­ing TechCrunch, Andy Inhatko’s blog and Robert Scoble’s blog. Power blog­ger John Grub­ber quickly jumped to the occa­sion and began slam­ming Word­Press. Robert Scoble is another to begin point­ing blame. It’s some­what ironic that Scoble is an employee of the host­ing pow­er­house Rack­space and had not updated his insta­la­tion and also did not have a good backup. Andy Inhatko took the blame and wrote a good arti­cle on his effort to rebuild. This attack was PREVENTABLE! The vul­ner­a­bil­ity had been iden­ti­fied and a fix deployed but it is up to the site owner to apply it.

What can we glean from these attacks?

WordPress.com hosted blogs were not affected. For most peo­ple the ser­vice pro­vided by WordPress.com is suf­fi­cient for their blog­ging needs. Oth­ers want more con­trol and the abil­ity to use cus­tom themes and plu­g­ins. This is why many peo­ple choose to host their Word­Press blog on their own ser­vices but with extra flex­i­bilty come extra respon­si­bil­ity. One of the great­est strenghts of Word­Press is the easy 5 minute install, in my opin­ion this could be one of it’s weak­ness. Just about any­one can get it up and run­ning but many are not pre­pared to main­tain it. This includes installing patches and updates and mak­ing backups.

Back­ups: Why do today what you can put off until tomorrow?

I per­son­ally make daily back­ups of files and the data­base and keep about 1 months worth at any­time. Also I should define “backup”, a backup should be geo­graph­i­cally sep­a­rated from the server from whence it came and peri­od­i­cally tested. DO NOT just trust the host­ing com­pa­nies that claim they make nightly back­ups I have been burned twice by this claim. If you didn’t make the backup assume it does not exist! If you feel the repon­si­bilty of man­ag­ing and test­ing back­ups is too much then you should prob­a­bly not be run­ning your own install.

Updates: Not just a good idea, it’s the law!

The other key to sucess­fully run­ning your own Word­Presss blog is stay­ing up to date. The auto­matic upgrade fea­ture makes this incred­i­bly easy. I nor­mally test the update by restor­ing my backup to my local server. This allows me to test my back­ups and find any upgrade prob­lems before they go into pro­duc­tion. You can eas­ily get a copy of your bog run­ning on your desk­top with tools such as WAMP or XLAMP on Win­dows or MAMP on Mac.

Themes and Plugins

One of the excus…arguments that has been put forth about why an attacked blog was not up-to-date is prob­lems with legacy themes and plu­g­ins. Ulti­mately no plu­gin or theme is so impor­tant that you should com­pro­mise your sites secu­rity for it. When I am decid­ing on a new plu­gin or theme I have to eval­u­ate sev­eral items.

  • When was the plu­gin last updated? This one is easy. If the plu­gin hasn’t been updated in 4 years chances are you’ll have prob­lems upgrad­ing later
  • How many updates have been made? Is the plu­gin devel­oper actively keep­ing his code up to date. Word­Press, like any good soft­ware plat­form is con­stantly grow­ing and chang­ing. API’sWordPress get dep­re­cated and a good plu­gin devel­oper will keep his plu­gin up-to-date.
  • What does the code look like? This one is a lit­tle tricky, while I am not an expert PHP devel­oper I am a C# devel­oper and I can stum­ble my way through PHP. I’m really look­ing for obvi­ous signs that there may be problems.
  • Is there an active forum? A forum allows other users to share solu­tions to prob­lems even when a plugin’s devel­op­ment has slowed.

Run­ning your own Word­Press server is a fun and ful­fill­ing activ­ity, just remem­ber it’s open to the Inter­net so you have to take every precaution.

Links

How to keep Word­Press Secure

How to know if you have been attacked