Re: [OAUTH-WG] A few comments on draft-ietf-oauth-rar-01

Neil Madden <neil.madden@forgerock.com> Thu, 09 July 2020 07:52 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 188143A088C for <oauth@ietfa.amsl.com>; Thu, 9 Jul 2020 00:52:00 -0700 (PDT)
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, MIME_QP_LONG_LINE=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 6hMNIafhJepk for <oauth@ietfa.amsl.com>; Thu, 9 Jul 2020 00:51:58 -0700 (PDT)
Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 EC52D3A0889 for <oauth@ietf.org>; Thu, 9 Jul 2020 00:51:57 -0700 (PDT)
Received: by mail-wm1-x329.google.com with SMTP id o2so820639wmh.2 for <oauth@ietf.org>; Thu, 09 Jul 2020 00:51:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=0YvbD6jHZLVddPaiWajQYzbx852zzOiFG7LtxNfVL78=; b=Y36L9JqYBBYF9ucRhaqTfPmWiTRspzLaQpNBDCU5SlDQTtPWF4BG35081uBCy1CWyb i1uotxDYOCUsta8A6NvW0xfN+DHczXITEbvd73RYdtxhNV5JdJKFku34D64jiGaU1a9l moFeXspIdT6sQGJzFfOGLqCLAK+RHcriIkqeg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=0YvbD6jHZLVddPaiWajQYzbx852zzOiFG7LtxNfVL78=; b=fFrsh+0tKIXZMjYEXemJffhgUn4ldYJB/AyTgjsVJEqa6AotJUGsXssSK7ZfN+vzla OTJ0E7uzAn7AknbZuMRgnTAH3doLpmSlW+edaTA99gopEkNKy8h41XvPVxUzQCij6yH0 Um8iU29mRSclPaEdwmQVYJbXNyQ24glkIE3VBzqeDSKAZON8wD+WLJ5D8ieI2cCvld6z GcKd2QGtoQN+X1+p0oCiC5zkbgaUjnSjZL9Cr3A9VEkXvdaLTROfAShayITR/yHRDc4P AnpyYronfVofeTXqyy1VYp3qZg7EBEh8hgfW00Ea8snZUSPJUx4LTsrCZ4Ld/0urZwOS v6EQ==
X-Gm-Message-State: AOAM532E/lTUoSR/GzVNkhTC8Y9uoOk6RdlFbe34subNRf2bbKy5E/8z 7WnxR1KKyDwfwYupVHwvCR7OrQ==
X-Google-Smtp-Source: ABdhPJw+LthWNcZm4nINcPQvdWhr4CwYUT57jcVqgbcRw0L/zOvvkxpThcqF+GwVUhz5kKlU4eaOig==
X-Received: by 2002:a1c:e908:: with SMTP id q8mr13628300wmc.59.1594281115850; Thu, 09 Jul 2020 00:51:55 -0700 (PDT)
Received: from [10.0.0.3] (128.211.93.209.dyn.plus.net. [209.93.211.128]) by smtp.gmail.com with ESMTPSA id u17sm4004158wrp.70.2020.07.09.00.51.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 00:51:55 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: Neil Madden <neil.madden@forgerock.com>
Mime-Version: 1.0 (1.0)
Date: Thu, 09 Jul 2020 08:51:54 +0100
Message-Id: <E991259C-46FB-4B32-B87C-205B4507379F@forgerock.com>
References: <6F0ACCC8-98F7-46AE-BC45-7444F08C6C6E@lodderstedt.net>
Cc: Justin Richer <jricher@mit.edu>, oauth <oauth@ietf.org>
In-Reply-To: <6F0ACCC8-98F7-46AE-BC45-7444F08C6C6E@lodderstedt.net>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
X-Mailer: iPhone Mail (17F80)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/PRoP2MjwWlQwYGzWvMxC93N6uT8>
Subject: Re: [OAUTH-WG] A few comments on draft-ietf-oauth-rar-01
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: Thu, 09 Jul 2020 07:52:00 -0000


