News for hackers. Stuff that matters.
Re: Security Threat: WordPress Under Attack by patio11 on Saturday September 05, 2009 @08:41AM (#806471)
I'll admit, this got me to do a quick sweep of my dozen or so WP blogs and make sure they were all updated. That said, I think its likely we're seeing TechCrunch Journalism (TM) in action.

Wordpress security is a pain in the keister, though. You can reduce your risk by:

1) Making regular backups (I like automysqlbackup.sh.) Comprehensive compromise of a Wordpress installation is only really recoverable by wiping and starting over, unless you want to find that your forgotten posts from 3 years ago are linking to viagra pharmacies.

2) Putting every Wordpress installation in its own DB with its own DB user. Don't use root. I have a script which installs WP for me and creates the new DB, creates the new user, and gives the user an insanely difficult password because it will never actually be typed by a human.

3) Making sure the Wordpress directories can't get written to by the server. I go as far as blocking the uploads, which means I have to do some chmod magic when uploading things.

4) If you can put up with the nuisance, protect the wp-admin directory at the web server level, for example by denying all IPs but your own, or by putting it under HTTP Basic authentication. That will cut down drastically on the number of automated probes that hit you. You don't have to run faster than the tiger, you just have to run faster than the other guy the tiger is chasing...

Re: Security Threat: WordPress Under Attack by nuclear_eclipse on Saturday September 05, 2009 @11:38AM (#806629)
do a quick sweep of my dozen or so WP blogs and make sure they were all updated

If you install and set up Wordpress Mu [1], you can run all those blogs off of a single installation, and then not only do you have a contralized install to manage plugins and themes, but it's far easier to keep a single install up to date compared to twelve or more...

[1] http://mu.wordpress.org/

Re: Security Threat: WordPress Under Attack by patio11 on Saturday September 05, 2009 @12:25PM (#806698)
I apologize to TechCrunch -- a member of a private forum I'm on, who I consider trustworthy, has reported that he discovered that his blog was hacked in exactly the manner specified.
Re: Security Threat: WordPress Under Attack by ionfish on Saturday September 05, 2009 @08:58AM (#806483)
Regarding your point #4, it's also worth securing the admin area to only be accessible over HTTPS. I also prefer HTTP Digest authentication to Basic.
Re: Security Threat: WordPress Under Attack by mcav on Saturday September 05, 2009 @01:20PM (#806783)
I've swapped out my Wordpress installation in favor of a static HTML site generated by a couple of Python scripts. Wordpress is great if you need all that power, but it isn't maintenance-free. Making things static reminded me how nice it can be to have a site that is essentially immune to attack and blazing fast, all without the overhead of dynamic page generation. It's cool that Movable Type does static generation too.
Re: Security Threat: WordPress Under Attack by restruct on Saturday September 05, 2009 @08:47AM (#806476)
Ironically, TechCrunch itself appears to be running WordPress 2.7.1 instead of the latest 2.8.
Re: Security Threat: WordPress Under Attack by enra on Saturday September 05, 2009 @04:13PM (#806968)
They're running Wordpress Mu which sometimes "lags" behind the normal Wordpress. For long time after 2.8. came Mu was still 2.7.1, and just recently they have cached up to 2.8.4a.
Re: Security Threat: WordPress Under Attack by onreact-com on Saturday September 05, 2009 @10:03AM (#806538)
Yeah. That's pathetic. You should erase any signs of the WP version you actually use as this is an open invitation for hackers.

Check out: http://designblurb.com/remove-wordpress-generator-meta-tag-h...

Re: Security Threat: WordPress Under Attack by stse on Saturday September 05, 2009 @04:42PM (#806996)
The only thing you're preventing is people reminding you that you have an old version. Worms, spiders and exploits doesn't check your version and someone checking will just see that you have removed it and try anyway.
Re: Security Threat: WordPress Under Attack by onreact-com on Sunday September 06, 2009 @05:28AM (#807636)
There are still plenty of malicious scripts around that check the version. More advanced ones can't be fooled by that of course.
Re: Security Threat: WordPress Under Attack by ig1 on Saturday September 05, 2009 @10:26AM (#806558)
WordPress is probably the most heavily attacked web apps ever designed. If your serious about security then don't use Wordpress or always keep up with releases.
Re: Security Threat: WordPress Under Attack by pbhjpbhj on Saturday September 05, 2009 @10:48AM (#806573)
It gets more good attention too - it's better designed, easier to use, looks good has a vast range of plugins and templates available for free ...
Re: Security Threat: WordPress Under Attack by tptacek on Saturday September 05, 2009 @01:03PM (#806760)
Wordpress has what is quite possibly the worst security design of any piece of web software.
Re: Security Threat: WordPress Under Attack by dryicerx on Saturday September 05, 2009 @02:52PM (#806885)
Their no better or worse than any other, their just heavily attacked since it's so wide spread use.

It's preferable write a exploit of find a flaw in something so widespread and carpet bomb them all instead of doing the same for a rarely used piece of software.

Re: Security Threat: WordPress Under Attack by tptacek on Saturday September 05, 2009 @03:16PM (#806910)
WordPress registers users for comments in the same table as administrators, making anonymous commenters into "administrators" with no privileges. It is constructed almost entirely out of concatenated SQL queries with no explicit parameter bindings. It's internationalized and relies on explicit input filtering. Its templates are executable code; templates can pop a shell. It has, in the actual web application, a "theme editor" that edits that executable code. Because it's built on ad-hoc PHP, it's had --- within the last two years --- remote file inclusion vulnerabilities, where people can load portions of other people's WordPress installs off their own MySpace pages. It supports hundreds of plugins, all of which have the exact same problems and the exact same exposure.

vBulletin and Mediawiki are also incredibly popular. But they have nothing resembling the rap sheet that WordPress has.

Try another argument.

Re: Security Threat: WordPress Under Attack by karanbhangui on Saturday September 05, 2009 @06:09PM (#807113)
You do realize you're talking to a security researcher right?
Re: Security Threat: WordPress Under Attack by tptacek on Saturday September 05, 2009 @06:19PM (#807125)
I'm wrong about security all the time. I like it when people argue with me. But I'm not wrong this time.
Re: Security Threat: WordPress Under Attack by JDigital on Saturday September 05, 2009 @01:20PM (#806781)
Are hacked Wordpress installations usually running old versions, or is the latest Wordpress version usually equally vulnerable?
Re: Security Threat: WordPress Under Attack by Tichy on Saturday September 05, 2009 @10:04AM (#806540)
Any word on how the debian package fares? It is stuck at version 2.5.1, but hopefully they provide extra patches?
Re: Security Threat: WordPress Under Attack by ionfish on Saturday September 05, 2009 @10:18AM (#806552)
The WordPress core team don't, to the best of my knowledge. The Debian maintainers may.
Re: Security Threat: WordPress Under Attack by _ck_ on Saturday September 05, 2009 @09:34AM (#806504)
Install this simple plugin on any version of WordPress to block bad queries like that:

http://pastebin.com/f6697b79

It could easily be expanded to also look at $_POST data which is another form of attack you'll never see in your logs.

Re: Security Threat: WordPress Under Attack by duskwuff on Saturday September 05, 2009 @03:12PM (#806901)
The bad queries show up after your blog has already been hacked.
Re: Security Threat: WordPress Under Attack by _ck_ on Saturday September 05, 2009 @11:45PM (#807436)
Part of the attack is via XSS using $_GET queries that are very long. Apache defaults to accepting URLS up to 4K long which is insane and allows such attacks to happen. 255 characters is a far better lockdown with very few if any false positives.
Re: Security Threat: WordPress Under Attack by onreact-com on Saturday September 05, 2009 @10:01AM (#806535)
This is just business as usual. Wordpress is under attack constantly. One of my blogs has been hacked 5 times this year already.

Of course updating is not enough.

That's why the Obama campaign used Movable Type instead of WP.

Re: Security Threat: WordPress Under Attack by jonknee on Saturday September 05, 2009 @05:54PM (#807094)
I thought they used Drupal?