Re: [websec] Coordinating Frame-Options and CSP UI Safety directives
David Ross <dross@microsoft.com> Thu, 19 July 2012 19:50 UTC
Return-Path: <dross@microsoft.com>
X-Original-To: websec@ietfa.amsl.com
Delivered-To: websec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C58A21F86EB for <websec@ietfa.amsl.com>; Thu, 19 Jul 2012 12:50:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.467
X-Spam-Level:
X-Spam-Status: No, score=-0.467 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, UNRESOLVED_TEMPLATE=3.132]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BpWVZYgU3P9Y for <websec@ietfa.amsl.com>; Thu, 19 Jul 2012 12:50:43 -0700 (PDT)
Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe004.messaging.microsoft.com [216.32.180.14]) by ietfa.amsl.com (Postfix) with ESMTP id C9F7911E8098 for <websec@ietf.org>; Thu, 19 Jul 2012 12:50:42 -0700 (PDT)
Received: from mail252-va3-R.bigfish.com (10.7.14.249) by VA3EHSOBE010.bigfish.com (10.7.40.12) with Microsoft SMTP Server id 14.1.225.23; Thu, 19 Jul 2012 19:51:36 +0000
Received: from mail252-va3 (localhost [127.0.0.1]) by mail252-va3-R.bigfish.com (Postfix) with ESMTP id 397924800FC for <websec@ietf.org>; Thu, 19 Jul 2012 19:51:36 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-SpamScore: -41
X-BigFish: VS-41(zz98dI9371Ic85fh542M1418I604T1447Izz1202hzz1033IL8275bh8275dhz2fh2a8h683h839hd25hf0ah107ah)
Received-SPF: pass (mail252-va3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=dross@microsoft.com; helo=TK5EX14MLTC102.redmond.corp.microsoft.com ; icrosoft.com ;
X-Forefront-Antispam-Report-Untrusted: CIP:157.56.234.5; KIP:(null); UIP:(null); (null); H:SN2PRD0310HT004.namprd03.prod.outlook.com; R:internal; EFV:INT
Received: from mail252-va3 (localhost.localdomain [127.0.0.1]) by mail252-va3 (MessageSwitch) id 1342727494723546_9654; Thu, 19 Jul 2012 19:51:34 +0000 (UTC)
Received: from VA3EHSMHS023.bigfish.com (unknown [10.7.14.243]) by mail252-va3.bigfish.com (Postfix) with ESMTP id AEDC31CC0045 for <websec@ietf.org>; Thu, 19 Jul 2012 19:51:34 +0000 (UTC)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS023.bigfish.com (10.7.99.33) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 19 Jul 2012 19:51:33 +0000
Received: from va3outboundpool.messaging.microsoft.com (157.54.51.80) by mail.microsoft.com (157.54.79.180) with Microsoft SMTP Server (TLS) id 14.2.298.5; Thu, 19 Jul 2012 19:51:29 +0000
Received: from mail66-va3-R.bigfish.com (10.7.14.238) by VA3EHSOBE010.bigfish.com (10.7.40.12) with Microsoft SMTP Server id 14.1.225.23; Thu, 19 Jul 2012 19:51:20 +0000
Received: from mail66-va3 (localhost [127.0.0.1]) by mail66-va3-R.bigfish.com (Postfix) with ESMTP id 878F8220365 for <websec@ietf.org.FOPE.CONNECTOR.OVERRIDE>; Thu, 19 Jul 2012 19:51:19 +0000 (UTC)
Received: from mail66-va3 (localhost.localdomain [127.0.0.1]) by mail66-va3 (MessageSwitch) id 1342727477491658_27105; Thu, 19 Jul 2012 19:51:17 +0000 (UTC)
Received: from VA3EHSMHS013.bigfish.com (unknown [10.7.14.247]) by mail66-va3.bigfish.com (Postfix) with ESMTP id 6725032004B; Thu, 19 Jul 2012 19:51:17 +0000 (UTC)
Received: from SN2PRD0310HT004.namprd03.prod.outlook.com (157.56.234.5) by VA3EHSMHS013.bigfish.com (10.7.99.23) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 19 Jul 2012 19:51:16 +0000
Received: from SN2PRD0310MB395.namprd03.prod.outlook.com ([169.254.3.25]) by SN2PRD0310HT004.namprd03.prod.outlook.com ([10.255.112.39]) with mapi id 14.16.0175.005; Thu, 19 Jul 2012 19:51:14 +0000
From: David Ross <dross@microsoft.com>
To: Adam Barth <ietf@adambarth.com>, Tobias Gondrom <tobias.gondrom@gondrom.org>
Thread-Topic: [websec] Coordinating Frame-Options and CSP UI Safety directives
Thread-Index: Ac1eARMykz8Gk35PQYOw0F4CVEc1fgAKMP0AAAFdb4AAZMpUwAFePnIAACpPKLA=
Date: Thu, 19 Jul 2012 19:51:14 +0000
Message-ID: <9B5348748B708948989B17CC0AEA3DD0027A848A@SN2PRD0310MB395.namprd03.prod.outlook.com>
References: <370C9BEB4DD6154FA963E2F79ADC6F2E1799AD@DEN-EXDDA-S12.corp.ebay.com> <4FFB67EE.406@gondrom.org> <370C9BEB4DD6154FA963E2F79ADC6F2E17AE18@DEN-EXDDA-S12.corp.ebay.com> <68291699F5EA8848B0EAC2E78480571F053A3186@TK5EX14MBXC216.redmond.corp.microsoft.com> <CAJE5ia90hJ7EQDgn7Y3u2m1Lxe=fwkG65YE7YtiBNJfDtaE0rA@mail.gmail.com>
In-Reply-To: <CAJE5ia90hJ7EQDgn7Y3u2m1Lxe=fwkG65YE7YtiBNJfDtaE0rA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [131.107.174.87]
Content-Type: multipart/alternative; boundary="_000_9B5348748B708948989B17CC0AEA3DD0027A848ASN2PRD0310MB395_"
MIME-Version: 1.0
X-OrganizationHeadersPreserved: SN2PRD0310HT004.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%ADAMBARTH.COM$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%GONDROM.ORG$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%PAYPAL-INC.COM$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%IETF.ORG$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14MLTC102.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14MLTC102.redmond.corp.microsoft.com
X-OriginatorOrg: microsoft.com
Cc: "websec@ietf.org" <websec@ietf.org>
Subject: Re: [websec] Coordinating Frame-Options and CSP UI Safety directives
X-BeenThere: websec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Web Application Security Minus Authentication and Transport <websec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/websec>, <mailto:websec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/websec>
List-Post: <mailto:websec@ietf.org>
List-Help: <mailto:websec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/websec>, <mailto:websec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 19:50:48 -0000
#1 - fair point #2 - I was worried that the current mechanism was multi-origin only, but it sounds like that's not the case. If so, this is good. NIH doesn't sound like a great reason at all. Question for Tobias -- with a move to push this from the IETF to the W3C/CSP, given your IETF affiliation would you still be able to contribute time to this project? (Sorry if that's an exceedingly blunt question, I'm not trying to step on toes here.) Your work here thus far has been absolutely invaluable and has allowed XFO/FO to make forward progress with very little overhead. I really don't want to lose the momentum. Dave From: Adam Barth [mailto:ietf@adambarth.com] Sent: Wednesday, July 18, 2012 4:17 PM To: David Ross Cc: Hill, Brad; Tobias Gondrom; websec@ietf.org Subject: Re: [websec] Coordinating Frame-Options and CSP UI Safety directives Here are two reasons we should make Frame-Options into a Content-Security-Policy directive rather than yet-another-one-off-HTTP-header: 1) By centralizing all the policy bits in one string, we gain network benefits. For example, in the Chrome extension system, we have a field in the manifest for specifying a Content Security Policy: http://code.google.com/chrome/extensions/contentSecurityPolicy.html While we could add a new attribute for every different bit of policy, it's better for developers if there's just one place that contains the security policy. 2) By moving Frame-Options into CSP, we can use the same origin-specifying machinery that already exists in CSP rather than inventing yet-another-way-of-specifying origins (e.g., in allow-from in the current Frame-Options draft). By doing that, we make all these things work the same way rather than siloing each off depending on which browser vendor first decided this bit of policy was interesting. As far as I can tell, the main reason for not making Frame-Options a CSP directive is that CSP was Not Invented Here. Adam On Wed, Jul 11, 2012 at 5:22 PM, David Ross <dross@microsoft.com<mailto:dross@microsoft.com>> wrote: Responding to a few of the points in Brad's original mail on this thread... My concern is mostly around the degree to which a move to CSP might complicate or stall the process. I'd also prefer not to see additional use cases pop up (eg: click fraud prevention) that just were never in scope before. I think that w.r.t. header bloat, the most sensible approach is to only allow one origin to be specified. CSP by-design facilitates the use of multiple origins. As we've discussed w/Frame-Options, there is a design pattern to make the more basic single-origin approach functional. I would hate to see hosts serving up source lists of hundreds of origins, just because they can. I think that is exactly what will happen if we support multiple origins. With regard to obsolescence of X-FRAME-OPTIONS, it's easy to specify exactly what happens in the FRAME-OPTIONS spec. I don't see that CSP inherently improves on that but I may be missing something there. The advantage I see of bringing FRAME-OPTIONS into CSP is that it makes CSP more comprehensive. But I suspect there are plenty of other header-related security features that aren't defined by CSP (eg: the origin header, cookie security). Finally, as Brad pointed out in the rosetta stone thread, Frame-Options provides the flexibility to perform only a top level origin check as opposed to a full ancestor check. (Specified via the "AllAncestors" flag.) David Ross dross@microsoft.com<mailto:dross@microsoft.com> -----Original Message----- From: websec-bounces@ietf.org<mailto:websec-bounces@ietf.org> [mailto:websec-bounces@ietf.org<mailto:websec-bounces@ietf.org>] On Behalf Of Hill, Brad Sent: Monday, July 09, 2012 5:03 PM To: Tobias Gondrom; websec@ietf.org<mailto:websec@ietf.org> Cc: public-webappsec@w3.org<mailto:public-webappsec@w3.org> Subject: Re: [websec] Coordinating Frame-Options and CSP UI Safety directives Tobias, I'm happy to move the discussion primarily to websec, and I'll drop the cc: to webappsec after this email. Thanks for the historical clarification, as well. I'm not terribly concerned about which group does the work, as much as arriving at the engineering solution that works best for user agent and resource authors, some of whom have expressed preference for moving this functionality into CSP. As both a chair and an individual, I don't have a strong preference, but I think there are reasons in favor of each option and it is worth re-opening the discussion now that the WebAppSec WG has a concrete deliverable under development to address the same general class of attacks. I'll send out a summary shortly of the similarities and differences between the various options currently proposed for some additional context. -Brad Hill _______________________________________________ websec mailing list websec@ietf.org<mailto:websec@ietf.org> https://www.ietf.org/mailman/listinfo/websec _______________________________________________ websec mailing list websec@ietf.org<mailto:websec@ietf.org> https://www.ietf.org/mailman/listinfo/websec
- [websec] Coordinating Frame-Options and CSP UI Sa… Hill, Brad
- Re: [websec] Coordinating Frame-Options and CSP U… Tobias Gondrom
- Re: [websec] Coordinating Frame-Options and CSP U… Tobias Gondrom
- Re: [websec] Coordinating Frame-Options and CSP U… Hill, Brad
- Re: [websec] Coordinating Frame-Options and CSP U… David Ross
- Re: [websec] Coordinating Frame-Options and CSP U… =JeffH
- Re: [websec] Coordinating Frame-Options and CSP U… David Ross
- Re: [websec] Coordinating Frame-Options and CSP U… Hill, Brad
- Re: [websec] Coordinating Frame-Options and CSP U… Adam Barth
- Re: [websec] Coordinating Frame-Options and CSP U… David Ross
- Re: [websec] Coordinating Frame-Options and CSP U… David Ross
- Re: [websec] Coordinating Frame-Options and CSP U… Thomas Roessler
- Re: [websec] Coordinating Frame-Options and CSP U… Tobias Gondrom
- Re: [websec] Coordinating Frame-Options and CSP U… Adam Barth
- Re: [websec] Coordinating Frame-Options and CSP U… Tobias Gondrom
- Re: [websec] Coordinating Frame-Options and CSP U… Adam Barth
- Re: [websec] Coordinating Frame-Options and CSP U… David Ross
- Re: [websec] Coordinating Frame-Options and CSP U… Adam Barth