[OAUTH-WG] Re: FW: New Version Notification for draft-sheffer-oauth-rfc8725bis-01.txt

Aaron Parecki <aaron@parecki.com> Thu, 24 July 2025 04:56 UTC

Return-Path: <aaron@parecki.com>
X-Original-To: oauth@mail2.ietf.org
Delivered-To: oauth@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id C36B049D4D6B for <oauth@mail2.ietf.org>; Wed, 23 Jul 2025 21:56:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=parecki.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WcPx8d7K4xdI for <oauth@mail2.ietf.org>; Wed, 23 Jul 2025 21:56:46 -0700 (PDT)
Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 1F92D49D4D5F for <oauth@ietf.org>; Wed, 23 Jul 2025 21:56:45 -0700 (PDT)
Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-32b5226e6beso4800431fa.2 for <oauth@ietf.org>; Wed, 23 Jul 2025 21:56:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parecki.com; s=google; t=1753333004; x=1753937804; darn=ietf.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Yt/zQKTZivfqCct66zHSaADomxa8OpN1lBHOkjUaN1w=; b=p9tqweHwXUkhZQj3lRbcfn2KoIamPuIxjnmQS2SCZeABQK3snpgQm2K70pNg9koUqX dPFpDmXm1x8dRK+t8fZZO0JnS+dYyMrAqi0Ny0ajzKECCinSsjDFy63ETHk092zDrBm+ i+oh6/t/TGlD+asle0rwjizqywfveGI4kfkPPJ7+mSp7inyHliaueuJE+GbJeVvHU/fb z88mmYAwmTRznvqErci1J2lqlv7zwfuwhuw8diY1TX6b1DkZLOgGJbAsorW0s8HBmwOR HR50MsBFzbUfLYSJ7UfNBEtCCG6cCKXOLQuOFN0LrzBOCWjR2a7R92CXoUvLx+t+COem nEww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753333004; x=1753937804; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yt/zQKTZivfqCct66zHSaADomxa8OpN1lBHOkjUaN1w=; b=EMsmNvVsxWvMZSdW/ajIjQNxUr4ncoPFF5+FDYlDuGBSiQF+b2DtQx17ec4y4KJFZf pPJyRCjqsleYnN/YhBJser2JatEEikwlLNyE9DoP8qZjjlp25WUPDOetH9PTBsArWHvG PwVN4N1b8LKNmQklDnHMYoB0Q96/9c4sCz1KLiwrOvweGnGsX4wkQE0R77OIEU7JjU1C GDXDAUzWs2mcJqa12JcYAlZEYPvrwO2dQ0ohH32Upm1HhzMz/toPwFwGM4EnJhcZUpdJ VLyh7cdJYjL4WNQhd62TLdZNRYGFUBYdKpCoubUAUgXCpBbx6dGKBhYm6GZMbtMJ5/LU Zlrg==
X-Gm-Message-State: AOJu0YxdZwLX4wYeHpoVYjhJHc5P7U6Y0fUVauwJIdx/VM7Vaf3mFbhe 9csQL4kEBkZuV7uhpRAfMe2CnGarVS7pWvCkG6mZ5DrE5OlQix7V03zwoFnvBif3wtoQh2AR0QY Fxb6V+A==
X-Gm-Gg: ASbGncu3FLEwTYBUzRyfBWpFDg8Z0vNh1e8JMAU7QduCIeOoUJQjeZlQbwvyQ6qQfBD am9DY2G+mlR4eCO954+lqRmWgPUYL/jZg0zaTHcG8cujvc8x6bj/FmGKYv7y4eUn4RbAbWyoepW 6a5JtLvTCC4l7CB88BqB1owL4E8bsQL87I59wPYSeqHPRDl5dvUf/zJSQ1IGDjnM0plVBJyMw38 H7kSrhqGPSG7KzFMjryYPdPpGi7obAq2+FaSDLBu9H8M2Va+ZyrUIH0HRjJ+eHEuxEGJGxOzo5a 5HfdD2FGSWda0dYo/3guGHf5GELNjPz1IUIDzYNp8Hdfvw4fQoh+z0aFMk5nBdKDGOnqtFWNF87 r3Rg5YEsd/uwpYZ+KgAlhAvyxwdoh2Xps+PY2wtyP0Sd5tL06fXhes5KxpO5xklG6jwCHG9I=
X-Google-Smtp-Source: AGHT+IEY9Q1dW1gBfG/s2JOHEk9bkBA5k0ycugn1zIF6+c2eRVqlVUFcVD6y1VP7sQgUKuTirgRhgA==
X-Received: by 2002:a05:6512:24c2:10b0:553:3892:5ecc with SMTP id 2adb3069b0e04-55a513de6d9mr1275593e87.36.1753333004114; Wed, 23 Jul 2025 21:56:44 -0700 (PDT)
Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-55b53c9e1b3sm169389e87.187.2025.07.23.21.56.41 for <oauth@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jul 2025 21:56:43 -0700 (PDT)
Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-32b7113ed6bso6218251fa.1 for <oauth@ietf.org>; Wed, 23 Jul 2025 21:56:41 -0700 (PDT)
X-Received: by 2002:a2e:b88f:0:b0:32b:a7d2:a8b1 with SMTP id 38308e7fff4ca-330dfcf9563mr17355491fa.12.1753333001568; Wed, 23 Jul 2025 21:56:41 -0700 (PDT)
MIME-Version: 1.0
References: <174799506590.976551.816596525757373981@dt-datatracker-59b84fc74f-84jsl> <816F6B4A-545F-324D-B986-DF2A292474F6@hxcore.ol>
In-Reply-To: <816F6B4A-545F-324D-B986-DF2A292474F6@hxcore.ol>
From: Aaron Parecki <aaron@parecki.com>
Date: Wed, 23 Jul 2025 21:56:30 -0700
X-Gmail-Original-Message-ID: <CAGBSGjog9sAc+3=+WQEjphYvEzP43tAXCzw2Ar6y8LaJG12dBA@mail.gmail.com>
X-Gm-Features: Ac12FXyPa5DI06BEYK4Z153szEMAtRD63J-ykCM_D0JdVA0J0qv73TbRSSkYQ9I
Message-ID: <CAGBSGjog9sAc+3=+WQEjphYvEzP43tAXCzw2Ar6y8LaJG12dBA@mail.gmail.com>
To: Yaron Sheffer <yaronf.ietf@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: DUMIPICGE3YGMJ5UTP35CAKFLYDJLLRB
X-Message-ID-Hash: DUMIPICGE3YGMJ5UTP35CAKFLYDJLLRB
X-MailFrom: aaron@parecki.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "oauth@ietf.org" <oauth@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [OAUTH-WG] Re: FW: New Version Notification for draft-sheffer-oauth-rfc8725bis-01.txt
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/7UFqRTf4pV5vLhzyI9A36urhoSM>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>

