[OAUTH-WG] Small bug in DPoP 12

Dominick Baier <dbaier@leastprivilege.com> Sun, 08 January 2023 15:01 UTC

Return-Path: <dbaier@leastprivilege.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 A6B7EC14CEE3 for <oauth@ietfa.amsl.com>; Sun, 8 Jan 2023 07:01:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.898
X-Spam-Level:
X-Spam-Status: No, score=-6.898 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_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=leastprivilege-com.20210112.gappssmtp.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H_PEqETv6rGd for <oauth@ietfa.amsl.com>; Sun, 8 Jan 2023 07:01:21 -0800 (PST)
Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2DD0DC14F74F for <oauth@ietf.org>; Sun, 8 Jan 2023 07:01:21 -0800 (PST)
Received: by mail-ej1-x62e.google.com with SMTP id tz12so14240542ejc.9 for <oauth@ietf.org>; Sun, 08 Jan 2023 07:01:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leastprivilege-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=hXt+Ns/BGd0iQCUfcrl+PdXLqRJAcC2W5lVnovVWL6I=; b=lYlVkBn9J/p6STGyJzOa7tBF3JLjFbWnWeshMz9C3qqC7YzFH/PnXmLxrxSfubND2P e83mcvH/jKTl8Q8BiFJl2qRXzIZOjaPqyJbtCLI+6g/KjSD/w/TJL4sU+Hmzv3L5RBka 6gRRybO+iHMIDRitoOpe8VrjHIuE3vssiaQvwxzPhTTeZNqN9DfimT/TRDP7oT3oLvXe RYluuy7llzYxACQnIN/zJZMmqjEMzGAWjjm5hUp8JdYBC1m6t2w6kfUh5OLJOvj8Q6OQ bWtph+xV48cdNQkP5EVoF7365uocTGDb21KjLZaClV7CRLpNxz3vT5uSX/8+cipci7Cx xa1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hXt+Ns/BGd0iQCUfcrl+PdXLqRJAcC2W5lVnovVWL6I=; b=RGKDNbYHCJQ1djUUNb3s1f3+4gEK1dQReWk7QiPR6biy98oj7/ArrKwP6vfMb/JaZ2 U5dRMS2ob2v+Sn0FtYjgeBFBIILoi0/tbjd67afxCrrfx4qrL57IfnDrhDaF96rb5aD4 5S6vtIkyI4AVPX8A5UF9h4PPSYp9JPFD+7sb6rDtLR6liuB2Nf6EAlMik7d0lzq6TcBI kNVgyB3rXDYyDgPzhI65VYLctaCkAULrPIioDxJi8WM3doIA8sQgeIJSLy81e8PfKt9q 6xdGAd68FdTVgHZ/PVlxLmikHKLs6FkEHHRAstIzxQ8aUhiTBrQ1VevkDcyZfUHujlrO tO4g==
X-Gm-Message-State: AFqh2kqUf5eD5gR9BvfL+MncOcpHysNVneu7j4Ml9fYeJzHZpN/FBuaL J0sBqQKQS9HCcLLZC+IT1xYPjkxHNiTDu7MfbX8eeUwnyPGAkrM=
X-Google-Smtp-Source: AMrXdXt+CxyTzFkq3wViHJLPa6lgt1PllGEZ7H6zF3RdL37lWfuiR98ATpkkfJmhn23TvK+jAsHKpE/qgIfKJ6v+Prs=
X-Received: by 2002:a17:906:1318:b0:84d:47aa:d828 with SMTP id w24-20020a170906131800b0084d47aad828mr14976ejb.428.1673190078378; Sun, 08 Jan 2023 07:01:18 -0800 (PST)
Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Sun, 8 Jan 2023 07:01:17 -0800
From: Dominick Baier <dbaier@leastprivilege.com>
MIME-Version: 1.0
Date: Sun, 08 Jan 2023 07:01:17 -0800
Message-ID: <CAO7Ng+vzOQWdR0LupVk7Zup6up1rqA2yD5W8xDfq9GBV2ddRpA@mail.gmail.com>
To: "oauth@ietf.org" <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000438cde05f1c1ecd7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/sRVuJJqDuF86gM5_Kl6lG2rwy-4>
Subject: [OAUTH-WG] Small bug in DPoP 12
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.39
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: Sun, 08 Jan 2023 15:01:21 -0000

Hi,

While implementing I found

Section 4.2 says

htu: The *HTTP* target URI (Section 7.1 of [RFC9110]), without query and
fragment parts, of the request to which the JWT is attached.


While Section 4.3 says

the htu claim matches the *HTTPS* URI value for the HTTP request in which
the JWT was received, ignoring any query and fragment parts


HTTP vs HTTPS

cheers
Dominick