Re: [OAUTH-WG] OAuth Security Topics -- Recommend authorization code instead of implicit

n-sakimura <n-sakimura@nri.co.jp> Wed, 28 November 2018 22:51 UTC

Return-Path: <n-sakimura@nri.co.jp>
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 5E5B4130DC0 for <oauth@ietfa.amsl.com>; Wed, 28 Nov 2018 14:51:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=nri365.onmicrosoft.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 GZvzhn7gZeBx for <oauth@ietfa.amsl.com>; Wed, 28 Nov 2018 14:50:59 -0800 (PST)
Received: from nrifs01.index.or.jp (nrigw01.index.or.jp [133.250.250.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7A562130E27 for <oauth@ietf.org>; Wed, 28 Nov 2018 14:50:58 -0800 (PST)
Received: from nrimmfm052.index.or.jp (unknown [172.19.246.144]) by nrifs01.index.or.jp (Postfix) with ESMTP id 8BCFB77EE5; Thu, 29 Nov 2018 07:50:57 +0900 (JST)
Received: from index.or.jp (unknown [172.19.246.151]) by nrimmfm052.index.or.jp (Postfix) with ESMTP id 2ECEE4E0046; Thu, 29 Nov 2018 07:50:57 +0900 (JST)
Received: from nriea02.index.or.jp (localhost.localdomain [127.0.0.1]) by pps.mf051 (8.15.0.59/8.15.0.59) with SMTP id wASMovnw010702; Thu, 29 Nov 2018 07:50:57 +0900
Received: from nrims00a.nri.co.jp ([192.50.135.11]) by nriea02.index.or.jp with ESMTP id wASMouR4010692; Thu, 29 Nov 2018 07:50:57 +0900
Received: from nrims00a.nri.co.jp (localhost.localdomain [127.0.0.1]) by nrims00a.nri.co.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id wASMouXE061794; Thu, 29 Nov 2018 07:50:56 +0900
Received: (from mailnull@localhost) by nrims00a.nri.co.jp (Switch-3.3.4/Switch-3.3.0/Submit) id wASMoumm061793; Thu, 29 Nov 2018 07:50:56 +0900
X-Authentication-Warning: nrims00a.nri.co.jp: mailnull set sender to n-sakimura@nri.co.jp using -f
Received: from nrizmf15.index.or.jp ([172.100.25.24]) by nrims00a.nri.co.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id wASMou1M061790; Thu, 29 Nov 2018 07:50:56 +0900
Received: from CUEXE01PA.cu.nri.co.jp (192.51.23.31) by CUEXM06PA.cu.nri.co.jp (172.159.253.48) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 29 Nov 2018 07:50:55 +0900
Received: from JPN01-TY1-obe.outbound.protection.outlook.com (23.103.139.175) by ex.nri.co.jp (192.51.23.33) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 29 Nov 2018 07:50:55 +0900
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nri365.onmicrosoft.com; s=selector1-cu-nri-co-jp; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vjkoa9Ki/r2tDW9QJL5A3nwaGQJQCqg5tJ+jxdsCjlA=; b=b7ED8nzKJspkWTTTaruPr/R4bufRQM/EjCqh+pICfqfidezRf9DMCdFh8QqQaupwko/xT5AGC5lbpYZV1J9FosJxHkVCzjyp+omFPSaEmMxfWOlx+uYD2fbPrm1oZEgqthIxmrIcTtLUri3HD3rFUD0NEQ26fG5B57RbSqnTo8w=
Received: from OSBPR01MB2869.jpnprd01.prod.outlook.com (52.134.253.15) by OSBPR01MB3607.jpnprd01.prod.outlook.com (20.178.96.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.16; Wed, 28 Nov 2018 22:50:53 +0000
Received: from OSBPR01MB2869.jpnprd01.prod.outlook.com ([fe80::d1ae:ff36:e681:ce6c]) by OSBPR01MB2869.jpnprd01.prod.outlook.com ([fe80::d1ae:ff36:e681:ce6c%4]) with mapi id 15.20.1294.045; Wed, 28 Nov 2018 22:50:53 +0000
From: n-sakimura <n-sakimura@nri.co.jp>
To: Torsten Lodderstedt <torsten@lodderstedt.net>, n-sakimura <n-sakimura@nri.co.jp>
CC: Dick Hardt <dick.hardt@gmail.com>, Hannes Tschofenig <hannes.tschofenig@arm.com>, "oauth@ietf.org" <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] OAuth Security Topics -- Recommend authorization code instead of implicit
Thread-Index: AdR/8wsdlCSgLoNZTem+1MxrAorhbwHYZjwAAABEwfcABVOygAAAbOyY
Date: Wed, 28 Nov 2018 22:50:53 +0000
Message-ID: <OSBPR01MB28690F77DFFB2A85BDB83FBAF9D10@OSBPR01MB2869.jpnprd01.prod.outlook.com>
References: <VI1PR0801MB211266BA6F6E06FFB3081425FAD80@VI1PR0801MB2112.eurprd08.prod.outlook.com> <CAD9ie-v3onmKc498cg_-a0AD58ZV=aZANtz=UV+Q0f=9N3nSzQ@mail.gmail.com> <OSBPR01MB2869E83F37046C7FCD4463DDF9D10@OSBPR01MB2869.jpnprd01.prod.outlook.com>, <9FF3F589-0423-4CBC-B323-481F771D097C@lodderstedt.net>
In-Reply-To: <9FF3F589-0423-4CBC-B323-481F771D097C@lodderstedt.net>
Accept-Language: ja-JP, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=n-sakimura@cu.nri.co.jp;
x-originating-ip: [40.67.190.194]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; OSBPR01MB3607; 6:9xDUzNl9ghwn5wRZxSMVVHg/0WWbzZi8ZRKAPz60qjDWHpCHXHQFihPt4EBgrvUp0z+i6ZwtRElV+xd1KdONRrUE/Z+Ojost8vFq4n7XNyHSf5jRp+F7FuLGBfZ6Y5i/r3nynczkTAaGQ23IhphHtteXzP+DVQITD4q11JSee47ufrfqeSbZv83jkWPGUu4mksQSN31DVn61cDPit1sIw08Ivhc3yJh0XWIA0LmcC2ZgohH6FBV0uh3bCfGljr/NV8pPV19fB4IoXPxczIBdtsVve2E8CB1pSZtQ2O9gODYe1/DOqTmQQ+LA4d7Mywnt4ua6lPanRRlsupvZdP2pTHGKXLTYE4nLQwqYAcn9by8Soo2VRhKQlg/o4w8/Fsyj+N+dR/de4ylYwxGsfi9FS4MHtgj+8INNpUADO+XKOuZrAmH+GVFiI6cnFrtgRhMmmhWVSE5kMVhF8U8UQZsqdg==; 5:cmQjS47b5SxJ3GhnRcE9iTfk5EtPhjcw2dQ136wTfMjdp0IZSld0xwqRlbvy0cq609dEmWpe4+znF9ppi75fYDpu9PHF6Wie8qdFdc9wzl+bl1nXZ/jObZ9Wyx5OtsvIrve4bkpV31zdAHSoSmCB22pPULFZmqRDkPUJTzi97Js=; 7:4tr+HN+tzj/VaHXuftcBsSxalQESbZfprMyB1/fAO6a9K15wLfJ3Q5Gsqv5ygJ2y1kptHpUUuNOMkT6/glJNbmWHD2SWg0fu3PWS+o19hjHgIzTaStDga3NgzjOP2xvrRtTvIr+hoVxpKnWWUv2+4Q==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 591c3de0-6ddd-45c9-3dc9-08d65583f3bf
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:OSBPR01MB3607;
x-ms-traffictypediagnostic: OSBPR01MB3607:
x-microsoft-antispam-prvs: <OSBPR01MB36071037A73F57726DF866B2F9D10@OSBPR01MB3607.jpnprd01.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231443)(999002)(944501410)(52105112)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(2016111802025)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6043046)(201708071742011)(7699051)(76991095); SRVR:OSBPR01MB3607; BCL:0; PCL:0; RULEID:; SRVR:OSBPR01MB3607;
x-forefront-prvs: 0870212862
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(376002)(346002)(366004)(39840400004)(396003)(53754006)(365934003)(40434004)(189003)(199004)(110136005)(39060400002)(25786009)(71190400001)(54896002)(71200400001)(9686003)(74316002)(6306002)(55016002)(8936002)(14444005)(5024004)(54906003)(236005)(66574009)(7736002)(45080400002)(508600001)(2906002)(66066001)(86362001)(105586002)(106356001)(966005)(74482002)(4326008)(229853002)(81166006)(93886005)(81156014)(7696005)(8676002)(26005)(53936002)(446003)(186003)(14454004)(102836004)(6246003)(97736004)(3846002)(6116002)(11346002)(33656002)(256004)(76176011)(486006)(6436002)(99286004)(316002)(15650500001)(476003)(6506007)(53546011)(5660300001)(68736007); DIR:OUT; SFP:1102; SCL:1; SRVR:OSBPR01MB3607; H:OSBPR01MB2869.jpnprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:0;
received-spf: None (protection.outlook.com: cu.nri.co.jp does not designate permitted sender hosts)
x-microsoft-antispam-message-info: c8kAx4Tiy/9VRMe8DfrQS6G6ACmLsX6JQ5AmN82uMKsdnpKuwnBthg84Ntm+s6GvsAMqAR1qF1zimnWO7DRlYZ+VN83Y2Sz+WYZvHW/gALtLoMbjJ8NOUGOt9yVrUbCOfytytjQnkav5Tt+GpBI6U+35JdxhJM0OYEkBqs14QahLjQlTZAXcw5SctdOt1U3Ja6sukGx0V1edEWKkOzpaof0zWABvwdATPIkQyohWGpFdTUI/YAhgt/gSiCqV5g/ZHqs3ITG+attNErciN5pU/HyTGp9A+8QEVdtwEwsG0BT3IG7Wi0AIntZ+RMp7bR7wCQuSxSdivc0Vf3/D6O1jDHF7/N54N5NAdeGMOD6XfYM=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_OSBPR01MB28690F77DFFB2A85BDB83FBAF9D10OSBPR01MB2869jpnp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 591c3de0-6ddd-45c9-3dc9-08d65583f3bf
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2018 22:50:53.7336 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: e3e360d9-7e7f-48d5-ac33-3c5de61f0a75
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB3607
X-OrganizationHeadersPreserved: OSBPR01MB3607.jpnprd01.prod.outlook.com
X-CrossPremisesHeadersPromoted: CUEXE01PA.cu.nri.co.jp
X-CrossPremisesHeadersFiltered: CUEXE01PA.cu.nri.co.jp
X-OriginatorOrg: cu.nri.co.jp
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/N2WGv_cNaf7HHoUfqHuIKqU6SqU>
Subject: Re: [OAUTH-WG] OAuth Security Topics -- Recommend authorization code instead of implicit
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, 28 Nov 2018 22:51:02 -0000

