birdcam!

Ben Wilson

Ben Wilson

ben wilson This is the blog of a one Ben Wilson, a Louisville, Kentucky native who enjoys baseball, beer, music, bikes, things that fly and good food. By day he pushes pixels and makes the Internet happen for a local advertising agency. His wife, Kelly is an Ironman, and his baby Amelia is the cutest thing ever.

I just figured out a fairly sneaky WordPress exploit – one that you won’t even notice if you visit an exploited WordPress installation with a “normal” browser like Firefox or Internet Explorer. The exploit only “does it’s thing” when visited by a non-standard browser like a text-only one (like old-school Lynx) or, the intended target of this exploit – a search engine crawler like GoogleBot.

When this exploit gets loaded and sees GoogleBot, it spits out its content – which is normally a big wad of pharmaceutical SPAM, like Cialis, Viagra, etc. Google picks it up in it’s search results and the content the SPAM links to gets a bump in Google’s search ranking.

For example, when I view CXMagazine.com normally I see this:

But when the search engine crawler views it (or when you view the page using Firebug+FirePHP):

And eventually the search engine entry for that site looks like this:

Oops!

PS you can use the Google Mobile Viewer to view a site as Google might…

Some searching in the WordPress Support Forum led me to this post: Site Hacked – 301 Redirects, with some suggestions on fixes. None of my sites have been exploited, so I’m not sure what it will take to fix, but I would assume that as long as your database hasn’t been affected simply updating to the newest version should be sufficient.

I don’t know if this is a recent “development”, but this exploit is likely the result of folks not updating their WordPress installations after the major security update WordPress released back in the Fall of 2009. If you aren’t running the most recent version (2.9.1 as of this writing), you need to be. Check this: Old WordPress Versions Under Attack.

filed under Web and then tagged as ,
Feb 1 2010 ~ 8:11 pm ~ Comments (1) ~

1 Comment

  1. Excellent find!

    Comment by Mark Biek — February 1, 2010 @ 8:18 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

¨
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | thelocust dot org
all content © 2000-2013 ben wilson under the creative commons licensexhtmlcss