Re: [Ace] Security of the Communication Between C and RS

Hannes Tschofenig <Hannes.Tschofenig@arm.com> Tue, 18 December 2018 13:51 UTC

Return-Path: <Hannes.Tschofenig@arm.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 02121124BF6 for <ace@ietfa.amsl.com>; Tue, 18 Dec 2018 05:51:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.36
X-Spam-Level:
X-Spam-Status: No, score=-3.36 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=armh.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 9bx2pfDb6gRh for <ace@ietfa.amsl.com>; Tue, 18 Dec 2018 05:51:47 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150055.outbound.protection.outlook.com [40.107.15.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9083C1200B3 for <ace@ietf.org>; Tue, 18 Dec 2018 05:51:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DdgTWN4Mm9k/mOxbDoc+IQW1MMB1YmD9G3mbpEk8OFs=; b=LC3IWp1m4YuqUIVwzJf6OZaC1EQrE3tjokgvHDLM87KpAPBYWINSaU1AbK7YcpFA/8idkiDvz2/hs9h4aByYQw32E7gfm61Nc2R2trzC5/Gnf/IMAvrQw1T8hTCTVE7LJuKT4eSScVCr0pJwJi2mFlQeaH/WpRnaiFnWxZavIPY=
Received: from VI1PR0801MB2112.eurprd08.prod.outlook.com (10.173.75.16) by VI1PR0801MB1824.eurprd08.prod.outlook.com (10.168.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Tue, 18 Dec 2018 13:51:43 +0000
Received: from VI1PR0801MB2112.eurprd08.prod.outlook.com ([fe80::e8de:6a41:cbf4:89d8]) by VI1PR0801MB2112.eurprd08.prod.outlook.com ([fe80::e8de:6a41:cbf4:89d8%3]) with mapi id 15.20.1425.023; Tue, 18 Dec 2018 13:51:43 +0000
From: Hannes Tschofenig <Hannes.Tschofenig@arm.com>
To: Hannes Tschofenig <Hannes.Tschofenig@arm.com>, Ludwig Seitz <ludwig.seitz@ri.se>, Stefanie Gerdes <gerdes@tzi.de>, Jim Schaad <ietf@augustcellars.com>, "ace@ietf.org" <ace@ietf.org>
Thread-Topic: [Ace] Security of the Communication Between C and RS
Thread-Index: AQHUlquFKpsKbsbb2kGcq8Jrm430i6WELNAAgABWsZA=
Date: Tue, 18 Dec 2018 13:51:43 +0000
Message-ID: <VI1PR0801MB21126DDCCA251EEB8DB21DAAFABD0@VI1PR0801MB2112.eurprd08.prod.outlook.com>
References: <154322421294.8323.8505315870685563404.idtracker@ietfa.amsl.com> <cbd083d1-cb95-0732-aa8b-7c7de3f480d1@ri.se> <a0cdd836-7fe3-339e-0c48-961503857447@tzi.de> <03b601d49191$7d1bb400$77531c00$@augustcellars.com> <945fbebe-659f-ac72-3ab6-8e05447e7c92@ri.se> <1c5b81f3-50ce-be68-bec3-68ce2ff15b43@tzi.de> <4ae4eccd-68bf-18ef-f909-142f8172eca1@ri.se> <81ba3ab4-a9ce-a6fd-fbe6-c36a6fbbd9a5@tzi.de> <VI1PR0801MB2112E04F9FD7412350995417FAA20@VI1PR0801MB2112.eurprd08.prod.outlook.com> <b994af16-9bb8-4386-e7d2-321e453417fc@ri.se> <VI1PR0801MB21124D7C11F3A1F49DCA9A2CFABD0@VI1PR0801MB2112.eurprd08.prod.outlook.com>
In-Reply-To: <VI1PR0801MB21124D7C11F3A1F49DCA9A2CFABD0@VI1PR0801MB2112.eurprd08.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hannes.Tschofenig@arm.com;
x-originating-ip: [80.92.114.221]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR0801MB1824; 6:zAtfNRiXzY3BfFrD4hL5E9fC7puVcC8gN+zQyT4aKG8rH3mC3QuQR4Cd9/41dfwgwZ2QVbxNDYo+spb69gdlqZ6QmL8tSQgfBKGT+tnNW26ZzAmvJuQSjlqpGQNgiapGSUoSS9eCSUUC1DU4sR504429SE+J4XobbSyMkZEWDcMTDn5FiTAiv73+eYLBxbnoqOzrLG1joP/PhgzU9V7crK7RGaUMQ1LFX/Bk/XoMJkFo0CFhEfIa5//V+zkqPhXo9CmM+AMPF+0smRnFqR3TPMNzvjQJhISfnNxi7frB7rdJIS3dDVjZYjUtEOhZEAag+B5uEdfRBAcvRQbrS4puhyGaBw7Xu6+ZDdr5vVauLGutQb5VEg8nv+YKsC11KXWongqx1m65X6YeNAukixI3/cbDWJiH/rP673Qw9eIRF3R+MQNS9itCO3nfIMSXNAtSvUODA2/FEIxY3pujRAXNjg==; 5:UbFETsKvLjF6QaLCJjOSd3vNC2OFATODWQOJsUePVJJiQUjpM4f4rtx9cwe9cbbVnoijB2tFwiP5HHOTyDW1ggBgDFR16axKHduBknkVzHivg8Kl6PZYmbyQWZtN1PHGxNs1HgK+J0QO4euj6OvlRqKXQUKU7ctErhDtYb3+nws=; 7:gwznly4hRhad+du318g1vDdAPjcwimZGyrAv2LyCx7d55xC86SGCChCGCKZXrZHcIqFesJr5lnDN9KYy9OodEq8+TPf0bi+SWhIUvvSyfVyc+EvKXpjVabSaXrr2v4FsIjLJIhmZlVg8TlV9N5Xlgw==
x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR;
x-ms-office365-filtering-correlation-id: 807f1ae7-ad45-4946-a8e8-08d664eff1c2
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1824;
x-ms-traffictypediagnostic: VI1PR0801MB1824:
x-microsoft-antispam-prvs: <VI1PR0801MB1824A075A1AAC303473AD682FABD0@VI1PR0801MB1824.eurprd08.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:VI1PR0801MB1824; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1824;
x-forefront-prvs: 08902E536D
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(136003)(396003)(39860400002)(376002)(40434004)(199004)(189003)(486006)(6436002)(81166006)(8936002)(81156014)(8676002)(71200400001)(71190400001)(33656002)(66066001)(86362001)(2501003)(106356001)(74316002)(446003)(476003)(11346002)(229853002)(99286004)(93156006)(6116002)(3846002)(7696005)(105586002)(76176011)(15650500001)(2940100002)(7736002)(97736004)(53936002)(305945005)(316002)(6246003)(93886005)(6506007)(55016002)(102836004)(5660300001)(256004)(186003)(14444005)(9686003)(68736007)(110136005)(72206003)(2906002)(478600001)(14454004)(25786009)(5024004)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB1824; H:VI1PR0801MB2112.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: gbmlasbwomuSpyPQRnJkklkbwZO0VeXiFCOwRCkqaIjyzb+Jicf16o2sF+zUCVW8eac8Lrhm2rflt1jVqjyE7B8O05+wY/UsmovAFhE6Ixq3RxnEtnsZuiWX/gIRHc77HqK0xilolu/0R/Ed19m0H2AdRxBu34HNNrD//82H1RB42+M69y0ULEP1vMi+puc1oJ/lMzeQOAalaQEXWjwiWCblVHqZMDewHpdAzTUGwnFoV/73tvbHHpwfwN5moFtrLWmd14SW59/G4lipCQ/vyIhGDZKxSmirg5I2L6l51RNL9YM7s1ce1kTNdT+9hjqB
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 807f1ae7-ad45-4946-a8e8-08d664eff1c2
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 13:51:43.4437 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1824
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/MCSZORQIwFeMVUo2NSpdp3WRuxA>
Subject: Re: [Ace] Security of the Communication Between C and RS
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: Tue, 18 Dec 2018 13:51:49 -0000

Hi Steffi, Hi Ludwig,

~snip~

>> The access information optionally can contain an expires_in field.
>> It would help to prevent security breaches under the following
>> conditions:
> 1. the keying material is valid as long as the ticket, 2. the
> expires_in field is present in the access information that AS sends to
> C, 3. the client checks the expires_in field when it gets the access
> information from the AS, and 4. the client checks if the keying
> material is still valid each time before it sends a request to RS.
>
> These checks make sense to me.
>
Are you proposing we make the expires_in field mandatory? If so, why isn't it mandatory already in OAuth (currently only RECOMMENDED)?

[Hannes] I would do the check when the field is actually there. However, it is a good question why it is not mandatory in OAuth. Let me drop a mail to the list.


Now that I got a response from the OAuth working group (in the sense that I was thinking about the claims in the access token rather than the parameters in the response from the AS) I think checking the expires_in field has to be optional since
* the expires_in parameter is optional, and
* it only has an advisory nature.

It is useful to send the parameter so that the client can determine when to request a new access token (for example, via the refresh token) but it is not absolutely necessary for the protocol operation.

Ciao
Hannes


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.