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

<channel>
	<title>plaintxt.org &#187; preemptive</title>
	<atom:link href="http://www.plaintxt.org/tag/preemptive/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plaintxt.org</link>
	<description>Minimalism in blog design, an experiment</description>
	<lastBuildDate>Fri, 22 Jan 2010 17:20:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Vulnerability in Sandbox fixed</title>
		<link>http://www.plaintxt.org/2009/06/vulnerability-in-sandbox-fixed/</link>
		<comments>http://www.plaintxt.org/2009/06/vulnerability-in-sandbox-fixed/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 01:27:22 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[preemptive]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.plaintxt.org/?p=509</guid>
		<description><![CDATA[Thanks to WordPress user <strong>anoncobard</strong>, a cross-site scripting vulnerability in prior Sandbox versions has been fixed. I ask all Sandbox users to <a href="http://www.plaintxt.org/themes/sandbox/#download" title="Download Sandbox 1.6.1 for WordPress">download Sandbox 1.6.1</a> and upgrade.]]></description>
			<content:encoded><![CDATA[<p>Thanks to WordPress user <strong>anoncobard</strong>, a cross-site scripting vulnerability in prior Sandbox versions has been fixed. I ask all Sandbox users to <a href="http://www.plaintxt.org/themes/sandbox/#download" title="Download Sandbox 1.6.1 for WordPress">download Sandbox 1.6.1</a> and upgrade.</p>
<p>In the Sandbox <code>functions.php</code>, the pagination variable in the <code>sandbox_body_class()</code> passed an unsanitized variable that could be exploited using <a href="http://en.wikipedia.org/wiki/Cross-site_scripting" title="XSS - Wikipedia" rel="external"><abbr title="Cross-Site Scripting">XSS</abbr></a>.</p>
<p>See line 128 in the file:</p>
<pre>if ( ( ( $page = $wp_query->get('paged') ) || ( $page = $wp_query->get('page') ) ) &#038;&#038; $page > 1 ) {</pre>
<p>The variable <code>$page</code> is never validated before it is passed to the function and then to the page. By simply adding <code>$page = intval($page);</code> (thanks to Andy), we make sure what is passed is <em>only</em> a number (<a href="http://code.google.com/p/sandbox-theme/source/diff?spec=svn269&amp;r=269&amp;format=side&amp;path=/trunk/functions.php&amp;old_path=/trunk/functions.php&amp;old=265#sc_svn269_126" title="Diff of functions.php for Sandbox versions 1.6 and 1.6.1">see the diff of the changes</a>).</p>
<p>This has also been fixed for the Sandbox theme for WordPress.com accounts. Please note that there have been no reports the Sandbox theme being exploited, so we are glad that we were able to correct this weakness before it was announced. </p>
<p>Now get back to playing in your Sandbox.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plaintxt.org/2009/06/vulnerability-in-sandbox-fixed/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
