RE: Call for Adoption: Secondary Certificate Authentication in HTTP/2

Mike Bishop <Michael.Bishop@microsoft.com> Sat, 16 July 2016 19:35 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AFB3F12B018 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 16 Jul 2016 12:35:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.307
X-Spam-Level:
X-Spam-Status: No, score=-8.307 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com
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 Xg7itCvMUvuW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 16 Jul 2016 12:35:03 -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 CEE1F12B006 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 16 Jul 2016 12:35:02 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bOVIf-0006PQ-Qu for ietf-http-wg-dist@listhub.w3.org; Sat, 16 Jul 2016 19:30:57 +0000
Resent-Date: Sat, 16 Jul 2016 19:30:57 +0000
Resent-Message-Id: <E1bOVIf-0006PQ-Qu@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1bOVIW-0006OZ-Si for ietf-http-wg@listhub.w3.org; Sat, 16 Jul 2016 19:30:48 +0000
Received: from mail-sn1nam02on0121.outbound.protection.outlook.com ([104.47.36.121] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <Michael.Bishop@microsoft.com>) id 1bOVIT-0001l3-NJ for ietf-http-wg@w3.org; Sat, 16 Jul 2016 19:30:48 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=la1VJCc676GvGYiQjTzu17UTNJ69trx83vC9rfY6gtg=; b=SWAX5tuyzgskBwV2TZz8Gq3WNbAy3oUq8iMTKIusg9ZPi2eHxPmAsC4P38qNPBJD7zaJdsrIldtF2PwiRFPlqRXK0VjHZya7fleeTvRV4Md9Vb73ZDuaG/EfeaV7nk7IkagBdKSJQtj1alGwy2nRAsRYGdgQ0raJ/iw9vj/Q/Gs=
Received: from BLUPR03MB1330.namprd03.prod.outlook.com (10.163.80.20) by BLUPR03MB1332.namprd03.prod.outlook.com (10.163.80.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14; Sat, 16 Jul 2016 19:30:16 +0000
Received: from BLUPR03MB1330.namprd03.prod.outlook.com ([10.163.80.20]) by BLUPR03MB1330.namprd03.prod.outlook.com ([10.163.80.20]) with mapi id 15.01.0534.023; Sat, 16 Jul 2016 19:30:16 +0000
From: Mike Bishop <Michael.Bishop@microsoft.com>
To: Patrick McManus <mcmanus@ducksong.com>, Martin Thomson <martin.thomson@gmail.com>
CC: Eric Rescorla <ekr@rtfm.com>, Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Thread-Topic: Call for Adoption: Secondary Certificate Authentication in HTTP/2
Thread-Index: AQHRzbHZS0Qewu35L0GWZTKfqwxbr6AI8PMAgASpAUCABPBmgIAALCkAgAc2JACAAaRUIA==
Date: Sat, 16 Jul 2016 19:30:16 +0000
Message-ID: <BLUPR03MB1330DCF6DD19EF369A56949A87340@BLUPR03MB1330.namprd03.prod.outlook.com>
References: <F9D2CFF3-57C2-41BD-ACB1-FA6C991458D7@mnot.net> <CABcZeBPTYgcfecKErhacR=jfXkoRPESgUQ=1pzPEWg092fqZvw@mail.gmail.com> <BL2PR03MB1905D20659B406937EA7C021873B0@BL2PR03MB1905.namprd03.prod.outlook.com> <CABcZeBOuf0k5VwSO1nMp-P0YXF-j8pZ7ZVF1h-_pMU54LnwpJQ@mail.gmail.com> <CABkgnnXL-hS-raH5cC3c0nzpTHWP8speLbOhFNppv4p5LB5nQQ@mail.gmail.com> <CAOdDvNoVYPojUzqTgZBv=bqKFDPy8pg-w78s37Aa1WYQ0=g3GA@mail.gmail.com>
In-Reply-To: <CAOdDvNoVYPojUzqTgZBv=bqKFDPy8pg-w78s37Aa1WYQ0=g3GA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Bishop@microsoft.com;
x-originating-ip: [2001:67c:370:136:a870:910d:b66:6b4c]
x-ms-office365-filtering-correlation-id: 44b36298-813d-40cc-ceb9-08d3adaf9d87
x-microsoft-exchange-diagnostics: 1; BLUPR03MB1332; 6:QhyjLJdYWMS1Cvg5X5hNSHa3lN/4/j3OkASOmmGRQAYa02aMWOPJhEHItOwaAYvREYht9oTVqQpSnBsDqJXK5DQjZpgi3IoFjYnJDpsXA0MwUFwtZG7J1HivbfDGGmHN8iS6wetJI8z3GPSmWYzG2FBhqRVhoSN/D4it99TXiXe+ya2tc8e37vJGvUsMpl37hCUch+VHwpwl6ety2OXeOnfQNYiVU1xkw3d3mC1f8wjyDNCeZqrlliT+ITzwStPKtlhd3ohcLxu8mykyzKdpnzYV+f1JDB6Q/4TWNWWqf0aFngnEWB59aIO1XVQbhzNwroZDgNv1Cnn+gENeU6fFKw==; 5:XYJDnLE/n/7QshQFP7UnCvvBKyRoonfItg9HnwrsgHdd0rWSBQujSxYgMmO6MJsCO8IwQCAgbjdVlkHv+7/QxWGYLFwkousplJJgO/s0Wcyqzj8d6j4yvDSLT4UCh6PCzVM1rX0avETxddx+u9/OkQ==; 24:T58/t17Qg76HsBA+oiGO+lnthCmBBQ/JLdI0AKYKoaaClQeFEddFrCZB3fTWi9oWTxTSlQ2EqXWtGJuse6/nSNwvFjIHPHmoFRSmeShj+E0=; 7:POXUoZIJNr/euWPYD1JLXtiDItPbB2INY/x5YlJezTnAVzRDsP/JoOsjeuVWoEQWcUN+aalIIAMPS/a+NXR2Ds3+UHY0x/Eo1Com0BGFjwt0fCFsEFIYdJHQzfpnqvurqKQTjiQk8x43Op/FpbFEeuzZkFF9Wltct3ggINDatAZVAU8wppt90D+CS1IhBTlHZ/sIW2fMRpi+ZtsyqYIMkDxp8pDygx1atoDTgchG498mH211AA1xo+Bt3dUH7UX5
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1332;
x-microsoft-antispam-prvs: <BLUPR03MB1332F2BE2CB2D75E8E09304787340@BLUPR03MB1332.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(192374486261705)(150554046322364)(21748063052155)(21532816269658)(17755550239193);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038); SRVR:BLUPR03MB1332; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1332;
x-forefront-prvs: 0005B05917
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(189002)(51914003)(377454003)(199003)(43784003)(74316002)(87936001)(8676002)(102836003)(2950100001)(2900100001)(19300405004)(5002640100001)(790700001)(92566002)(19580395003)(16236675004)(9686002)(19580405001)(11100500001)(6116002)(5003600100003)(19625215002)(7736002)(7696003)(3280700002)(86612001)(19617315012)(33656002)(19609705001)(68736007)(106356001)(7846002)(106116001)(7906003)(86362001)(101416001)(93886004)(8990500004)(50986999)(3660700001)(586003)(10290500002)(81166006)(54356999)(81156014)(5001770100001)(77096005)(189998001)(76176999)(10400500002)(5005710100001)(10090500001)(8936002)(76576001)(122556002)(4326007)(99286002)(105586002)(97736004)(15975445007)(2906002)(3826002)(376185003); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1332; H:BLUPR03MB1330.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BLUPR03MB1330DCF6DD19EF369A56949A87340BLUPR03MB1330namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2016 19:30:16.2346 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1332
Received-SPF: pass client-ip=104.47.36.121; envelope-from=Michael.Bishop@microsoft.com; helo=NAM02-SN1-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-2.381, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: maggie.w3.org 1bOVIT-0001l3-NJ 3fa420e46ecde86ebe8dfca19a94deb6
X-Original-To: ietf-http-wg@w3.org
Subject: RE: Call for Adoption: Secondary Certificate Authentication in HTTP/2
Archived-At: <http://www.w3.org/mid/BLUPR03MB1330DCF6DD19EF369A56949A87340@BLUPR03MB1330.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31982
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>

