<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>CogDogBlog &#187; hacked</title>
	<atom:link href="http://cogdogblog.com/tag/hacked/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogdogblog.com</link>
	<description>Alan Levine&#039;s space for barking about and playing with technology</description>
	<lastBuildDate>Mon, 13 Feb 2012 03:36:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
		<item>
		<title>Dead Blog Dog</title>
		<link>http://cogdogblog.com/2009/09/22/dead-blog-dog/</link>
		<comments>http://cogdogblog.com/2009/09/22/dead-blog-dog/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 04:03:32 +0000</pubDate>
		<dc:creator>Alan Levine aka CogDog</dc:creator>
				<category><![CDATA[Blog Pile]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cogdogblog.com/?p=4220</guid>
		<description><![CDATA[cc licensed flickr photo shared by Carplips I have had a hair tearing hacked WordPress blog experience here over the last 2 days. I don&#8217;t know why, but it really knocked my knees out, and I am reeling to figure out why this has gotten to me on an emotional level. That even sounds silly seeing those words. But I am not rolling over. Yet. It all surface, like many things, in the act of doing something else. I left a comment Sunday on someone&#8217;s blog about something rather inconsequential, and got an email later asking me if I knew my blog was riddles with spam links. Sure enough, I looked at the source code, and at the bottom, written with CSS to hide the display (but not hide from google) was a long list of every variation of PPC (pill/porn/casino) link one could imagine, maybe 120 of them. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Playing Possum" href="http://flickr.com/photos/carplips/1196443646/"><img src="http://farm2.static.flickr.com/1064/1196443646_2deff7d55b.jpg" /></a><br /><small><a title="Playing Possum" href="http://flickr.com/photos/carplips/1196443646/">cc licensed flickr photo</a> shared by <a href="http://flickr.com/people/carplips/">Carplips</a></small></p>
<p>I have had a hair tearing hacked WordPress blog experience here over the last 2 days. I don&#8217;t know why, but it really knocked my knees out, and I am reeling to figure out why this has gotten to me on an emotional level. That even sounds silly seeing those words.</p>
<p>But I am not rolling over. Yet.</p>
<p>It all surface, like many things, in the act of doing something else. I left a comment Sunday on someone&#8217;s blog about something rather inconsequential, and got an email later asking me if I knew my blog was riddles with spam links.</p>
<p>Sure enough, I looked at the source code, and at the bottom, written with CSS to hide the display (but not hide from google) was a long list of every variation of PPC (pill/porn/casino) link one could imagine, maybe 120 of them.</p>
<p>It&#8217;s kind of like discovering someone you did not invite snuck in a window and shat all over your basement. Just for the kicks.</p>
<p>I had some ideas where to look, cause it happened before when I had my template files set with writable permissions (lazy so I could edit in WP), and sure enough, I could see in my header.php template file a PHP include statement (calling in code from elsewhere on my site) and then another line calling a function I knew did not belong. I got rid of those quickly.</p>
<p>I noted the date of when this was changed (9/1/2009) when also I recalled a big spike, way above my normal, in blog views. Here I thought it was something I wrote, when it was really someone launching blog spam form my site.</p>
<p>The path that it was reading its source from was bizarre, because it was added inside the wp-includes/js/jquery directory&#8211; another directory was added here and inside were PHP files that had code hidden by base64_encoding (it takes normal looking code, and renders it as a long string of random looking numbers/letters; PHP can actually execute this code that looks like gibberish by an eval() statement). </p>
<p>And there was another directory with something like 14 Mb of small text files, each one a few paragraphs of jumbled sentences and HREF links- it looked like the random stuff you get in spam blog posts. Jeez, this meant that someone was using my site to launch spam at others.</p>
<p>It was easy to see that this did not belong by comparing to the download archive of the latest WP.</p>
<p>I made sure there were no other things festering in my templates. I decided to delete all of the WP code files, and re-install them.</p>
<p>I was relieved when this was done, and my site no longer included secret spam.</p>
<p>But it returned a few hours later. Damn!</p>
<p>I started to suspect the WP-Super-Cache plugin (from a twitter tip); it was a writable cache directory and might be a place to hide malicious code. I got rid of that, reloaded the entire WP code, and it was clean again.</p>
<p>I also exported my database to see if anything awry was in there, and did a whole bunch of searches on things that could indicate spam. Nothing.</p>
<p>I switched my template, and the crap was still there, suggesting the cause was somehow being written into the core Wp code (because the spam appeared after the closing &lt;html&gt; tag- and if the template was not adding anything, it seemed like it would have to be the WP code or a compromised plugin- but because it went away when I replaced thee WP code, my hunch is that something was being backdoored to modify WP itself (I am guessing wildly).</p>
<p>I read a lot of blog posts like <a href="http://lorelle.wordpress.com/2009/09/04/old-wordpress-versions-under-attack/">Old WordPress Versions Under Attack</a> which was not seemingly the case, no hacked permalinks&#8230; (although it was 9/1 when I upgraded from WP 2.8.3 to 2.8.4).</p>
<p>This was really getting to me, as I was feeling powerless as someone remotely was taking over my blog. I got rather down about this, and honestly contemplated closing up the site, or maybe moving it to WordPress.com</p>
<p>Not yet. Another twitter link I got was <a href="http://www.wptavern.com/top-5-wordpress-security-tips-you-most-likely-dont-follow">Top 5 WordPress Security Tips You Most Likely Don’t Follow</a>, and while I agree that some of them are just things to obscure things with a thin film, I employed most of the suggestions, including changing my FTP, database, and WP passwords (I only have one account and it ain&#8217;t &#8220;admin&#8221;).</p>
<p>So far, over the last 30 hours, the site has not been re-infected, yet I am still lacking a real indication of what happened. The malicious code I did find does not look like what was modifying my own blog.</p>
<p>And I am not about to feel any sense of victory here.</p>
<p>I admit, that there are a lot of hackers, including the one who peed on my site, are a lot more technically savvy than me in these areas, I&#8217;d rather focus on silly pictures and snarky prose.I know that. But this whole experience did rock my own confidence a lot (maybe bring it to a real level) and has left a nasty taste in my mouth.</p>
<p>Still, there is a large gaping silhouette of s shadowy powerful figure who is at the heart of this.</p>
<p>It is a dark hole with the shape of Google.</p>
<p>Google has built a successful, sprawling empire based on the elusive gold coin of the realm, link rank. Google provides the incentive that drives shady businesses to hire the 6 legged critters that crawl around and in try to inject unwanted links to the pill/porn business into the sites of innocent bystanders.</p>
<p><strong>And Google continues, in my eyes, to do absolutely nothing to help out the independent hosted blogger who spends inordinate amount of time battling spam or just giving up.</strong></p>
<p>Oh yeah, &#8220;no follow&#8221; was really effective. Yep. Google with all their super human brain power cant figure out a way to dis-incentivize &#8220;people&#8221; who game link rank by blasting links in every open web form on the net.</p>
<p>And no one holds their brightly colored logo to the fire for this.</p>
<p>Except me.</p>
<p>Google- I blame you for the last two days of hell trying to oust a spam hacker form my site, and I have every reason to believe I cannot rest at all.</p>
<p>Google- I lift my leg on you.</p>
]]></content:encoded>
			<wfw:commentRss>http://cogdogblog.com/2009/09/22/dead-blog-dog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>