> On 9 Jul 2020, at 07:33, Torsten Lodderstedt <torsten@lodderstedt.net> wrote:
> 
> 
> 
>>> On 8. Jul 2020, at 23:52, Neil Madden <neil.madden@forgerock.com> wrote:
>>> 
>>> 
>>>> On 8 Jul 2020, at 20:56, Torsten Lodderstedt <torsten@lodderstedt.net> wrote:
>>> 
>>>> Am 08.07.2020 um 20:46 schrieb Neil Madden <neil.madden@forgerock.com>:
>>>> 
>>>> On 8 Jul 2020, at 19:03, Torsten Lodderstedt <torsten@lodderstedt.net> wrote:
>>>>>>> 
>>>>>>> What in particular should the use consent with in this step?
>>>>>> 
>>>>>> “FooPay would like to:
>>>>>> - initiate payments from your account (you will be asked to approve each one)”
>>>>>> 
>>>>>> The point is that a client that I don’t have any kind of relationship with can’t just send me a request to transfer $500 to some account. 
>>>>> 
>>>>> Are we talking about legal consent or a security measures here?
>>>> 
>>>> Normal OAuth consent. My phone is my resource, and I am its resource owner. If a client wants to send payment requests to my phone (e.g. via CIBA backchannel) then it should have to get my permission first. Even without backchannel requests, I’d much rather that only the three clients I’ve explicitly consented to can ask me to initiate payments rather than the hundreds/thousands clients my bank happens to have a relationship with.
>>> 
>>> To me it sounds like you would like to require a client to get user authorization to send an authorization request. Would you require the same if I would use scope values to encode a payment initiation request?
>> 
>> Yes. If something is sufficiently high value to require per-transaction authorization then initiating transactions itself becomes a privileged operation. 
> 
> The per transaction authorization alone is a significant increase in security. What is the added value of requiring an authorization to send a per-transaction authorisation request in an additional step?

Because Open Banking allows any client at any time to send an asynchronous back channel request to my phone to approve a payment. This is pretty risky. 

I can’t think of another transactional auth system that allows this without some kind of initial indication of user consent. For example, in Apple Pay all payment requests must be initiated from an explicit user gesture, providing some indication that the user wants to use this. The Dropbox Chooser and Saver APIs also have to be triggered from a user gesture. Again, this provides some confirmation that the user actually initiated the interaction. 

In OAuth, the AS doesn’t have this level of integration into the client’s UI so it needs some other way to establish user consent. By the time the user has a payment confirmation request on their screen it’s too late. 


>>>>> In case of open banking the user legally consents to this process at the client (TPP) even before the OAuth/Payment Initiation dance starts. 
>>>> 
>>>> How does the bank (ASPSP) confirm that this actually happened?
>>> 
>>> It does not because it is not the responsibility of the ASPSP. The TPP is obliged by law to obtain consent.
>> 
>> If the TPP can be trusted to obey the law about this, why not also trust them to be honest about transactions? Why enforce one thing with access tokens but take the other on trust? Especially as the actual transactions are more likely to have a rigorous audit trail. 
>> 
>> If we could trust clients to obtain consent we wouldn’t need OAuth at all. 
> 
> I thought the same initially, but we must distinguish between legal consent and strong authentication/transaction authorization in such a case. Legal consent can be obtained in various ways including the traditional OAuth user consent but also in other places. Authenticating the user (probably with 2FA) and getting authorization for a certain transaction (the meaning of PSD2 SCA) must be conducted by the AS. 
> 

Do you mean legal protection for the bank or their users? As a user, if an OB client acts in a way that I don’t like, but doesn’t break any actual laws or policies, what’s my recourse? In normal OAuth I can revoke the grant to that client. This is not possible in transactional uses of RAR, and that seems like a big difference that significantly changes the relationship between users and clients. 

— Neil