I support the idea of this document overall. Here are some notes from my review:

> One application area in which JWTs are commonly used is representing digital identity information, such as OpenID Connect ID Tokens  [OpenID.Core] and OAuth 2.0  [RFC6749] access tokens and refresh tokens

Change to "representing authorization or identity information, such as
OAuth 2.0 access tokens [RFC9068] and OpenID Connect ID Tokens
[OpenID.Core]"

It is not common practice to use JWTs for refresh tokens, since
refresh tokens are only consumed by the issuer, whereas access tokens
are consumed by the resource server which is a separate role from the
authorization server that issues them. Also updated the reference to
the JWT access token spec.

> if a JWT is cryptographically protected end-to-end by a transport layer, such as TLS using cryptographically current algorithms, there may be no need to apply another layer of cryptographic protections to the JWT. In such cases, the use of the "none" algorithm can be perfectly acceptable.

This makes it sound like it's acceptable to send alg none JWTs as
access tokens over TLS, which is obviously not true. I would suggest
removing all references to alg none being acceptable. If there is an
actual concrete use case for alg none JWTs, list it out explicitly,
preferably to a reference of a spec/profile that uses it.

Section 3.3 mentions the term "Nested JWT" capitalized, but this is
the first occurrence of the term in the document. Add a reference to
where Nested JWT is defined, or change to lowercase if the intent is
to mention the general concept of nested JWTs.