That works.

In fact, I would further go and say MUST NOT but that probably is too much for a security consideration.

Best,

Nat

Nat Sakimura / n-sakimura@nri.co.jp / +81-90-6013-6276

このメールには、本来の宛先の方のみに限定された機密情報が含まれている場合がございます。お心あたりのない場合は、誠に申し訳ございませんが、送信者までお知らせ頂き、また受信されたメールは削除してくださいますようお願い申し上げます。

PLEASE READ :This e-mail is confidential and intended for the named recipient only.
If you are not an intended recipient, please notify the sender and delete this e-mail.

________________________________
差出人: Torsten Lodderstedt <torsten@lodderstedt.net>
送信日時: 水曜日, 11月 28, 2018 11:38 午後
宛先: n-sakimura
Cc: Dick Hardt; Hannes Tschofenig; oauth@ietf.org
件名: Re: [OAUTH-WG] OAuth Security Topics -- Recommend authorization code instead of implicit

Hi Nat,

Am 28.11.2018 um 21:10 schrieb n-sakimura <n-sakimura@nri.co.jp<mailto:n-sakimura@nri.co.jp>>:

I would support

1) clearly defining Implicit as the flow that returns access token from the authorization endpoint ( some people confuses implicit as the flow that returns ID Token in the front channel)

