Re: [websec] Richard Barnes' Discuss on draft-ietf-websec-x-frame-options-09: (with DISCUSS and COMMENT)

"Hill, Brad" <bhill@paypal-inc.com> Fri, 16 August 2013 23:44 UTC

Return-Path: <bhill@paypal-inc.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 7A8E911E80E8; Fri, 16 Aug 2013 16:44:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 pJlloSAxXM0e; Fri, 16 Aug 2013 16:44:20 -0700 (PDT)
Received: from rhv-mipot-001.corp.ebay.com (rhv-mipot-001.corp.ebay.com [216.33.244.6]) by ietfa.amsl.com (Postfix) with ESMTP id 2EBDB21F9F8F; Fri, 16 Aug 2013 16:44:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paypal-inc.com; i=@paypal-inc.com; q=dns/txt; s=paypalcorp; t=1376696660; x=1408232660; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=rsR1GLqgluZU+KxbfWjt9XxXTYtiT0bPrmjAo5u2rHo=; b=cv30hVXrMWdAcaKXdIwJdeeO4d58TZ/d1rE9CSrOm062JeGClDDODbvm 1oCzYq/ghl6bj6XUErg+dRtNGI7KHMGe5iFRNPpf1dYj00SzCQHBTe8aX dt1pgkZhq0T3/jIunSobauRY1XU+Caf7bttg8HhuO3ePAQ2EHhihPqvwG w=;
X-EBay-Corp: Yes
X-IronPort-AV: E=Sophos;i="4.89,898,1367996400"; d="scan'208";a="139159913"
Received: from rhv-vtenf-001.corp.ebay.com (HELO DEN-EXMHT-005.corp.ebay.com) ([10.112.113.52]) by rhv-mipot-001.corp.ebay.com with ESMTP; 16 Aug 2013 16:44:18 -0700
Received: from DEN-EXDDA-S12.corp.ebay.com ([fe80::40c1:9cf7:d21e:46c]) by DEN-EXMHT-005.corp.ebay.com ([fe80::8109:2a37:17ad:e57e%18]) with mapi id 14.03.0123.003; Fri, 16 Aug 2013 17:44:17 -0600
From: "Hill, Brad" <bhill@paypal-inc.com>
To: Richard Barnes <rlb@ipv.sx>, The IESG <iesg@ietf.org>
Thread-Topic: [websec] Richard Barnes' Discuss on draft-ietf-websec-x-frame-options-09: (with DISCUSS and COMMENT)
Thread-Index: AQHOmVir9vsxQULiiEyJJmzuP9qAZ5mYgLPG
Date: Fri, 16 Aug 2013 23:44:16 +0000
Message-ID: <370C9BEB4DD6154FA963E2F79ADC6F2E27BAD2A7@DEN-EXDDA-S12.corp.ebay.com>
References: <20130815014121.17800.33179.idtracker@ietfa.amsl.com>
In-Reply-To: <20130815014121.17800.33179.idtracker@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.241.19.243]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Cc: "draft-ietf-websec-x-frame-options@tools.ietf.org" <draft-ietf-websec-x-frame-options@tools.ietf.org>, "websec@ietf.org" <websec@ietf.org>, "websec-chairs@tools.ietf.org" <websec-chairs@tools.ietf.org>
Subject: Re: [websec] Richard Barnes' Discuss on draft-ietf-websec-x-frame-options-09: (with DISCUSS and COMMENT)
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: Fri, 16 Aug 2013 23:44:24 -0000

Additional comments inline.
________________________________________


(D3) Shouldn't ALLOW-FROM be followed by an origin, not a URI?  In other
words, what does it mean to send "X-Frame-Options: ALLOW-FROM
https://example.com/this/is/a/path?query#fragment"?

[Hill, Brad] Agreed.


(D3) In the ALLOW-FROM: what does "top level context" mean?  Do you
really mean the top level here, as opposed to the next one up?  For
example, suppose A loads B in an iframe, and B loads C, and then C sends
an X-Frame-Options header with ALLOW-FROM.  Is the ALLOW-FROM origin
compared to B or A?  In either case, you should also note the attacks
that remain.  For example, if the answer is B, then B needs to use
X-Frame-Options as well, or else, A can maliciously frame A within B.  Or
if the answer is A, then C is trusting A not to load any malicious
intermediate frames B.

[Hill, Brad]  This really does mean the top/final origin value in a frame ancestor
chain walk.  Browsers have implemented X-Frame-Options to check the 
Origin context that is topmost in the window or tab.  (the _top target, 
representing the full, original browsing context, not just the immediate 
parent frame)  This could be clarified perhaps, but is not incorrect.