[OAUTH-WG] Re: FW: New Version Notification for draft-sheffer-oauth-rfc8725bis-01.txt
"yaronf.ietf@gmail.com" <yaronf.ietf@gmail.com> Fri, 01 August 2025 14:22 UTC
Return-Path: <yaronf.ietf@gmail.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 3B7AD4E5BA4F for <oauth@mail2.ietf.org>; Fri, 1 Aug 2025 07:22:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=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=gmail.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 GyL1jCyg36Zp for <oauth@mail2.ietf.org>; Fri, 1 Aug 2025 07:22:14 -0700 (PDT)
Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 907F24E5BA4A for <oauth@ietf.org>; Fri, 1 Aug 2025 07:22:14 -0700 (PDT)
Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-45617887276so6005545e9.2 for <oauth@ietf.org>; Fri, 01 Aug 2025 07:22:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754058133; x=1754662933; darn=ietf.org; h=content-transfer-encoding:cc:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DVsKtozKfcjKIDnj3GjrVH8VJ3aWUUDLoYeWbKzTbZI=; b=kqJyBf35MaFzXkMm47UldPnsPi0ypSwAOYFJ7aV1h3qZMEOJXq4AXFzINQW0D80Acj 5Uq2+ok/IC5nMwnTHItymiHVzeUbNlHqi7O/S5WmN29T6Y8dG1fVkFs5Lb9CaZeXlBWU gkJkhTLfT1yQTX6D2Q8nNya7KEWBuEmcw7F+5x2MG+WOC0IxIqbKZ1Z8rX5n2yL95PV2 zhT7JSDQy58Yz2x3n/cx/8ClihRdREyAjGbd5rPzFl8FW6n3Zag3PQ1dX7JENonRtROv SKTiGabxR3NONz/9g+fIWrLFWSf3RKEd5tLYjda4Od4C7yaMMAYOnCBo5e9Cyr3UwY6G APoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754058133; x=1754662933; h=content-transfer-encoding:cc:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DVsKtozKfcjKIDnj3GjrVH8VJ3aWUUDLoYeWbKzTbZI=; b=oZcrUI0b/Uq8dlE++/V0rsC02Adv8gGB8sAsNy2bU0rbjesZO6X6nWkDfyhorSymeI wSTSNq0iP5UjvIrVaNepRBbNWCndfk7x+5i8gERP8B5urA4/dRHWNdzvvOfAhiZiLqoV qhU7xwU5kaJzyy2lhnpBp1jxM0H6FRZ2ubESzYfTAOgZ4fdrFKd1Qqiwt+MxpOJ8KU2q dpe4PaPLeij5MJCMzub0PEhDF1Wa/3NO+G2F9xo1srDAmJRxyM1BTU29+65nYh6RHl6l xdCIkuQEGydrU6rxQiqNdWioJ7aY0Z0RNBPrMyEKbdTY4+f50jhraPzMx9jYWZOqf0vL mmZQ==
X-Gm-Message-State: AOJu0YwhrnnoGgEb9wvd67K4xjTcCytvQkLRLMRSoeCfatUCCzsQ5eMj I1xQ0O/hHhriIqFzxljXvaTAwSDbb94P+gesB7JRZtNbssxNTVs+xhbkZFuEmyfHoFU=
X-Gm-Gg: ASbGncslMBFgN1l/lOY9Ng6rsnHYoJH6F/ntcEM0GD5couW8RaFl8vJhBHFhcI1fjGn nAup9nuANMHmpFuyCrMcWnbeJJIiVB5Xkx5Shu1hiOkwTYehvOtNCWQrIRpL6GedKdGB4Ut7n0k 9GyeFzWVpaKxLdMF1NKj+b46QzGQFx5wyjP0zLwJTOdVMRFLDEu5HgT5QY5y2BaFocbd/3SKatC 0aPrpHPWzAO2/dDPyjHRBRjAq25xpbQNKcbRRQgRtKK5jp2Ddfknq6ygC8VbxmF7uClqeeRHHvT wD+FIED6dUBDFw8A+1rJU8P86igk63e1w8eubtIMfhmAYB8S3c3mkJQzEX5phLaeso9Ly2nhRWC i5dMMNIXRPiu84FFjCsisDox9of/wfZEZnyoLgCDtQozmuvURJfea+lrHzu7KNFThUzZFry4jOR dFOh56Sg==
X-Google-Smtp-Source: AGHT+IE+oPffPj+D0xuJyGVe9OSH2FScsJ2SuT6C+W2m+841KAimcuz9mTpnwHzuhYPwGeuLbLlVdA==
X-Received: by 2002:a05:600c:528a:b0:458:7005:2ac3 with SMTP id 5b1f17b1804b1-458a5858a2emr57792565e9.21.1754058132982; Fri, 01 Aug 2025 07:22:12 -0700 (PDT)
Received: from macos-F7LQR2FV6V (IGLD-84-229-146-144.inter.net.il. [84.229.146.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4589ee5790dsm65435195e9.27.2025.08.01.07.22.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Aug 2025 07:22:12 -0700 (PDT)
MIME-Version: 1.0
Date: Fri, 01 Aug 2025 17:22:09 +0300
From: "yaronf.ietf@gmail.com" <yaronf.ietf@gmail.com>
Thread-Topic: Re: [OAUTH-WG] FW: New Version Notification for draft-sheffer-oauth-rfc8725bis-01.txt
In-Reply-To: <CAGBSGjog9sAc+3=+WQEjphYvEzP43tAXCzw2Ar6y8LaJG12dBA@mail.gmail.com>
Message-ID: <DC53C66D-D885-4F4B-B30E-84BCBB94AC9A@hxcore.ol>
References: <174799506590.976551.816596525757373981@dt-datatracker-59b84fc74f-84jsl> <816F6B4A-545F-324D-B986-DF2A292474F6@hxcore.ol>,<CAGBSGjog9sAc+3=+WQEjphYvEzP43tAXCzw2Ar6y8LaJG12dBA@mail.gmail.com>
To: Aaron Parecki <aaron@parecki.com>
Content-Transfer-Encoding: base64
Content-Type: text/html; charset="utf-8"
Message-ID-Hash: GARVFC7LQFCLKSDVUPYWHVKYRIYEUIF7
X-Message-ID-Hash: GARVFC7LQFCLKSDVUPYWHVKYRIYEUIF7
X-MailFrom: yaronf.ietf@gmail.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/eVN8xNWEqMU4CQXd9RsgHbh0RSc>
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>
Hi Aaron,
Thanks for your review and sorry for initially missing it in the IETF barrage of emails. We have opened an issue [0] for it.
Best,
Yaron
[0] https://github.com/yaronf/draft-sheffer-oauth-rfc8725bis/issues/17" rel="nofollow">https://github.com/yaronf/draft-sheffer-oauth-rfc8725bis/issues/17
On 24/07/2025, 7:56, "Aaron Parecki" <aaron@parecki.com> wrote:
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" rel="nofollow">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" rel="nofollow">https://www.ietf.org/archive/id/draft-sheffer-oauth-rfc8725bis-01.txt
>
> Status: https://datatracker.ietf.org/doc/draft-sheffer-oauth-rfc8725bis/" rel="nofollow">https://datatracker.ietf.org/doc/draft-sheffer-oauth-rfc8725bis/
>
> HTML: https://www.ietf.org/archive/id/draft-sheffer-oauth-rfc8725bis-01.html" rel="nofollow">https://www.ietf.org/archive/id/draft-sheffer-oauth-rfc8725bis-01.html
>
> HTMLized: https://datatracker.ietf.org/doc/html/draft-sheffer-oauth-rfc8725bis" rel="nofollow">https://datatracker.ietf.org/doc/html/draft-sheffer-oauth-rfc8725bis
>
> Diff: https://author-tools.ietf.org/iddiff?url2=draft-sheffer-oauth-rfc8725bis-01" rel="nofollow">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
- [OAUTH-WG] FW: New Version Notification for draft… Yaron Sheffer
- [OAUTH-WG] Re: FW: New Version Notification for d… Dan Moore
- [OAUTH-WG] Re: FW: New Version Notification for d… yaronf.ietf@gmail.com
- [OAUTH-WG] Re: FW: New Version Notification for d… Denis
- [OAUTH-WG] Re: FW: New Version Notification for d… yaronf.ietf@gmail.com
- [OAUTH-WG] Re: FW: New Version Notification for d… Aaron Parecki
- [OAUTH-WG] Re: FW: New Version Notification for d… yaronf.ietf@gmail.com