Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require PKCE?
Aaron Parecki <aaron@parecki.com> Wed, 06 May 2020 19:24 UTC
Return-Path: <aaron@parecki.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 E46353A0AAA
for <oauth@ietfa.amsl.com>; Wed, 6 May 2020 12:24:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=parecki-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 fLvHS5Kpfand for <oauth@ietfa.amsl.com>;
Wed, 6 May 2020 12:24:21 -0700 (PDT)
Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com
[IPv6:2607:f8b0:4864:20::d30])
(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 808223A0044
for <oauth@ietf.org>; Wed, 6 May 2020 12:24:21 -0700 (PDT)
Received: by mail-io1-xd30.google.com with SMTP id j8so3357709iog.13
for <oauth@ietf.org>; Wed, 06 May 2020 12:24:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=parecki-com.20150623.gappssmtp.com; s=20150623;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=qfmhVZa7fPXs7Pu5kb9vxQjN0wWUjyrIMqouKSsRiU0=;
b=o/42ERqPYsMIitIGTS8/wBhz4GkRCFGApDTbzlCy6xJnLHAgbkdWYWZMTQR7kOCVoN
jZh7kQn2V5gujbZCgJYZQ1Bv/GHx2Jw2KAI+vtAwgEkCGj+ThCvkja1Uz2aMFcISm1bc
CUvMs36NwRhstUH6ATw/gCheXtNpaHfjgnwjAl3HlGyuv/IE28to9Fy6yOHqdfZHXCfS
ukTl08HVFzMMSz0DZeYwhPMVB2DsyXm7m8OOytfGafnPdIWQZuE8e5ip22XGsmZliFyQ
T+5y2nhx66xsDePMsN51gg5Nsza+qsuMm54OxiRmENqoYjR+zvOHAB1t2b4Ijjmn/v9W
d/5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=qfmhVZa7fPXs7Pu5kb9vxQjN0wWUjyrIMqouKSsRiU0=;
b=OnW7nFIWboAEyFE5fHnMS2h/T2c1CMAGT9ZTdDkYpX/ZIvs3EdiIWbGemzMuxzga2g
AOObGnem0ZbPgWWbZ5BS1jS4UGeRerTPb2RnfA7ylPaMx0W96/WfY71Aw0XJPkqDzgVq
7YJkuE06kPjRVexLmhdJpz/n96lQ6/G7CYn7cRDrTenXNBGxiFRJcXK0155g8cBXH8es
ISdTRRjGIzPOqUEWXihL54paYPd2Hpc+iDfn9FkRiL7HjuM6g8bN52+N0y040z4t5Hjt
VFf4dsnWJ+2Z+q9eCeoiWIfu0VPeDjep3Be2lTDOG0rcRrrYLRxy1S0MZnHiuW9lI7TU
iNAA==
X-Gm-Message-State: AGi0PubkF29ZyljIEIHbPqJQnn3afvO5T1ojmcneMFyANJ8iIUkJQNp1
6GvYUrFQI4wQPgLY5x7yabS8IeL7Qv8=
X-Google-Smtp-Source: APiQypJdMZQQc5I8ZCVPPZHNsT17w49gVX1WUIDhP/CkuhetwAWpUNw7767e6F+8NyAV3aANlSzNaA==
X-Received: by 2002:a5e:8613:: with SMTP id z19mr9669908ioj.84.1588793059880;
Wed, 06 May 2020 12:24:19 -0700 (PDT)
Received: from mail-io1-f47.google.com (mail-io1-f47.google.com.
[209.85.166.47])
by smtp.gmail.com with ESMTPSA id t88sm1476332ild.30.2020.05.06.12.24.18
for <oauth@ietf.org>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Wed, 06 May 2020 12:24:19 -0700 (PDT)
Received: by mail-io1-f47.google.com with SMTP id c2so3393651iow.7
for <oauth@ietf.org>; Wed, 06 May 2020 12:24:18 -0700 (PDT)
X-Received: by 2002:a05:6602:1303:: with SMTP id
h3mr9908449iov.14.1588793058637;
Wed, 06 May 2020 12:24:18 -0700 (PDT)
MIME-Version: 1.0
References: <DM6PR00MB068479502D207D9F2C8F1031F5A40@DM6PR00MB0684.namprd00.prod.outlook.com>
<CAGBSGjrJRR-Anb4tcwGMELzV3d74pPP0WpBY8_Z00NYxfEp6gg@mail.gmail.com>
<DM6PR00MB0684C42A727B6D4E8FD2FB47F5A40@DM6PR00MB0684.namprd00.prod.outlook.com>
In-Reply-To: <DM6PR00MB0684C42A727B6D4E8FD2FB47F5A40@DM6PR00MB0684.namprd00.prod.outlook.com>
From: Aaron Parecki <aaron@parecki.com>
Date: Wed, 6 May 2020 12:24:07 -0700
X-Gmail-Original-Message-ID: <CAGBSGjqFVx8mCHYcOF-XG0xFLwC-am4Debbos5reTzTbHb72Eg@mail.gmail.com>
Message-ID: <CAGBSGjqFVx8mCHYcOF-XG0xFLwC-am4Debbos5reTzTbHb72Eg@mail.gmail.com>
To: Mike Jones <Michael.Jones@microsoft.com>
Cc: Dick Hardt <dick.hardt@gmail.com>, "oauth@ietf.org" <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e1bd3f05a4ffb516"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/ICFHXLxWArf6pyX7eyUtHqyIuzM>
Subject: Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require PKCE?
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 06 May 2020 19:24:24 -0000
Yes, the BCP says *clients* may use either PKCE or nonce to prevent authorization code injection. Shortly after that quoted segment is the below: > Authorization servers MUST support PKCE [RFC7636]. On Wed, May 6, 2020 at 12:22 PM Mike Jones <Michael.Jones@microsoft.com> wrote: > Aaron, the section you cited at > https://tools.ietf.org/html/draft-ietf-oauth-security-topics-15#section-2.1.1 > makes it clear that clients can support EITHER PKCE or the OpenID Connect > nonce. The text is: > > > > Clients MUST prevent injection (replay) of authorization codes into > > the authorization response by attackers. The use of PKCE [RFC7636 > <https://tools.ietf.org/html/rfc7636>] > > is RECOMMENDED to this end. The OpenID Connect "nonce" parameter and > > ID Token Claim [OpenID > <https://tools.ietf.org/html/draft-ietf-oauth-security-topics-15#ref-OpenID>] > MAY be used as well. The PKCE challenge or > > OpenID Connect "nonce" MUST be transaction-specific and securely > > bound to the client and the user agent in which the transaction was > > started. > > > > We should not attempt to change that in OAuth 2.1, as doing so would > needlessly break already working and secure clients. > > > > -- Mike > > > > *From:* Aaron Parecki <aaron@parecki.com> > *Sent:* Wednesday, May 6, 2020 11:56 AM > *To:* Mike Jones <Michael.Jones@microsoft.com> > *Cc:* Dick Hardt <dick.hardt@gmail.com>om>; oauth@ietf.org > *Subject:* [EXTERNAL] Re: [OAUTH-WG] OAuth 2.1 - require PKCE? > > > > > In particular, authorization servers shouldn’t be required to support > PKCE when they already support the OpenID Connect nonce. > > > > The Security BCP already requires that ASs support PKCE: > https://tools.ietf.org/html/draft-ietf-oauth-security-topics-15#section-2.1.1 Are > you suggesting that the Security BCP change that requirement as well? If > so, that's a discussion that needs to be had ASAP. If not, then that's an > implicit statement that it's okay for OpenID Connect implementations to not > be best-practice OAuth implementations. And if that's the case, then I also > think it's acceptable that they are not complete OAuth 2.1 implementations > either. > > > > > > > > > > > > > > On Wed, May 6, 2020 at 11:21 AM Mike Jones <Michael.Jones= > 40microsoft.com@dmarc.ietf.org> wrote: > > The disadvantage of requiring PKCE for OpenID Connect implementations is > that you’re trying to add a normative requirement that’s not required of > OpenID Connect deployments today, which would bifurcate the ecosystem. > There are hundreds of implementations (including the 141 certified ones at > https://openid.net/certification/), none of which have ever been required > to support PKCE. Therefore, most don’t. > > > > Per feedback already provided, I believe that OAuth 2.1 should align with > the guidance already in the draft Security BCP, requiring EITHER the use of > PKCE or the OpenID Connect nonce. Trying to retroactively impose > unnecessary requirements on existing deployments is unlikely to succeed and > will significantly reduce the relevance of the OAuth 2.1 effort. > > > > In particular, authorization servers shouldn’t be required to support PKCE > when they already support the OpenID Connect nonce. And clients shouldn’t > reject responses from servers that don’t support PKCE when they do contain > the OpenID Connect nonce. Doing so would unnecessarily break things and > create confusion in the marketplace. > > > > -- Mike > > > > *From:* OAuth <oauth-bounces@ietf.org> *On Behalf Of *Dick Hardt > *Sent:* Wednesday, May 6, 2020 10:48 AM > *To:* oauth@ietf.org > *Subject:* [OAUTH-WG] OAuth 2.1 - require PKCE? > > > > Hello! > > > > We would like to have PKCE be a MUST in OAuth 2.1 code flows. This is best > practice for OAuth 2.0. It is not common in OpenID Connect servers as the > nonce solves some of the issues that PKCE protects against. We think that > most OpenID Connect implementations also support OAuth 2.0, and hence have > support for PKCE if following best practices. > > > > The advantages or requiring PKCE are: > > > > - a simpler programming model across all OAuth applications and profiles > as they all use PKCE > > > > - reduced attack surface when using S256 as a fingerprint of the verifier > is sent through the browser instead of the clear text value > > > > - enforcement by AS not client - makes it easier to handle for client > developers and AS can ensure the check is conducted > > > > What are disadvantages besides the potential impact to OpenID Connect > deployments? How significant is that impact? > > > > Dick, Aaron, and Torsten > > > > ᐧ > > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth > >
- [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Phillip Hunt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Steinar Noem
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Phillip Hunt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Phillip Hunt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Brian Campbell
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Philippe De Ryck
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Daniel Fett
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Phillip Hunt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Phillip Hunt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Aaron Parecki
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Torsten Lodderstedt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Torsten Lodderstedt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Mike Jones
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dick Hardt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Dick Hardt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Dick Hardt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Benjamin Kaduk
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Torsten Lodderstedt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Torsten Lodderstedt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Torsten Lodderstedt
- Re: [OAUTH-WG] OAuth 2.1 - require PKCE? Dominick Baier
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Torsten Lodderstedt
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Neil Madden
- Re: [OAUTH-WG] [EXTERNAL] Re: OAuth 2.1 - require… Torsten Lodderstedt