So, we got hacked. It’s going to take a while to figure out all the things that got messed with. But I’ve now changed the permissions on the files on the servers so that they won’t be overwritten again.
One of the problems that’s lingering is that the text in the post composition window is white. While this probably doesn’t sound so bad, it makes it tricky to enter anything – because the background is also white!
Ok, so now I’ve resolved the background issue. Not quite sure what caused that.
Anyway, it would appear that there are a few major security flaws in Word Press:
- All the files for the site are in the document tree for the web site
- they get installed as writable by the owner by default – tricky not to be otherwise you can’t upgrade
- there’s apparently some script that can be hijacked to overwrite a whole bunch of crap, and add stuff. I found:
- a backup file that’s not even in the document tree for WP!
So this brings up an interesting point: it’s cool and easy to use a hyper popular third party tool for stuff, but somebody out there knows all the weaknesses of the system. If you write your own custom software, you really need to stick out to make it worthwhile for somebody to hack your site. I’m 99% certain that this was an automatic hack-job, not somebody specifically targeting me. If I’d written my own blogging tool, it wouldn’t necessarily be as easy to use and as slick (hey, I only have so many hours in a day) but it would be much less likely to get hacked by an automatic script.
Homogeneity across systems is a recipe for vulnerability – once a vulnerability is uncovered in one system, all others are vulnerable.