<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Script restrictions for mitigating XSS vulnerabilities</title>
	<atom:link href="http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/</link>
	<description>Jesse Ruderman on Firefox, security, and more</description>
	<lastBuildDate>Fri, 09 Sep 2011 05:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dominic Mitchell</title>
		<link>http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/comment-page-1/#comment-3810</link>
		<dc:creator>Dominic Mitchell</dc:creator>
		<pubDate>Tue, 07 Aug 2007 07:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/#comment-3810</guid>
		<description>I always like the phrase “generating HTML”.  If you&#039;re just chucking strings together, you&#039;re not generating HTML, you&#039;re generating security holes…</description>
		<content:encoded><![CDATA[<p>I always like the phrase “generating HTML”.  If you&#8217;re just chucking strings together, you&#8217;re not generating HTML, you&#8217;re generating security holes…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Sayre&#8217;s Mozilla Blog &#187; Blog Archive &#187; Interoperability and XSS Mitigation</title>
		<link>http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/comment-page-1/#comment-3806</link>
		<dc:creator>Rob Sayre&#8217;s Mozilla Blog &#187; Blog Archive &#187; Interoperability and XSS Mitigation</dc:creator>
		<pubDate>Mon, 06 Aug 2007 19:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/#comment-3806</guid>
		<description>[...] lot people say this. Jesse is the latest. These days, there are some good libraries. There&#8217;s even one for PHP. But input [...]</description>
		<content:encoded><![CDATA[<p>[...] lot people say this. Jesse is the latest. These days, there are some good libraries. There&#8217;s even one for PHP. But input [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Sayre</title>
		<link>http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/comment-page-1/#comment-3805</link>
		<dc:creator>Robert Sayre</dc:creator>
		<pubDate>Mon, 06 Aug 2007 13:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/#comment-3805</guid>
		<description>I&#039;m implementing it just to see what would happen. I&#039;m not sure the proposal is a good idea either.</description>
		<content:encoded><![CDATA[<p>I&#8217;m implementing it just to see what would happen. I&#8217;m not sure the proposal is a good idea either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/comment-page-1/#comment-3801</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 06 Aug 2007 04:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.squarefree.com/2007/08/05/script-restrictions-for-mitigating-xss-vulnerabilities/#comment-3801</guid>
		<description>Personally I think Gerv has the right idea. I did a survey of XSS protections earlier this year and his proposal was the only one I found that addressed the issue as a combination of client and server responsibilities.  I&#039;ve also posted some thoughts on a broader approach that I&#039;d been mulling over . Basically, I&#039;m of the opinion that same-origin could use a bit of an upgrade.

Of course, I completely agree with the benefits of pushing user-malleable data out-of-band. Plus, it&#039;s already a common practice in SQL via prepared statements and stored procedures. However, a few years ago I played around with building &quot;safe&quot; HTML entirely through server-side DOM manipulation. The result was clunky and had serious performance issues. Line-by-line HTML output ended up being a lot less resource-intensive than maintaining and manipulating a complete DOM tree in memory.

I&#039;m sure that my HTML generation issues could be mostly addressed by developing a good toolkit, but that&#039;s still only a partial solution. It doesn&#039;t matter if it&#039;s a stack frame or HTML, it&#039;s best to plan for potential overlap of user-data and application metadata. So, I&#039;m all for a more robust form of HTML generation, but I&#039;d also like to see some defense-in-depth against the range of origin-related vulnerabilities (like CSRF).

Regardless, it&#039;s nice to see forward progress in this area. I&#039;m not working on  web app security these days, but I&#039;m glad to see things moving forward.</description>
		<content:encoded><![CDATA[<p>Personally I think Gerv has the right idea. I did a survey of XSS protections earlier this year and his proposal was the only one I found that addressed the issue as a combination of client and server responsibilities.  I&#8217;ve also posted some thoughts on a broader approach that I&#8217;d been mulling over . Basically, I&#8217;m of the opinion that same-origin could use a bit of an upgrade.</p>
<p>Of course, I completely agree with the benefits of pushing user-malleable data out-of-band. Plus, it&#8217;s already a common practice in SQL via prepared statements and stored procedures. However, a few years ago I played around with building &#8220;safe&#8221; HTML entirely through server-side DOM manipulation. The result was clunky and had serious performance issues. Line-by-line HTML output ended up being a lot less resource-intensive than maintaining and manipulating a complete DOM tree in memory.</p>
<p>I&#8217;m sure that my HTML generation issues could be mostly addressed by developing a good toolkit, but that&#8217;s still only a partial solution. It doesn&#8217;t matter if it&#8217;s a stack frame or HTML, it&#8217;s best to plan for potential overlap of user-data and application metadata. So, I&#8217;m all for a more robust form of HTML generation, but I&#8217;d also like to see some defense-in-depth against the range of origin-related vulnerabilities (like CSRF).</p>
<p>Regardless, it&#8217;s nice to see forward progress in this area. I&#8217;m not working on  web app security these days, but I&#8217;m glad to see things moving forward.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