Thanks for the editorial catches!

Server might also prefer encrypted SNI, but with this model it’s only the client that decides whether to conceal the identity it actually intends to make requests of.  We can tweak the wording.  Your point about not calling it the “”real” certificate” with quotes is another candidate for wordsmithing.  The certificate of the origin to which it actually intends to make requests?  I’m basically taking this off of EKR and DKG’s idea that you do an external TLS handshake with an innocuous hostname, then get the cert for the hostname you actually care about inside the encrypted context.  So “fake” in that it’s not actually the origin you care about, not “fake” in the not-valid sense.

Yeah, the stream states aren’t ideal.  I was trying to define invalid stream states, and basically came down to only one stream state where this exchange can’t be made.  And you’re correct – it will normally either be done on an idle stream (pre-HEADERS) or a closed stream (unauthenticated push).  We could simplify that if we just said that servers MUST provide the certificate prior to pushing, which is probably worthwhile.  If we’re not expecting/permitting clients to just remember which certificates were collocated, then the server always knows exactly what set of certificates the client has seen from it on the current connection.

We’ve gotten into the is-it/isn’t-it of IP routing, name resolution, and the PKI’s interrelationship in the security model a couple times now.  I think you’ve mostly convinced me that we’re effectively betting the farm on certs and routing is just our security blanket, but the reality is that this would still make the use of a cert compromise / spoof much nastier.  I don’t have to get you to connect to me with the origin I compromised, I just have to get you to connect to me with some origin.  And the restriction does exist in HTTP/2 already, so I’d like a little better motivation to change it than just having thought better of it.  If it’s actually wrong, should we be updating RFC 7540 independent of this work?  Do you ignore DNS for coalescing purposes if the presented cert is valid for the origin?  But yes, I’d like to see us clarify our security model and assumptions, and if this helps move us down that road, I’m happy.

