W3C home > Mailing lists > Public > public-web-security@w3.org > June 2011

Re: XSLT style sheets

From: Brandon Sterne <bsterne@mozilla.com>
Date: Fri, 10 Jun 2011 16:41:14 -0700
Message-ID: <4DF2AB9A.3010701@mozilla.com>
To: Adam Barth <w3c@adambarth.com>
CC: public-web-security@w3.org
On 4/6/11 11:42 PM, Adam Barth wrote:
> Which CSP directive should control XSLT style sheets?
> style-src says:
> [[
> The style-src directive defines the list of sources that are permitted
> to load <link rel="stylesheet"> elements, or external stylesheets.
> ]]
> Is an XSLT an external style sheet?
> On the other had, they can be used to inject markup into the document,
> so maybe controlling them with script-src is more appropriate?  On yet
> a third hand, maybe the markup isn't that dangerous given that it's
> subject to the CSP policy?
> Tentative recommendation: Control XSLT with style-src.  (Warning: I
> haven't though through this recommendation carefully.)

I just pushed a changeset that adds XSLT stylesheets to the style-src

I agree that this makes the most sense semantically, and adds no real
XSS attack surface since any script (or other resources) that the
stylesheet adds will be subject to the "original" document's CSP.  I
suppose this last point should be made explicit in the spec.  I'll add
that to my issue tracker.

Received on Friday, 10 June 2011 23:41:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:09:26 UTC