War Room

Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 09-04-2009, 01:27 PM   #1
HyperActive Warrior
War Room Member
 
uclaboyz's Avatar
 
Join Date: Mar 2005
Location: Long Beach, CA, USA.
Posts: 377
Thanks: 8
Thanked 19 Times in 9 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to uclaboyz
Default Wordpress MySQL injection

Just want to give you guys a heads up for those who run Wordpress blogs:

Wordpress MySQL Injection - Permalink hack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]

Thanks,
Steve

For your convenience, I'm copying & pasting my blog post here (images won't come through):

Quote:
Just want to write up a quick post on the latest Wordpress MySQL Injection that has seemed to attack many of the Wordpress blogs - including several of my own.

I found out about this problem last night when an email came to me from GetResponse notifying that my blog announcement feeds are no longer working.

I quickly went over to my blogs and noticed my permalink structure has been changed.

Diagnosis:

Put your mouse cursor over a permalink (or over a post title) and see if it has the following string appearing in the URL:

... [see original post for code] ...

/%&(%7B$%7Beval(base64_decode(Array%5BHTTP_EXECCODE %5D))%7D%7D|.+)&%

If so, you have been hacked!

How to Fix:

Login to your Wordpress dashboard and go to Settings -> Permalinks

Change your permalink structure to what you had before.

Now from a SEO stand point of view I had to absolutely make sure that my permalink structure was the same as before, and if you don’t remember what your permalink structure was for your site, simple got to Google and type in:

site:yoursite.com

Then look at one of your blog posts and see how the permalink URL is structured.

Then you want to remove a hidden admin user to your blog. You will most likely not be able to see who this is if you go to Users tab:

manage-usersAs you can see there are 2 Administrators, but I only see myself in the list.

To remove the uninvited guest you are going to have to login to your MySQL (cPanel -> MySQL -> phpMyAdmin) and go to your wp_users table, and sort the ID column to see the latest registered user:

wp_users

You will notice a user without an email address. To further verify that this user has Administrator privilege, go to wp_usermeta table and verify that this user_id has wp_user_level of 10:

wp_usersmetaPrevention:

I’m still keeping an eye out for future attacks. The same attacked happend to one of my Wordpress blogs that has the latest 2.8.4 version on it so I don’t think upgrading to latest version will help prevent this attack from happening to you (but highly recommended to run latest Wordpress version anyway).

uclaboyz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to uclaboyz For This Useful Post:
Old 09-04-2009, 01:42 PM   #2
John Burnette
War Room Member
 
globalpro's Avatar
 
Join Date: Aug 2007
Location: S.E. USA
Posts: 532
Thanks: 94
Thanked 68 Times in 58 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

Hi,

There was somebody else that posted this problem earlier:

Help! My Blog Posts Now Have Weird Code on the URL

Really stinks. Thread does have some additional info.

Thanks,

John

globalpro is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-04-2009, 01:56 PM   #3
Not Banned
War Room Member
 
AllAboutAction's Avatar
 
Join Date: Jun 2009
Posts: 36
Thanks: 16
Thanked 3 Times in 3 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

Quote:
Originally Posted by uclaboyz View Post
Just want to give you guys a heads up for those who run Wordpress blogs:

Wordpress MySQL Injection -

Thanks,
Steve
For those too lazy to click through, the article says that this is affecting versions up through 2.8.4, which is the latest stable release.

The article shows how to clean it up, but doesn't mention a fix.

Thanks for posting this, Steve.

EDIT: Heh, Steve posted his entire post above, making this post redundant. Move along!


AllAboutAction is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-04-2009, 02:17 PM   #4
Program Owner
 
Akarin's Avatar
 
Join Date: Aug 2009
Location: Ft. Lauderdale, FL
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's FaceBook Profile 
Contact Info
Send a message via ICQ to Akarin
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

Quote:
Originally Posted by AllAboutAction View Post
For those too lazy to click through, the article says that this is affecting versions up through 2.8.4, which is the latest stable release.

The article shows how to clean it up, but doesn't mention a fix.

Thanks for posting this, Steve.
LOL Thanks!

