Wordpress MySQL injection
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):
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). |
How To Sell More | How To Focus Better | Time Management
FREE GUIDES: 33:33 System | How To Start a Digital Business
>>> The 3 Secrets to How I Made $152,414 in 7 Months! <<<