From: Patrick McManus [mailto:mcmanus@ducksong.com]
Sent: Friday, July 15, 2016 8:09 PM
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Eric Rescorla <ekr@rtfm.com>; Mike Bishop <Michael.Bishop@microsoft.com>; Mark Nottingham <mnot@mnot.net>; HTTP Working Group <ietf-http-wg@w3.org>
Subject: Re: Call for Adoption: Secondary Certificate Authentication in HTTP/2

Mike - thanks for this draft. As I noted at the mic in BA I strongly support its adoption.
I have some feedback, some editorial some not.

HTTP clients need to know that the content they receive on a
connection comes from the origin that they intended to retrieve in
from.

Something went awry there.. maybe s/in/it ?

Because the TLS SNI extension is exchanged in the clear, clients

   might also prefer to retrieve certificates inside the encrypted

   context.
not just clients who might prefer that.. perhaps "implementations" or "peers"

ciphersuite at the TLS layer, while acquiring the "real" certificate
in HTTP after the connection is established.
I know what you're going for - but saying scare quotes real makes me wonder what the fake (i.e. not valid PKI) certificate is. Perhaps "final"?

1.2.1 and 1.2.2
Those sections about h1 are pretty long, detailed, and don't have a lot to do with the mechanism being defined here other than as motivation. I think they're targets for cutting and perhaps replacing with a short graf on the challenges of auth of a transport stream when it is muxed between multiple transactions. fwiw.

 defined in [RFC7540<https://tools.ietf.org/html/rfc7540>], when a client finds that a https:// origin

   (or Alternative Service [I-D.ietf-httpbis-alt-svc<https://tools.ietf.org/html/draft-bishop-httpbis-http2-additional-certs-01#ref-I-D.ietf-httpbis-alt-svc>]) to which it needs

   to make a request has the same IP address as a server to which it is

   already connected, it MAY check whether the TLS certificate provided

   contains the new origin as well, and if so, reuse the connection.
alt-svc never changes an origin so I don't think you need the parenthetical and by calling it out it kinda adds to that general confusion. You might just change all of

https:// origin

   (or Alternative Service [I-D.ietf-httpbis-alt-svc<https://tools.ietf.org/html/draft-bishop-httpbis-http2-additional-certs-01#ref-I-D.ietf-httpbis-alt-svc>])
to be "server".


   A server MAY push resources from an origin for which it is

   authoritative but for which the client has not yet received the

   certificate.  In this case, the client MUST verify the server's

   possession of an appropriate certificate by sending a

   "CERTIFICATE_REQUIRED" frame on the pushed stream to inform the

   server that progress is blocked until the request is satisfied.  The

   client MUST NOT use the pushed resource until an appropriate

   certificate has been received and validated.
I think this might worry me the most. in practicality that means certificate required is going to be sent on a closed stream a lot of the time. The extension probably needs to work harder to say this is OK, given that it is overriding 7540 - but in practice it seems like a hard requirement to make work. And worse, you're adding a 1 RTT delay into push when push is really only a 1 RTT mechanism anyhow. What if we could push the certificate_required bit on the non-zero stream as some kind of extension to push_promise?

   This could also increase the impact of a key compromise.  Rather than

   needing to subvert DNS or IP routing in order to use a compromised

   certificate, a malicious server now only needs a client to connect to

   _some_ HTTPS site under its control.  Clients SHOULD continue to

   validate that destination IP addresses are valid for the origin

   either by direct DNS resolution or resolution of a validated

   Alternative Service.  (Future work could include a mechanism for a

   server to offer proofs.)
I certainly think some text is needed here - but I have a fundamental objection. Routing - whether that be IP routing, DNS routing, Alt-Svc Routing, Proxy use or lookup, tcp hijack via inline proxy, or origin frames is simply not part of the security model of https. The model is all about the cert and the origin - not about how you got the bytes. The fact that many of these are (ab)used pervasively on the Internet and https is distinctly more secure in practice (not just theory) than http:// is basically because of that. IP addresses don't even play a role in some of those mechanisms (proxies?) and creating SHOULD language around validating them over constrains us for no real gain. I would suggest some non-normative text describing how certificates are the real security model here and as we scrape away the compromised detritus that surrounds them that becomes clearer.
Lastly, I liked how the general text called out the security benefit of being able to hide SNI especially from passive attacks. The security considerations mentions how this is still subject to active probing but it might be worth re-iterating the passive benefit explicitly in the security considerations.
Thanks again for this - this is an important draft with a lot of hard work in it.
-P