Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07
John Bradley <ve7jtb@ve7jtb.com> Thu, 12 April 2018 21:07 UTC
Return-Path: <ve7jtb@ve7jtb.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 340C512DA11 for <oauth@ietfa.amsl.com>; Thu, 12 Apr 2018 14:07:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ve7jtb-com.20150623.gappssmtp.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 7KckTophQxiM for <oauth@ietfa.amsl.com>; Thu, 12 Apr 2018 14:07:25 -0700 (PDT)
Received: from mail-yb0-x230.google.com (mail-yb0-x230.google.com [IPv6:2607:f8b0:4002:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 858A812D779 for <oauth@ietf.org>; Thu, 12 Apr 2018 14:07:25 -0700 (PDT)
Received: by mail-yb0-x230.google.com with SMTP id k1-v6so2912544yba.5 for <oauth@ietf.org>; Thu, 12 Apr 2018 14:07:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ve7jtb-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Q3TPqOr9mclseXHF0L0KCP440MwQ4YSBU6PY3CxfaV8=; b=EbD4JSbynIDRtsLWeVfTwCzL/rSP7Jdpk9+t+ff3hu1VuS+FNBHe4J4a5cKgYErvET I5GGCIsPa4TJ31GhEZ1NfzPIuRDOAj9zb7aU2QQu5DgCTbypkprVC0R4AGiY3cTZuqWC rKoUi1+ivV/+nr/rbjmpkV4YXnVB4OMV+XwSfnupyPKYulSY/K627pVzFHW/re8UNlTn SRl8NVFqis8DBuQz5NGmXpWNqHGinny1spB7pK+k1gexULRB31xkogfnPxf+gybS5vkh m4SsR+8NN45V5/lVdMAvcFe5xOIyp8bN8LiqUEfLD877aVdCZTgARgrie1pstTFEh3tO 3DUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Q3TPqOr9mclseXHF0L0KCP440MwQ4YSBU6PY3CxfaV8=; b=lu6vcJ4bZ7qOEKGJZPT/KXdKP8NY3A7BoNJXNVoEXKvlNVB9baudt58rAAwbiijmfv q/Rnc+XSa0TdKoN4v7e5wec7KUA2Pw3RKUGZyNr5F4S6f6BVXY+r7eBzZLBiksLqnIc2 A04DzLAQH+loSEc/hEhWcDif/Hbprg/ecuveYo54lGp2CWKXQtk63Eff1o3HF8fj+UuT IQymWiYu53/wlLz+6Z5DfB8mrNkAqNke2kp0GEAersn9qemBx32P0qqRBt+RlY3zy2Qm hlG7hTO25sHOI6h6jXJGYHd18nMlGiGTDH9vbGm2U3u/vh67pBcPPWOX1HVmNbbA9eXX FUmg==
X-Gm-Message-State: ALQs6tDdMcUF95bSYsw9QdVMol3JhDHS/9G2BF/UDYfOm5GGQ3LmPapm RH8ykfhlTP1WGC0IXj3Z7HvVYQ==
X-Google-Smtp-Source: AIpwx4+1J7O1rNsVMiBzfaqR+2XcTjmMMRFbjTe9lzMZ7ObtiaxOSz5h2szSVk/y31+IhHP3mdp5KA==
X-Received: by 2002:a25:acc2:: with SMTP id x2-v6mr1957970ybd.179.1523567244126; Thu, 12 Apr 2018 14:07:24 -0700 (PDT)
Received: from [192.168.8.102] ([181.201.130.225]) by smtp.gmail.com with ESMTPSA id b25sm3831322qte.88.2018.04.12.14.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 14:07:22 -0700 (PDT)
From: John Bradley <ve7jtb@ve7jtb.com>
Message-Id: <29445085-003F-45D4-A9E2-E23EFEE5A885@ve7jtb.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_3160D64A-624C-42F7-B4EE-0780098777C2"
Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\))
Date: Thu, 12 Apr 2018 18:07:18 -0300
In-Reply-To: <CA+k3eCSTy7wqEOXxuoS4bCcQm=pfLTMMO+p4macVJ8p9wmfb7w@mail.gmail.com>
Cc: Neil Madden <neil.madden@forgerock.com>, oauth <oauth@ietf.org>
To: Brian Campbell <bcampbell@pingidentity.com>
References: <CAGL6epK7X-jbO0c8GTxm2cAesYwU19R5_GsFY4tpUYxjW-MF_w@mail.gmail.com> <4D385B9E-AA8F-45B3-8C1D-C7B346FFA649@forgerock.com> <CA+k3eCRRUN0_+dVrRabjCrseV0C15wvKmY3jJQ4-eQqhZ2NUQQ@mail.gmail.com> <5758ae34-1d2d-4946-9190-7a2e2bc184d2@Canary> <9A56706A-5369-4F79-A8BB-74B15C37DFB9@ve7jtb.com> <CA+k3eCSTy7wqEOXxuoS4bCcQm=pfLTMMO+p4macVJ8p9wmfb7w@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.6.18)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/DYyr9H4YMmwrQpoBEcxIRFgdVNU>
Subject: Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Apr 2018 21:07:28 -0000
The WG discusses RS meta-data as part of one of Dick’s proposals. I am unclear on who is going to work on it in what draft. If the client is doing mtls to both the Token endpoint and RS the information in the confirmation method is not relevant to the client as long as the AS and RS are in agreement like with most tokens. The hash on the certificate and length of the signing key are equally or more vulnerable to any sort of attack. At least with AT the tokens are not long lived. Doing anything better than SHA256 only makes sense if the cert is signed by something stronger like SHA512 with a 2048bit RSA key. That seems sort of unlikely in the near term. I prefer to wait to see what general fix is proposed before we jump the gun with a bandade for a small part of the overall problem. People are typically using SHA1 fingerprints. We added SHA256 for JWT and got push back on that as overkill. I don’t think this is the correct place to be deciding this. We could say that if new thumbprints are defined the AS and RS can decide to use them as necessary. That is sort of the situation we have now. The correct solution may be a thousand rounds of PBKDF2 or something like that to make finding collisions more difficult rather than longer hashes. John B. > On Apr 12, 2018, at 5:20 PM, Brian Campbell <bcampbell@pingidentity.com> wrote: > > That's true about it being opaque to the client. I was thinking of client metadata (config or registration) as a way for the AS to decide if to bind the AT to a cert. And moving from a boolean to a conf method as an extension of that. It would be more meaningful in RS discovery, if there was such a thing. > > I don’t know that SHA512 would be the best choice either but it is something that is stronger and could be included now. If there's consensus to do more than SHA256 in this doc. > > > > On Thu, Apr 12, 2018 at 1:52 PM, John Bradley <ve7jtb@ve7jtb.com <mailto:ve7jtb@ve7jtb.com>> wrote: > Inline > > Snip > >> >> >> 12. The use of only SHA-256 fingerprints means that the security strength of the sender-constrained access tokens is limited by the collision resistance of SHA-256 - roughly “128-bit security" - without a new specification for a new thumbprint algorithm. An implication of this is that is is fairly pointless for the protected resource TLS stack to ever negotiate cipher suites/keys with a higher level of security. In more crystal ball territory, if a practical quantum computer becomes a possibility within the lifetime of this spec, then the expected collision resistance of SHA-256 would drop quadratically, allowing an attacker to find a colliding certificate in ~2^64 effort. If we are going to pick just one thumbprint hash algorithm, I would prefer we pick SHA-512. >> >> The idea behind haveing just one thumbprint hash algorithm was to keep things simple. And SHA-256 seems good enough for the reasonably foreseeable future (and space aware). Also a new little spec to register a different hash algorithm, should the need arise, didn't seem particularity onerous. >> >> That was the thinking anyway. Maybe it is too short sighted though? >> >> I do think SHA-256 should stay regardless. >> >> But the draft could also define SHA-512 (and maybe others). What do you and WG folks think about that? >> >> *** Yes please. >> >> It would probably then be useful for the metadata in §3.3 and §3.4 to change from just boolean values to something to convey what hash alg/cnf method the client expects and the list of what the server supports. That's maybe something that should be done anyway. That'd be a breaking change to the metadata. But there's already another potential breaking change identified earlier in this message. So maybe it's worth doing... >> >> How do folks feel about making this kind of change? >> >> > The confirmation method is opaque to the client. I don’t think adding hash algs to discovery will really help. > The AS selection needs to be based on what the RS can support. > > If anyplace it should be in RS discovery. > > As a practical matter you art going to find a client certificate with more than a SHA256 hash anytime in the near future. > So for a short lived access token 128bits of collision resistance is quite good. We are going to have issues with certificates long before this becomes a problem. > > SHA256 is appropriate for AES128 256bit elliptic curves and 3072bit RSA keys, but again that is over the long term. > We are using short lived access tokens. People should rotate the certificate more often than once a year if this is a real issue. > > I am not against new hash for the fingerprint, but I also don’t know that SHA512 would be the best choice if we are concerned about quantum crypto resistance. That is a issue beyond mtls and should be addressed by CFRG etc. > > Regards > John B. > > > > > CONFIDENTIALITY NOTICE: This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the message and any file attachments from your computer. Thank you.
- [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Rifaat Shekh-Yusef
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Vivek Biswas
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Justin Richer
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Benjamin Kaduk
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Benjamin Kaduk
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Benjamin Kaduk
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Justin Richer
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Mike Jones
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 John Bradley
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Neil Madden
- Re: [OAUTH-WG] WGLC on draft-ietf-oauth-mtls-07 Brian Campbell