WordPress users hack – how to detect security breach in your blog user list

Today was eventfull day. While launching a new version of 2-viruses.com I found a security breach, affecting WP 2.x, at least versions 2.0 and 2.1. They partially (at least) work at wordpress 2.7 as well.

Apparently, it is possible to 1) add an user to wordpress 2) change it status to administrator somehow and 3) hide that user from list of other users. 

Such users can be detected by mismatch between numbers and actual amount of users listed in /wp-admin/users.php, in administrator section of your wordpress blog. If wordpress tells that you have 2 users, but you see only one, your blog might be infected.

The hidding system is relatively simple : they overload first_name in wp_usermeta table with javascript which modifies output of userlist. This means that you can not see that user with JS enabled browser. The user used name “WordPress” to confuse things further, though it is quite clear that the user is not actual “system” user becouse it was aded much later on. 

I had to remove the cloaking code from my the wp_usermeta field and then deleted user using admin panel. It is still unclear when the infection started, but I would estimate it was about mid-summer 2008.

Related posts:

  1. WordPress 2.5 – what is new It looks like only couple of weeks passed from the time I updated to 2.3, and it was time to update to 2.5 version of...
  2. Feedburner WordPress plugins : take care while upgrading to 2.7 or 2.8 Yesterday I tweeked my blog’s feeds and looked for a plugin to integrate feedburner seemlesly. This appeared a bit more tricky than thought: Upgrade to...
  3. How to get rid of Security Tool Security Tool is a rogue antivirus scam, using generic name for disguise. Together with Cyber Security, they are hitting computers hard and forcing users into...
  4. Do you really need that powerful cms for simple projects? Last month I took over support of one project that inspired this post. It is a website with couple static pages, news and galleries that...
  5. Short evaluation of spyware removers – affiliate and end-user perspective This will be a short review of some of the leading anti-spyware solutions. Mostly the talk will be about good or bad things and things...


2 responses to “WordPress users hack – how to detect security breach in your blog user list”

  1. Daniel D

    Hi G. Found your post. Experiencing the same issue. I’m not that versed in mysql but saw in my wp_user that there are rogue users as well, one named “WordPress” and another named “Blog.” Can I just delete them from the wp_users or is there some other “Clean Up” I need to do? Also… what should I do after that to help resecure the blog? Reload WP files? Change passwords?

    Any help / advice is appreciated.

Leave a Reply