Re: [OAUTH-WG] Refresh tokens

Aaron Parecki <aaron@parecki.com> Wed, 24 July 2019 23:13 UTC

Return-Path: <aaron@parecki.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 219981202C7 for <oauth@ietfa.amsl.com>; Wed, 24 Jul 2019 16:13:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.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_NONE=-0.0001, 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 (2048-bit key) header.d=parecki-com.20150623.gappssmtp.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 X5Ey9xPuLVFl for <oauth@ietfa.amsl.com>; Wed, 24 Jul 2019 16:13:27 -0700 (PDT)
Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 2A60512006E for <oauth@ietf.org>; Wed, 24 Jul 2019 16:13:27 -0700 (PDT)
Received: by mail-io1-xd2c.google.com with SMTP id h6so6652413iom.7 for <oauth@ietf.org>; Wed, 24 Jul 2019 16:13:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parecki-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TAKb3K0I4pCubN+qZ97GDgealobZaDmoX8Na0MkNEK4=; b=KXVbtcRiQPk981Nm3dBF+XF6TrBQSKWvgsyQWsRS+BIazzFjq96vfcVWDoMAAjIpi8 21V08pn/GcG4pqNRoQ+ktv0lecbo0XU4c1qlSvrFUltDMSW9Wpq5FNgxMSc1N6Hk1Z3f //2UiHexe3rfggQtnDk5PRl8djq1yzzCwHtQnzgZeQGPwNIQtxWWGGOQn0dwLlfzK9q4 5Gs7mx21m8KatofJHMhCDWdSaNSTqv06daQvRYWeeYfk3J1IFQOabesB6iSpxfSMVu83 0P+mDxfRnFctQlVXDX3WpIL2v6MB1lyA9EkkvpIJ9vkOgDjeJnb53QDk3Zfib9rWq8Hz HLpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TAKb3K0I4pCubN+qZ97GDgealobZaDmoX8Na0MkNEK4=; b=d4dtCYmAn1XCZOe6haQQyClm9BCr5KN5z5/xfRo2coX4CTkUHXVUhRpEsCeTsfQzX6 wlBtlyC/HC1IOPZL3hFyH+6zGIuuldpnk+hl9jVNdg8eDjOfm1EhwQB753yM801+PgHv SU04sYeCo9ue0X8Da5Pcg0GfEKxkwYQcHeBDRpu58d2Gp9rbYnQd7T+++6qj9LGhzJ9m qOj9hL06/MwAGemGJ5dIH5oStwztqYyCo2tPUMNt8LDXNt3HTrBGrO5/TnN4ZWr0Eiws oJz81WGI24wzeksJaQMhH2Fp0WKpgR36TYEKHag5wZdQ7ykUtHl+660sVqpqpA8Js2v1 cLNw==
X-Gm-Message-State: APjAAAVu/KmmuKVI+J8s+9ivVdeFWmRF1YP3oWGABFm3VUh9hivsfOPr WJGjNVhHRhjRmRYo14Es2QkSrk04igZEUg==
X-Google-Smtp-Source: APXvYqzwHqDl4wGqjE2KBNmkH6nZwwupslMADcj4U9bFg4kESHpz/ZyqIPcPkalBxRfUNozqFn0Mug==
X-Received: by 2002:a6b:6e01:: with SMTP id d1mr6832795ioh.156.1564010006151; Wed, 24 Jul 2019 16:13:26 -0700 (PDT)
Received: from mail-io1-f41.google.com (mail-io1-f41.google.com. [209.85.166.41]) by smtp.gmail.com with ESMTPSA id s10sm112928797iod.46.2019.07.24.16.13.25 for <oauth@ietf.org> (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 16:13:25 -0700 (PDT)
Received: by mail-io1-f41.google.com with SMTP id j6so18052919ioa.5 for <oauth@ietf.org>; Wed, 24 Jul 2019 16:13:25 -0700 (PDT)
X-Received: by 2002:a6b:f816:: with SMTP id o22mr54120969ioh.166.1564010005064; Wed, 24 Jul 2019 16:13:25 -0700 (PDT)
MIME-Version: 1.0
References: <CABw+FcsH3CHmFphz5DD6aDeEqKLxbQhY14kdrXCVY0WXQN6PuQ@mail.gmail.com> <AEC7268A-D22D-41DA-8609-E7D2DD3B290C@alkaline-solutions.com> <624da319-b19c-053b-4fd0-048c0e2b8fb9@aol.com> <CAGBSGjp8m+V+i-sNnrLmu7DR_Bo1uv0iGkW2o7hiqUWw8Sc7qg@mail.gmail.com> <138cbde0-11b7-8f23-1028-3af0846b5a01@aol.com> <CAGBSGjq=SFG5nfOA6nwRsEQY576dsJDAHaL9UH4Yh7AAtOMu5Q@mail.gmail.com> <D676DDDE-20FE-4004-8E3F-124A560A1C20@mit.edu> <0A6F7761-9376-43EE-9B9C-0554812E13B7@forgerock.com> <CABw+Fcus9e5Et5aU_70tJwoX5BVfWaFbiJ+f4UgKe2zr46UPvQ@mail.gmail.com> <20C9E1B6-E497-41C9-9590-F68DD747E401@alkaline-solutions.com> <A5B27EDC-CACD-446D-B98D-85ABC61A6EEE@forgerock.com> <A58E8781-CD67-4B2D-BAD0-05838B3D0D32@lodderstedt.net>
In-Reply-To: <A58E8781-CD67-4B2D-BAD0-05838B3D0D32@lodderstedt.net>
From: Aaron Parecki <aaron@parecki.com>
Date: Wed, 24 Jul 2019 19:12:20 -0400
X-Gmail-Original-Message-ID: <CAGBSGjpL767JLU4-WqGWOMdM7xaX=_rua10Gn9GyQWg6eMZqig@mail.gmail.com>
Message-ID: <CAGBSGjpL767JLU4-WqGWOMdM7xaX=_rua10Gn9GyQWg6eMZqig@mail.gmail.com>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
Cc: Neil Madden <neil.madden@forgerock.com>, OAuth WG <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c6f42f058e7574d3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/t4tKZFTWc6pCj_vkPZGO1r7c7Z0>
Subject: Re: [OAUTH-WG] Refresh tokens
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: Wed, 24 Jul 2019 23:13:29 -0000

Ok thanks for the input here everyone. I'm not seeing much of a consensus,
but these are all excellent points and I've collected them for discussion
during the meeting on Friday.

----
Aaron Parecki
aaronparecki.com
@aaronpk <http://twitter.com/aaronpk>



On Mon, Jul 22, 2019 at 8:12 AM Torsten Lodderstedt <torsten@lodderstedt.net>
wrote:

> Hi Neil,
>
> > On 22. Jul 2019, at 13:59, Neil Madden <neil.madden@forgerock.com>
> wrote:
> >
> >> In addition, a public client which does not use its refresh token in an
> “offline” manner may have theft go unnoticed for a considerable period of
> time, and the operational model of public clients usually puts detection of
> local token theft in the hand of the end user and client software, not an
> administrator or organizational security staff.
> >
> > Given that a refresh token has to be used at the AS, isn't the situation
> here *better* for refresh tokens? Every time an attacker uses a stolen
> refresh token you get a nice ping against your centralised token endpoint,
> giving you a great opportunity to run contextual checks to decide if
> something looks fishy.
>
> I agree with your assessment.
>
> That why the Security BCP (
> https://tools.ietf.org/html/draft-ietf-oauth-security-topics-13#section-4..12)
> requires authorisation servers to detect refresh token replay. Even if the
> refresh token cannot be sender constraint, one-time refresh tokens (or
> refresh token rotation) is a viable option when used in combination with
> conditional revocation of the active refresh token if something looks fishy.
>
> kind regards,
> Torsten. _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>