<?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"
	>
<channel>
	<title>Comments for The Spanner</title>
	<atom:link href="http://www.thespanner.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thespanner.co.uk</link>
	<description>A tool for designers dealing with programmers dealing with designers...</description>
	<pubDate>Sat, 04 Jul 2009 23:55:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>Comment on CSP - Mozilla content security policy by Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1590</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1590</guid>
		<description>@Brandon

No probs I'll look forward to testing the beta :)

Regards the meta tag, when http header is used the meta should be ignored IMHO. If the strict rules are followed as in the spec. like the meta follows the head tag then it will be fine.</description>
		<content:encoded><![CDATA[<p>@Brandon</p>
<p>No probs I&#8217;ll look forward to testing the beta <img src='http://www.thespanner.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards the meta tag, when http header is used the meta should be ignored IMHO. If the strict rules are followed as in the spec. like the meta follows the head tag then it will be fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by Brandon Sterne</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1589</link>
		<dc:creator>Brandon Sterne</dc:creator>
		<pubDate>Mon, 29 Jun 2009 23:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1589</guid>
		<description>Great post, Gareth.  I'd like to respond to a few of the points you brought up.

1.  The E4X trick is a good one.  I have updated the spec to require that external scripts be served with a valid MIME type for JavaScript.  Great catch!

2.  With regard to "no code from strings", Wladimir's post pretty much covers it.  eval provides too much rope for developers to hang themselves with, so CSP turns it off by default.  Of course, sites that absolutely need to use those APIs can turn this restriction off.

3.  Regarding &#60;meta&#62; policy, I think you and Wladimir raised all the relevant points.  There's no specific security risk that an injected &#60;meta&#62; policy introduces, but it could cause bustage for the page.  In fact Sid, one of the developers implementing CSP, has proposed removing it from the design:
http://blog.sidstamm.com/2009/06/csp-with-or-without-meta.html
I don't feel strongly in favor of keeping it, but I do know that some users aren't able to set HTTP headers in their environment.  This is a risk vs. reward that will have to be considered.

Thanks again for the great feedback and I can't wait to see what you'll produce when you get a nightly build in your hands with a working implementation!</description>
		<content:encoded><![CDATA[<p>Great post, Gareth.  I&#8217;d like to respond to a few of the points you brought up.</p>
<p>1.  The E4X trick is a good one.  I have updated the spec to require that external scripts be served with a valid MIME type for JavaScript.  Great catch!</p>
<p>2.  With regard to &#8220;no code from strings&#8221;, Wladimir&#8217;s post pretty much covers it.  eval provides too much rope for developers to hang themselves with, so CSP turns it off by default.  Of course, sites that absolutely need to use those APIs can turn this restriction off.</p>
<p>3.  Regarding &lt;meta&gt; policy, I think you and Wladimir raised all the relevant points.  There&#8217;s no specific security risk that an injected &lt;meta&gt; policy introduces, but it could cause bustage for the page.  In fact Sid, one of the developers implementing CSP, has proposed removing it from the design:<br />
<a href="http://blog.sidstamm.com/2009/06/csp-with-or-without-meta.html" rel="nofollow">http://blog.sidstamm.com/2009/06/csp-with-or-without-meta.html</a><br />
I don&#8217;t feel strongly in favor of keeping it, but I do know that some users aren&#8217;t able to set HTTP headers in their environment.  This is a risk vs. reward that will have to be considered.</p>
<p>Thanks again for the great feedback and I can&#8217;t wait to see what you&#8217;ll produce when you get a nightly build in your hands with a working implementation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New beta of JSReg by Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/06/26/new-beta-of-jsreg/#comment-1588</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Sat, 27 Jun 2009 14:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=456#comment-1588</guid>
		<description>@Vitaly

I don't understand your point, I've not implemented eval or unescape yet</description>
		<content:encoded><![CDATA[<p>@Vitaly</p>
<p>I don&#8217;t understand your point, I&#8217;ve not implemented eval or unescape yet</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New beta of JSReg by Vitaly</title>
		<link>http://www.thespanner.co.uk/2009/06/26/new-beta-of-jsreg/#comment-1587</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Fri, 26 Jun 2009 23:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=456#comment-1587</guid>
		<description>Does not work with obfuscated JS appended to the end of:

hxxp://wxx.colcohist-gensoc.org/mysql/onename.php</description>
		<content:encoded><![CDATA[<p>Does not work with obfuscated JS appended to the end of:</p>
<p>hxxp://wxx.colcohist-gensoc.org/mysql/onename.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1586</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Fri, 26 Jun 2009 14:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1586</guid>
		<description>@Wladimir

If you can only make the policy stricter this is still no good because you are giving the attacker control over the page. Should an attacker be able to remove the eval function from a page? Or maybe disable images from an external site, yeah it's not as serious as modifying the policy by adding it but it is still an issue IMHO.</description>
		<content:encoded><![CDATA[<p>@Wladimir</p>
<p>If you can only make the policy stricter this is still no good because you are giving the attacker control over the page. Should an attacker be able to remove the eval function from a page? Or maybe disable images from an external site, yeah it&#8217;s not as serious as modifying the policy by adding it but it is still an issue IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by Wladimir Palant</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1585</link>
		<dc:creator>Wladimir Palant</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1585</guid>
		<description>Should have been "a few pages" rather than "a few sites" above.</description>
		<content:encoded><![CDATA[<p>Should have been &#8220;a few pages&#8221; rather than &#8220;a few sites&#8221; above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by Wladimir Palant</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1584</link>
		<dc:creator>Wladimir Palant</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1584</guid>
		<description>Gareth, the meta tag is in fact not problematic since it can only make the policy stricter - this is of no use to the attacker. But I really wonder how a situation can happen where both the headers and the meta tag can be specified. Probably a server with a generically strict policy (all content served with the same headers) where a few sites want an even stricter policy.</description>
		<content:encoded><![CDATA[<p>Gareth, the meta tag is in fact not problematic since it can only make the policy stricter - this is of no use to the attacker. But I really wonder how a situation can happen where both the headers and the meta tag can be specified. Probably a server with a generically strict policy (all content served with the same headers) where a few sites want an even stricter policy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detecting browsers javascript hacks by Инокентий</title>
		<link>http://www.thespanner.co.uk/2009/01/29/detecting-browsers-javascript-hacks/#comment-1583</link>
		<dc:creator>Инокентий</dc:creator>
		<pubDate>Thu, 25 Jun 2009 12:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=340#comment-1583</guid>
		<description>Хорошая статья, больше бы таких!</description>
		<content:encoded><![CDATA[<p>Хорошая статья, больше бы таких!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1582</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Wed, 24 Jun 2009 08:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1582</guid>
		<description>@ebo

I think the more sensible option would be for the http header to take priority when used and ignore an attacker supplied meta tag</description>
		<content:encoded><![CDATA[<p>@ebo</p>
<p>I think the more sensible option would be for the http header to take priority when used and ignore an attacker supplied meta tag</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CSP - Mozilla content security policy by ebo</title>
		<link>http://www.thespanner.co.uk/2009/06/23/csp-mozilla-content-security-policy/#comment-1581</link>
		<dc:creator>ebo</dc:creator>
		<pubDate>Wed, 24 Jun 2009 08:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=448#comment-1581</guid>
		<description>"meta tag could merge policy" If a http header X-Content-Security-Policy is already set, you can't merge the policy with your meta tag. In according to the spec, a new policy will be created from the intersection of the two policies.</description>
		<content:encoded><![CDATA[<p>&#8220;meta tag could merge policy&#8221; If a http header X-Content-Security-Policy is already set, you can&#8217;t merge the policy with your meta tag. In according to the spec, a new policy will be created from the intersection of the two policies.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