> The means of determining the keys owned by an issuer is application-specific. As one example, OpenID Connect  [OpenID.Core] issuer values are "https" URLs that reference a JSON metadata document that contains a "jwks_uri" value that is an "https" URL from which the issuer's keys are retrieved as a JWK Set [RFC7517]. This same mechanism is used by  [RFC8414].

Swap the mentions of RFC8414 and OpenID Connect: "As one example,
Authorization Server Metadata [RFC8414] issuer values are .... The
same mechanism is used by OpenID Connect [OpenID.Core]."

> Similarly, when the JWT contains a "sub" (subject) claim, the application MUST validate that the subject value corresponds to a valid subject and/or issuer-subject pair at the application

This would benefit from an explicit reference to Section 4.15 of
RFC9700 https://datatracker.ietf.org/doc/html/rfc9700#section-4.15
which talks about the possibility of client_id vs user identifier
confusion.

Section 3.10: change "whitelist" to "allowlist". There is already a
prior use of "allowlist" in the doc, so I assume this was
unintentional.

Also in section 3.10, mention that the AS should check what the
hostname resolves to and avoid making a request if it resolves to a
loopback or internal IP address. (e.g. someone uses the value
"attacker.example.com/etc/passwd" as the jwks_uri, but adds a DNS
entry for "attacker.example.com" to resolve to "127.0.0.1" or other
internal IP address ranges.

Section 3.11: "Sometimes, one kind of JWT can be confused for another."

This is kind of vague and would benefit from more explicit examples.

Thanks,

Aaron

On Fri, May 23, 2025 at 3:19 AM Yaron Sheffer <yaronf.ietf@gmail.com> wrote:
>
> Hi everyone,
>
>
>
> RFC 8725 is the JWT Best Practices document that was published 5 years ago. Since then, several new vulnerabilities and implementation issues were found, and this is a “bis” document to inform the community of these issues and recommend mitigations.
>
>
>
> This is a relatively small change to the existing BCP. We have (almost) exhausted the issues we are aware of and we’re requesting adoption by the working group. Once adopted, we believe we can quickly move to WGLC.
>
>
>
> Thanks,
>
>
>
>                 Yaron, Mike and Dick
>
>
>
> On 23/05/2025, 13:11, "internet-drafts@ietf.org" <internet-drafts@ietf.org> wrote:
>
> A new version of Internet-Draft draft-sheffer-oauth-rfc8725bis-01.txt has been
>
> successfully submitted by Yaron Sheffer and posted to the
>
> IETF repository.
>
>
>
> Name:     draft-sheffer-oauth-rfc8725bis
>
> Revision: 01
>
> Title:    JSON Web Token Best Current Practices
>
> Date:     2025-05-23
>
> Group:    Individual Submission
>
> Pages:    18
>
> URL:      https://www.ietf.org/archive/id/draft-sheffer-oauth-rfc8725bis-01.txt
>
> Status:   https://datatracker.ietf.org/doc/draft-sheffer-oauth-rfc8725bis/
>
> HTML:     https://www.ietf.org/archive/id/draft-sheffer-oauth-rfc8725bis-01.html
>
> HTMLized: https://datatracker.ietf.org/doc/html/draft-sheffer-oauth-rfc8725bis
>
> Diff:     https://author-tools.ietf.org/iddiff?url2=draft-sheffer-oauth-rfc8725bis-01
>
>
>
> Abstract:
>
>
>
>    JSON Web Tokens, also known as JWTs, are URL-safe JSON-based security
>
>    tokens that contain a set of claims that can be signed and/or
>
>    encrypted.  JWTs are being widely used and deployed as a simple
>
>    security token format in numerous protocols and applications, both in
>
>    the area of digital identity and in other application areas.  This
>
>    Best Current Practices document updates RFC 7519 to provide
>
>    actionable guidance leading to secure implementation and deployment
>
>    of JWTs.
>
>
>
>
>
>
>
> The IETF Secretariat
>
>
>
>
>
>
>
> _______________________________________________
> OAuth mailing list -- oauth@ietf.org
> To unsubscribe send an email to oauth-leave@ietf.org