Re: [Ace] AD review of draft-ietf-ace-oauth-authz-24
Jim Schaad <ietf@augustcellars.com> Fri, 27 September 2019 10:22 UTC
Return-Path: <ietf@augustcellars.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E45C12012C; Fri, 27 Sep 2019 03:22:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 bsee0vlPno73; Fri, 27 Sep 2019 03:22:55 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 220F9120113; Fri, 27 Sep 2019 03:22:55 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 27 Sep 2019 03:22:47 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Ludwig Seitz' <ludwig.seitz@ri.se>, 'Benjamin Kaduk' <kaduk@mit.edu>, draft-ietf-ace-oauth-authz.all@ietf.org
CC: ace@ietf.org
References: <20190927015154.GY6424@kduck.mit.edu> <e1b6d4bf-81e4-a1c4-1aa6-3fb669083adf@ri.se>
In-Reply-To: <e1b6d4bf-81e4-a1c4-1aa6-3fb669083adf@ri.se>
Date: Fri, 27 Sep 2019 03:22:45 -0700
Message-ID: <026401d5751d$8325c690$897153b0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKDo/Tanj2ifMnW0FgPFAFSeXQMwwFbmZ+rpdgV9yA=
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/UCtVGOIDS1glI6lPOdNwuDZto5g>
Subject: Re: [Ace] AD review of draft-ietf-ace-oauth-authz-24
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Sep 2019 10:22:57 -0000
-----Original Message----- From: Ludwig Seitz <ludwig.seitz@ri.se> Sent: Friday, September 27, 2019 12:03 AM To: Benjamin Kaduk <kaduk@mit.edu>; draft-ietf-ace-oauth-authz.all@ietf.org Cc: ace@ietf.org Subject: Re: AD review of draft-ietf-ace-oauth-authz-24 On 27/09/2019 03:51, Benjamin Kaduk wrote: > Hi all, > > The length of this review notwithstanding, this document is generally in > good shape -- there's a bunch of localized items to tighten up, and we > can flesh out the security considerations some more, but nothing too > drastic should be needed. Perhaps the most far-reaching changes needed > will be to rename the "profile" claim, since that has already been > allocated to OIDC Core for a very different usage. I also made a pull > request with a bunch of trivial editorial stuff that's easier to fix > than describe how to fix, up at > https://github.com/ace-wg/ace-oauth/pull/175 . > I have a non-trivial comment on your pull request: In appendix B we summarize the steps taken by an RS to process a freshly received access token. You changed the suggested sequence from: * Verify the token is from a recognized AS. * Verify that the token applies to this RS. * Check that the token has not expired (if the token provides expiration information). * Check the token's integrity. * Store the token so that it can be retrieved in the context of a matching request. To * Verify the token is from a recognized AS. * Check the token's integrity. * Verify that the token applies to this RS. * Check that the token has not expired (if the token provides expiration information). * Store the token so that it can be retrieved in the context of a matching request. I don't think this is a big deal, but I put the integrity check later for a good reason (or so I believe): The integrity check is a potentially expensive cryptographic operation. Checking that the token applies to the RS is a matter of checking the audience claim, and checking that the token is not expired is a matter of comparing two timestamps, I consider both to be computationally much lighter and therefore quicker to execute. A failure of any of those two may make it unnecessary to verify the token integrity. BUT! My suggested sequence only works if the token is signed or MACed and not if it is encrypted. If the token is encrypted the AEAD integrity check (and decryption) is necessarily the first processing step. Any ideas how to resolve this gracefully (i.e. without adding a large amount of text) are most welcome. [JLS] I normally get out of this type of problem by saying "The order of the steps is not normative, any process which produces an equivalent result can be used." And then you can add a comment about switching the two steps for signed items. Regards, Ludwig -- Ludwig Seitz, PhD Security Lab, RISE Phone +46(0)70-349 92 51
- [Ace] AD review of draft-ietf-ace-oauth-authz-24 Benjamin Kaduk
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Jim Schaad
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Benjamin Kaduk
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Jim Schaad
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Benjamin Kaduk
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Benjamin Kaduk
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Benjamin Kaduk
- Re: [Ace] AD review of draft-ietf-ace-oauth-authz… Ludwig Seitz