<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx</link><description>Recently, a number of people have asked me what I think about Mozilla’s Content Security Policy draft spec. Back in January, I went on record as being someone who thinks that CSP is a good idea. 
 CSP is a mechanism for declarative security , whereby</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9827110</link><pubDate>Thu, 09 Jul 2009 19:45:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9827110</guid><dc:creator>EricLaw [MSFT]</dc:creator><description>&lt;p&gt;@CLHandbook: I think it's important to understand that this is a *proposal* and not something that has been implemented by any browser at this point. &amp;nbsp;As described above, IE8's XSS Filter provides protection against common XSS attacks without requiring changes to websites to &amp;quot;opt-in.&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9827110" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9826055</link><pubDate>Thu, 09 Jul 2009 11:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9826055</guid><dc:creator>CLhandbook</dc:creator><description>&lt;p&gt;Very interesting and it's nice to know that these benefits are implemented. This way we can search over the internet without much fear about XSS attacks. There are lots of web threats circulating now and it's nice to know that Mozilla works in protecting their users from these attacks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9826055" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9807463</link><pubDate>Sun, 28 Jun 2009 19:24:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9807463</guid><dc:creator>EricLaw [ex-MSFT]</dc:creator><description>&lt;p&gt;Thanks, Gerv.&lt;/p&gt;
