<?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; web+sniffer</title>
	<atom:link href="http://42.kaizeku.com/taxonomy/websniffer/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>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>
