Re: [OAUTH-WG] JWT Response for OAuth Token Introspection and nonce

Neil Madden <neil.madden@forgerock.com> Fri, 12 February 2021 08:09 UTC

Return-Path: <neil.madden@forgerock.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 961C23A1371 for <oauth@ietfa.amsl.com>; Fri, 12 Feb 2021 00:09:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, 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 (1024-bit key) header.d=forgerock.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 pvcp3VbtRJrl for <oauth@ietfa.amsl.com>; Fri, 12 Feb 2021 00:09:08 -0800 (PST)
Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 729263A1370 for <oauth@ietf.org>; Fri, 12 Feb 2021 00:09:08 -0800 (PST)
Received: by mail-ej1-x62d.google.com with SMTP id i8so14125189ejc.7 for <oauth@ietf.org>; Fri, 12 Feb 2021 00:09:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=from:mime-version:subject:date:message-id:references:cc:in-reply-to :to:content-transfer-encoding; bh=bp+zqZEFLmkbNxGPr7w7yMvVM9Xv7RKJDtSWOckUdIQ=; b=OrKbeW3zA/cOMnh3j4JsSJL5Doz4VkAUksjvF2O9EvHFu3J1sCoBSJ06feH1rv9ruW WAkQXsyV1ee8zeZrS2GYM/nRmXeUFsVhBUIjlw8n8Ry9PEuJ6pr4dfXqhWqYLfsWAloX wfRQfY4I8V9wJ05rJH5doek+wd1PY+wEbQNQw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to:content-transfer-encoding; bh=bp+zqZEFLmkbNxGPr7w7yMvVM9Xv7RKJDtSWOckUdIQ=; b=memlU1mU6n5t78Dlj9pfVGxak0RBAcX3Tz1/wm/vsJKfK0H3FnV7HGSsm6sroVKRoT vQ1yQDW2bq4YoGvGTeCnjewMisKCjcy0FalkqKGlabIsyURp5cn8Mm+V8MAZ8wv8yROK Sv+v6pV85a6vzPWMZpSrW9OUj5W5MqKxjCdV36RXrrB04Enh0J4umND3NU8LeIcY8McY ualfXi8EwHNkPEtK4XtIoqgTtONro5LdKsSHXalzsY7el1Ur6JpyEhSj8BMuc1CqQjrm j+Cnd6CKBWqGdKGXytm5qrQluQNBsC2QNSEeSEhKIPwoJP7HeyLgyv+W5gJXV+V2UmL+ VlTA==
X-Gm-Message-State: AOAM533J2CY19OEzoqkriFfyvOr+rewzEmgmDch4BstGOVxh9R5P5QgK 2XQnoer4watxlFf/evvWDjHn9FvD3RkWStwqZUuKZBxr8CkQHDcNeY63G3XoTfiRal4XBv1EUg= =
X-Google-Smtp-Source: ABdhPJwEWFS84mkcHIxSmTdoy+bZO66qn0wUl47BD5SjGtSQONY36H3g4tD1uZcZIagc+Y9PCd0L+w==
X-Received: by 2002:a17:907:9702:: with SMTP id jg2mr1914321ejc.48.1613117346725; Fri, 12 Feb 2021 00:09:06 -0800 (PST)
Received: from [10.0.0.2] (252.207.159.143.dyn.plus.net. [143.159.207.252]) by smtp.gmail.com with ESMTPSA id r23sm5825535ejd.56.2021.02.12.00.09.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Feb 2021 00:09:06 -0800 (PST)
From: Neil Madden <neil.madden@forgerock.com>
Mime-Version: 1.0 (1.0)
Date: Fri, 12 Feb 2021 08:09:05 +0000
Message-Id: <26C6C0BB-9C1B-464C-A393-2FEEC0981F41@forgerock.com>
References: <CALkShctqgywXLyNv8dFe0__hy6oBboi6+JMovqiQydqa4oyWHg@mail.gmail.com>
Cc: oauth <oauth@ietf.org>, draft-ietf-oauth-jwt-introspection-response@ietf.org
In-Reply-To: <CALkShctqgywXLyNv8dFe0__hy6oBboi6+JMovqiQydqa4oyWHg@mail.gmail.com>
To: Andrii Deinega <andrii.deinega@gmail.com>
X-Mailer: iPhone Mail (18C66)
Content-Type: multipart/alternative; boundary="Apple-Mail-F3F8DE8F-E853-42AC-9C07-08529D60499B"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/wHd8Svn3VW3qQ3w_Kw4xYpNm5Q0>
Subject: Re: [OAUTH-WG] JWT Response for OAuth Token Introspection and nonce
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: Fri, 12 Feb 2021 08:09:11 -0000

> On 11 Feb 2021, at 21:43, Andrii Deinega <andrii.deinega@gmail.com> wrote:
> 
> 
> Thank you for the response! Unfortunately, I'm still not convinced that there is no need for nonce.
>  
> Based on the draft, I don't know how it's possible to achieve a “stronger assurance that the authorizationserver issued the token introspection response for an access token, includingcases where the authorization server assumes liability for the content of thetoken introspection response” if we can't guarantee that a client will always get the response to its initial introspect request, or in other words, old communications can be never reused (the iat claim isn't going to be sufficient for that).

The whole point about liability is being able to establish it after the fact. A nonce is only meaningful within the initial interaction and so is no help at all for establishing liability. 

>  
> Let's put aside those attackers for a moment and say we experience some awfully wrong caching issues that can happen anywhere between an AS and a client... where the client gets a cached response for its previous requests which isn't expected. How can it be prevented?

1. TLS. 2. Cache-Control. 

— Neil

-- 
ForgeRock values your Privacy <https://www.forgerock.com/your-privacy>