Re: HTTP Alternative Services: What about TLS client certificates?
"Roy T. Fielding" <fielding@gbiv.com> Mon, 30 March 2015 17:14 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85CD61A89F2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Mar 2015 10:14:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZTNF02T8vD3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 30 Mar 2015 10:14:52 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B6FF31A89ED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 30 Mar 2015 10:14:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1YcdCy-0003V0-16 for ietf-http-wg-dist@listhub.w3.org; Mon, 30 Mar 2015 17:10:40 +0000
Resent-Date: Mon, 30 Mar 2015 17:10:40 +0000
Resent-Message-Id: <E1YcdCy-0003V0-16@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <fielding@gbiv.com>) id 1YcdCn-0003TQ-FQ for ietf-http-wg@listhub.w3.org; Mon, 30 Mar 2015 17:10:29 +0000
Received: from sub4.mail.dreamhost.com ([69.163.253.135] helo=homiemail-a111.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1YcdCm-0001g5-HY for ietf-http-wg@w3.org; Mon, 30 Mar 2015 17:10:29 +0000
Received: from homiemail-a111.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a111.g.dreamhost.com (Postfix) with ESMTP id 8426A2005D82E; Mon, 30 Mar 2015 10:10:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=wGdzQzXhZaLxo0Ik0OyZssOOocc=; b=DVenWM7c2Ylak0drRaXX9AniENK6 nTHsSqaUPwQ0I6CdN90HMpyThu4G7fRvmbLbk8xuIMTl6VOB7taeFnM5o8q+GdIo opp2GTd2Yqf4T/RbmgHARuFXmkFpQbwQH1JrEO/Lp2j2dhnGu2EXROqyodOHdkRD 5VoA3Cgxi3WvKEA=
Received: from [192.168.1.12] (ip68-228-83-124.oc.oc.cox.net [68.228.83.124]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a111.g.dreamhost.com (Postfix) with ESMTPSA id AE9D32005E61A; Mon, 30 Mar 2015 10:10:05 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="us-ascii"
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <20150329211205.GA17881@pc.thejh.net>
Date: Mon, 30 Mar 2015 10:10:20 -0700
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <64B360B0-BE02-48FB-BBC5-6F4706433BD2@gbiv.com>
References: <20150329211205.GA17881@pc.thejh.net>
To: Jann Horn <jann@thejh.net>
X-Mailer: Apple Mail (2.1283)
Received-SPF: none client-ip=69.163.253.135; envelope-from=fielding@gbiv.com; helo=homiemail-a111.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-7.8
X-W3C-Hub-Spam-Report: AWL=1.194, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1YcdCm-0001g5-HY 835b706a50a396ab050f5da8b5246ef2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP Alternative Services: What about TLS client certificates?
Archived-At: <http://www.w3.org/mid/64B360B0-BE02-48FB-BBC5-6F4706433BD2@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29077
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
On Mar 29, 2015, at 2:12 PM, Jann Horn wrote: > Hello, > I've looked through draft-ietf-httpbis-alt-svc-04 and didn't see anything that > explicitly forbids the use of TLS client certificates. The threat scenario I > have in mind is this: > > Alice is connected to the internet through a connection on which Mallory > performs a MITM attack. Alice has a TLS client certificate that grants her > access to sensitive information at https://bank.com/. There are no HSTS rules > for bank.com. > > Alice browses to http://news.com, a website to which she does not need a TLS > connection. Mallory injects the following HTML snippet into the response: > > <iframe src="http://bank.com"></iframe> > > Alice's browser now requests http://bank.com. Mallory intercepts the request > and replies with a page containing malicious JavaScript code and the HTTP > header 'Alt-Svc: h2=":443"'. > The malicious JavaScript code now triggers further requests that the browser > performs to bank.com via TLS, authenticating Alice using the > non-origin-specific TLS client certificate. The server at https://bank.com > grants access to the client based on the TLS Client Certificate and > returns sensitive data, but the origin on the client is still http://bank.com, > effectively allowing the attacker to bypass the protocol part of SOP > restrictions on XHR. Why is the origin on the client still http://bank.com/ when it is deliberately making requests to https://bank.com:443/ ? The client isn't being fooled into making those requests -- it is choosing to make use of the Alt-Svc information to go to a different origin. In short, the JavaScript code should be prevented at that point because the browser needs to get new code from the same origin, just like a redirect. ....Roy
- HTTP Alternative Services: What about TLS client … Jann Horn
- Re: HTTP Alternative Services: What about TLS cli… Patrick McManus
- Re: HTTP Alternative Services: What about TLS cli… Roy T. Fielding
- Re: HTTP Alternative Services: What about TLS cli… Ilari Liusvaara
- Re: HTTP Alternative Services: What about TLS cli… Martin Thomson
- Re: HTTP Alternative Services: What about TLS cli… Roy T. Fielding
- Re: HTTP Alternative Services: What about TLS cli… Roberto Peon
- Re: HTTP Alternative Services: What about TLS cli… Roy T. Fielding
- Re: HTTP Alternative Services: What about TLS cli… Mark Nottingham