&lt;p&gt;@hAl: That same complaint was made against IE's XSS filter: &amp;quot;Hey, sites won't bother fixing XSS holes because IE8 users are protected by the automatic XSS filter.&amp;quot; &lt;/p&gt;
&lt;p&gt;The same line of thinking suggests that cars ought not have seatbelts and airbags, because they lead to careless driving. &amp;nbsp;While there's some sense in such an argument, fatality rates since the introduction of such mitigations suggest that the benefits still far outweigh the downside. &amp;nbsp;I believe this will prove true for CSP as well.&lt;/p&gt;
&lt;p&gt;Defense-in-depth is a very well proven philosophy when it comes to software security, and the site operators I've spoken to all recognize that features like the XSS Filter and declarative security mechanisms are necessarily additive, particularly considering browser adoption curves.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9807463" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9807226</link><pubDate>Sun, 28 Jun 2009 11:28:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9807226</guid><dc:creator>hAl</dc:creator><description>&lt;p&gt;@Gervase&lt;/p&gt;
&lt;p&gt;You said: &amp;quot;New attack surface. Because CSP can only increase security, any holes in &amp;quot;CSP&amp;quot; would be holes in a non-CSP browser. Unless they can attack the CSP parser itself;&amp;quot;&lt;/p&gt;
&lt;p&gt;But actually in many cases this might replace other security mechnisms and not nescesairily increase security but place it outside a site. And because the security is in a variety of browsers it adds attack surface if sites remove other security defences. &lt;/p&gt;
&lt;p&gt;Whereas security mistiakes in a site only harm the site and the visiters of that site a security issues in a browser is exloitable might wider. &lt;/p&gt;
&lt;p&gt;For websites considering security a extremely important feature to their site this is not good solution because they are unable to rely on all browsers implementing this flawlessly.&lt;/p&gt;
&lt;p&gt;CPS might provide additional security but also has its possible risks if sites start relying on it to heavily&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9807226" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9806323</link><pubDate>Sat, 27 Jun 2009 07:30:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9806323</guid><dc:creator>qualitydirectory</dc:creator><description>&lt;p&gt;I like CSP because it helps web developers and server administrators to define how content interacts on their sites. And it helps to detect attacks like XSS and data injection. But we need more improvement that helps site owners to prevent XSS attacks. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9806323" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9805830</link><pubDate>Fri, 26 Jun 2009 22:27:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9805830</guid><dc:creator>Dan Veditz</dc:creator><description>&lt;p&gt;We've argued ourselves about what the granularity of the policies should be. Origins felt like a workable chunk-size -- easily understood, useful, and compact enough for a header-based policy.&lt;/p&gt;
&lt;p&gt;While it's easy to imagine scenarios where you'd want to whitelist paths or specific resources, we don't know if it'll be a common-enough need to be worth the added complexity. Definitely something to think about once we have a beta implementation for sites to play with.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9805830" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9805105</link><pubDate>Fri, 26 Jun 2009 11:55:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9805105</guid><dc:creator>Gervase Markham</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;Thanks for the write-up, and I'm flattered to be credited as one of the sources for this idea.&lt;/p&gt;
&lt;p&gt;Your possible risks are important; here is how CSP has addressed some of them:&lt;/p&gt;
&lt;p&gt;* Plugins. Quite right - plugins are a law unto themselves. It's a larger problem to solve but, in the mean time, you can use CSP to disable them entirely or restrict plugin content to whitelisted sites, neither of which has been possible for site owners up to now.&lt;/p&gt;
&lt;p&gt;* Misconfiguration. Always an issue. We hope CSP strikes a balance between being understandable and being flexible :-), and it &amp;quot;fails closed&amp;quot; if the policy is broken. Feedback on how to help people write better policies would be welcome.&lt;/p&gt;
&lt;p&gt;* New attack surface. Because CSP can only increase security, any holes in &amp;quot;CSP&amp;quot; would be holes in a non-CSP browser. Unless they can attack the CSP parser itself; although we hope that the language is simple enough that we can write a secure parser for it :-)&lt;/p&gt;
&lt;p&gt;* Debuggability. We take this very seriously; policy parsing errors are reported to the Firefox console, and policy violations can be reported to a collector script. This means that even users of non-CSP-aware browsers benefit, because the site owner gets tipped off more quickly about the vulnerability.&lt;/p&gt;
&lt;p&gt;* Dynamic content. No security technology fits everyone. There are some complex pages, like these ones, for which CSP is difficult to implement. Fair enough. Trying to cover every scenario would come with a complexity cost.&lt;/p&gt;
&lt;p&gt;* Adoption. Being a server-side technology, we hope that large sites which embed user content or provide CMSes which do will adopt CSP, thereby deploying its benefits across the web. EBay, Facebook, Wordpress, Moveable Type etc. I think memories of the last few Facebook worms will mean that Facebook Towers rejigs their site organization and adopts CSP pretty quickly.&lt;/p&gt;
&lt;p&gt;Gerv&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9805105" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9804403</link><pubDate>Fri, 26 Jun 2009 01:29:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804403</guid><dc:creator>EricLaw [MSFT]</dc:creator><description>&lt;p&gt;@Keith: While we're on the topic, it's interesting to contrast declarative security against Content Advisor (which, incidentally, is still in use in some parts of the world).&lt;/p&gt;
&lt;p&gt;Content Advisor is based on a system whereby either a site describes its own &amp;quot;Rating&amp;quot; or a trusted reputation service (called a &amp;quot;Ratings Bureau&amp;quot;) provides a rating for them. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first scenario suffers from the problem that a given site may not elect to comply and identify its content, and therefore a child/restricted user would be able to view the site. &amp;nbsp;Thus, you would be correct to note that, because a site may not describe its own policy via CSP, that site would find itself at risk of attacks possibly mitigated by CSP.&lt;/p&gt;
&lt;p&gt;I'm not aware of any broadly used &amp;quot;Ratings Bureaus&amp;quot; for Content Advisor (as this feature is basically now legacy, replaced by Windows Vista Parental Controls and Windows Live Family Safety products) though they may exist in other locales.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804403" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9804391</link><pubDate>Fri, 26 Jun 2009 01:21:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804391</guid><dc:creator>EricLaw [MSFT]</dc:creator><description>&lt;p&gt;@Keith: A key design point for declarative security is that it's not the &amp;quot;user&amp;quot; making the security decision, it's the site owner. &amp;nbsp;As I mentioned, there is the risk of misconfiguration, but that would be a mistake on the part of the developer/admin, not the end-user.&lt;/p&gt;
&lt;p&gt;A layer 7 proxy appliance could *enforce* a security policy, but only if it knows what the policy should be. &amp;nbsp;Declarative security directives enable user-agents to know what the policy should be.&lt;/p&gt;
&lt;p&gt;@stefan: In the CSP proposal, your site would simply describe your desired policy in a policy file; the CSP header would point to that policy file. &amp;nbsp;CSP currently does not seem to offer granularity to the level you're looking for (e.g. down to the specific target URL) and this is probably feedback you should provide over on the &amp;quot;Talk&amp;quot; page.&lt;/p&gt;
&lt;p&gt;In terms of tooling, yes, I'd expect that if CSP is implemented and deployed, tools will be developed to help site owners author policy directives. &amp;nbsp;For instance, you could probably easily write a Fiddler addin that emits a &amp;quot;your current policy&amp;quot; file, based on what a crawl of an existing site turns up.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804391" width="1" height="1"&gt;</description></item><item><title>re: Declaring Security</title><link>http://blogs.msdn.com/b/ie/archive/2009/06/25/declaring-security.aspx#9804278</link><pubDate>Fri, 26 Jun 2009 00:18:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804278</guid><dc:creator>Keith Adler</dc:creator><description>&lt;p&gt;While this seems like a good idea on the surface, I think leaving it to users to try to comprehend what these settings widens the vulnerability surface of the browser. &amp;nbsp;It's very likely this feature would be the next &amp;quot;Content Advisor&amp;quot; feature; something that exists and no one complies with or uses. &amp;nbsp;I would much rather see layer 7 proxies and appliances continue to worry about this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804278" width="1" height="1"&gt;</description></item></channel></rss>