I Want Your Insurance Agent Traffic! - affiliate.IAIMS.com
I Also Wholesale High-Quality, Exclusive Insurance Leads - www.IAIMS.com
Insurance Agent Internet Marketing Systems (IAIMS)
Akarin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-05-2009, 05:14 AM   #5
Internet Infopreneur
War Room Member
 
Join Date: Apr 2008
Location: , , .
Posts: 242
Blog Entries: 2
Thanks: 25
Thanked 200 Times in 69 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

An article explaining this in more detail:

Old WordPress Versions Under Attack Lorelle on WordPress

A way to get rid of the 'hidden' admin:

Wordpress Permalink & Rss problems

If you need to do a complete re-install:

How To Completely Clean Your Hacked WordPress Installation | Smackdown!

Apparently, the hack is deep and may affect your database itself, allowing for
future attacks. I took the advice in the first article and did a complete deletion
and reinstall of my blog, after backing up the content and then imported it back
into the new install. It's a pain - but better safe than sorry, right?

All success
Dr.Mani

drmani is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-05-2009, 02:28 PM   #6
Warrior Member
 
Join Date: Aug 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

Quote:
Originally Posted by AllAboutAction View Post
the article says that this is affecting versions up through 2.8.4, which is the latest stable release.

The article shows how to clean it up, but doesn't mention a fix.
It is possible to have the hidden admin created before the final attack hits. If that is the case then upgrading won't help with everything. However, if your blog was not attacked already, and there is no hidden admin account, then upgrading to 2.8.4 should in fact keep you safe from this round of attacks (not saying that something new won't come out a couple of weeks from now).

From testing that has been done it does not look like fresh installs of 2.8.4 are subject to the specific vulnerabilities that are being used in this set of exploits.

-Michael

mvandemar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-05-2009, 03:47 PM   #7
HyperActive Warrior
 
CmdrStidd's Avatar
 
Join Date: Feb 2009
Location: Cincinnati, OH, USA
Posts: 296
Thanks: 56
Thanked 34 Times in 28 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

That is one reason you need to have ALL your tsql code in a business layer so that the hackers cannot inject anything into the code to do stuff like this. Any of you who are coders should know what I am talking about. If you are doing sites for clients please make sure that there are at least 2 layers between the surfers and the actual tsql functionality. You should be running a data validation layer and a communications layer to protect your WP and databases from any kind of injection attacks.

The Taxman wants his money!! Firesale is on at det-enterprises.com!!! 1,000's of articles on sale now!!! Everything at ridiculously low prices.
CmdrStidd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-05-2009, 09:56 PM   #8
Active Warrior
 
Join Date: Jul 2007
Location: , , .
Posts: 73
Thanks: 0
Thanked 7 Times in 6 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

correct me if I'm wrong but mysql injection prevention should be done by the web host - first line of defence although it wouldn't surprise me if your web host says it's a wordpress problem like they usually do.
emigre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-06-2009, 09:35 AM   #9
Senior Warrior Member
War Room Member
 
KirkMcD's Avatar
 
Join Date: Apr 2006
Location: , , USA.
Posts: 1,708
Thanks: 17
Thanked 41 Times in 40 Posts
Default Re: Wordpress MySQL injection - latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+

Quote:
Originally Posted by emigre View Post
correct me if I'm wrong but mysql injection prevention should be done by the web host
If it was the host's responsibilty they wouldn't allow you to install anything that they didn't write.

Quote:
it wouldn't surprise me if your web host says it's a wordpress problem like they usually do.
That's because it is WP's problem.

If you rented a place to live and something you installed broke, would you blame the landlord?

KirkMcD is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 12:58 AM   #10
Warrior Member
 
Join Date: Jul 2009
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default Re: Wordpress MySQL injection

But I would say thanks to thread poster it was informative and some problem solved for me

Sattarmalik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 02:14 AM   #11
Don't think about rabbits
War Room Member
 
SeanIM's Avatar
 
Join Date: Nov 2005
Location: ...between my left and right ear.
Posts: 652
Blog Entries: 1
Thanks: 11
Thanked 30 Times in 23 Posts
Default Re: Wordpress MySQL injection

Thanks for the heads up...I'm sure there will be another update soon to patch this hole.


SeanIM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
and% or, attack, injection, latest, mysql, wordpress, wordpress hack, wordpress injection

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:58 PM.