That’s the current text:

In order to avoid these issues, Clients SHOULD NOT use the implicit
   grant or any other response type causing the authorization server to
   issue an access token in the authorization response.

What would you like to modify?


2) Banning the returning of the access token that are not sender constrained from the authorization endpoint

In order to avoid these issues, Clients SHOULD NOT use the implicit
   grant or any other response type causing the authorization server to
   issue an access token in the authorization response, if this access tokens is not sender-constraint.

What about this?

kind regards,
Torsten.


Best,

Nat


Outlook for iOS を入手

差出人: OAuth <oauth-bounces@ietf.org<mailto:oauth-bounces@ietf.org>> (Dick Hardt <dick.hardt@gmail.com<mailto:dick.hardt@gmail.com>> の代理)
送信日時: 水曜日, 11月 28, 2018 8:58 午後
宛先: Hannes Tschofenig
Cc: oauth@ietf.org<mailto:oauth@ietf.org>
件名: Re: [OAUTH-WG] OAuth Security Topics -- Recommend authorization code instead of implicit

+1

While there are various mechanisms to alleviate some of the issues of implicit, I don't think we can recommend specifics, and there may be future ones in the future. I think we all agree that implicit without any mitigation is problematic.

How about we recommend against using implicit alone?


On Mon, Nov 19, 2018 at 2:34 AM Hannes Tschofenig <Hannes.Tschofenig@arm.com<mailto:Hannes.Tschofenig@arm.com>> wrote:
Hi all,

The authors of the OAuth Security Topics draft came to the conclusion that it is not possible to adequately secure the implicit flow against token injection since potential solutions like token binding or JARM are in an early stage of adoption. For this reason, and since CORS allows browser-based apps to send requests to the token endpoint, Torsten suggested to use the authorization code instead of the implicit grant in call cases in his presentation (see https://datatracker.ietf.org/meeting/103/materials/slides-103-oauth-sessb-draft-ietf-oauth-security-topics-01).

A hum in the room at IETF#103 concluded strong support for his recommendations. We would like to confirm the discussion on the list.

Please provide a response by December 3rd.

Ciao

Hannes & Rifaat



IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth
_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth