Re: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07

hannes.tschofenig@gmx.net Tue, 14 November 2023 06:25 UTC

Return-Path: <hannes.tschofenig@gmx.net>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75233C151071; Mon, 13 Nov 2023 22:25:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_PH_BODY_ACCOUNTS_PRE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmx.net
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YGJ61P8WxR8Y; Mon, 13 Nov 2023 22:24:56 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 077C6C14CE42; Mon, 13 Nov 2023 22:24:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1699943080; x=1700547880; i=hannes.tschofenig@gmx.net; bh=zkwJX7/mMaxWdNsEV/GMgOM2TjYp5uMJLKuCKXVUAHk=; h=X-UI-Sender-Class:From:To:Cc:References:In-Reply-To:Subject: Date; b=oByhWOfNGyj+uzPqwK6zeopmT0KdceLorXhBklkp+OJbwcC4FS/vAoLNT0fpNocK BUwwIWZLQL8pMy6+VWvpXUAuV0mrAc22DqZIPrfb+QCrRLCXBB8kV74kFUCaPq5FA n0q6Zzv9S2LGhDjIomrgczG6E/k9m4mLAbNd9oY5BlETIHjxA4n/Gs+IiVGGxsDvh jhjBhy0NU/HHWy6DlvlLR5B6unOkXvR+AWM7FzYknB3QewDh/gYwe07c2BZ8o8yCy FudQKWOtW+tWYrkysIkyyLZyHoi1aYzbn/66f5aAVjadZceqa64NlsdzV01dOBN9B Ukkhq/kf5OBEyYUrYg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from Surface ([37.71.228.214]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MpDJd-1rj1cO3MIZ-00qlt0; Tue, 14 Nov 2023 07:24:39 +0100
From: hannes.tschofenig@gmx.net
To: 'Michael Jones' <michael_b_jones@hotmail.com>, 'Carsten Bormann' <cabo@tzi.org>
Cc: 'Orie Steele' <orie@transmute.industries>, iot-directorate@ietf.org, cose@ietf.org, draft-ietf-cose-cwt-claims-in-headers.all@ietf.org, last-call@ietf.org
References: <169874540507.32382.14218122514486056121@ietfa.amsl.com> <83A3D56E-FDEA-46A3-ADB7-A5CA5130A1EB@island-resort.com> <82b9cb37-fb97-467b-b0d3-4752bf2f1076@gmx.net> <F3247BCE-E30B-4EA7-9652-AAE5CBB4637C@island-resort.com> <CAN8C-_LjTncbC6wz7+48A-z01AMyAexGXOvDsg5gL5qVoPoX7w@mail.gmail.com> <f350f06f-3819-4bfc-8c8b-687ab8dd908e@gmx.net> <2651c7c7-1062-f07c-0f9b-ef1650a8f026@sit.fraunhofer.de> <3B903BA4-68CA-4FB1-882A-9202B3E0C0A5@island-resort.com> <SJ0PR02MB7439A57B8667ED07A934A4B4B7A6A@SJ0PR02MB7439.namprd02.prod.outlook.com> <SJ0PR02MB743938825614A940E371AD56B7AFA@SJ0PR02MB7439.namprd02.prod.outlook.com> <SJ0PR02MB74393B157996F24A7E8781F8B7AEA@SJ0PR02MB7439.namprd02.prod.outlook.com>
In-Reply-To: <SJ0PR02MB74393B157996F24A7E8781F8B7AEA@SJ0PR02MB7439.namprd02.prod.outlook.com>
Date: Tue, 14 Nov 2023 07:24:36 +0100
Message-ID: <017d01da16c3$3dfd5fa0$b9f81ee0$@gmx.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_017E_01DA16CB.9FC41190"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHFJTubZk6crWjvgBS6u3ZrRXpLcwKOKVpSAkwCRT8DLIKimgDP59WoAXtljUYCqOeu8wFJfmMKAk2pIvsB0CyIfAIIAsbir//qADA=
Content-Language: de-at
X-Provags-ID: V03:K1:ZbOY0+kt/VkwYXKLa0kaIFfkMTBY/ZYx0uj/u7FV71fHgF4fQ9M SD5l+lF3haRqOwlK0OVfPHXF1RaUTVsaTOKL3dVDo0NDi+n0oarDZSL3TUG4HdBjjDxJS0J 1zC23rIE5I3zQ97ZOdfY2Py6c1VpGcfOiHDDh/GmGr7OYWKne0GazKWgFR9dTEFQfnP/pNX WUkAhhcn/cM7nM1e+5JsA==
UI-OutboundReport: notjunk:1;M01:P0:i9xhaj+9O6o=;WPEia2l4WLex+zO0kotliyrwBa2 3Z3uE3EikC2qaX1kcvyWFQAD6pb+QKyccEkiwgoixb9vyRkXlaVc1TN3QJwQbL4QrYbjfO8J7 ODOZ1um6GVYMD0dia/4fBG1RAKBEpKjVJvxVMZ3SDmO4XYclX4tsn2HULuGCX18ahkHug8PXK jnuhQYSzV5LJoeDD3GSVDIuJgZxfehev1jtaL7CwDGhqrNhxmB2t4II2Ti+EkUSnhE38oKIvX MiWDx9OsKma/ZcQZ4BWHVAMvI9cE+tlA/eH+t47gmeVysTZ4wGJBsPR3+7nqRU31CAcSAn7Ku DPZD4RspjaVGqNyplo9AN5bB83VBq6eIv7ULwjRx1Z9Tb/Z8QSicvo5c3L9N661T+fsusOy4C Bu6qb2tE0GyVm8N829pyisFL+UBqTTI9503LoqAOX4UGsRXzNqjLT78PR2VUQ4Ec4ZyHe+MMv 3uaTLx1h1/U+e2vBoxWEWa5eXpjh1wrLxaDTmtjKH7z4AdQ6ofaVqwQUZqTb6mt8AfUL1zZYP vRrVMP0m2/k/gYCohy7mg9kFV+Npra0BKR3ANpxiloKRz6qXqRBCfihwt0oa23HCkY13HyFYs LkSJ91x4I58COPj0E3llnQGguhVcW52O6zMtD+K6QzpM6OGPvQ7Tk4A791jP3Xi0eF7L2NfbE CaQx4wrgJ8+XAo150zVBbsOntyYkoge+LpqcTcO2bZ94u6AGLqo1BsGK3tPk+wJof3MgXaGma kHPVjo8pel+KCZik1nboGxG7GVoNOBeld0Ga9vdzdAFGq6toEiGRhPgG+Wmb3ysuC7WNtRsJp mPnWa04YppO/4FIen/3Sm+5kpGuDXu5Grqqn1NpcNgi0Ww8AsSTpc4ZLQ9Ff7Zqvz3bMrefqY QScbAMn02ujrnkTIUomwFAiclT4ljp9zN2sSavGpyKlhrBODba0xczsW5WlhIh9lojutLKzfo /pdqp5pafcD1PjkTZ9f0ZIygJws=
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/bNRDVsWX72TlT-roNFZ9JfGkSq0>
Subject: Re: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Nov 2023 06:25:01 -0000

Thanks for your time at the IETF meeting to discuss the comments and to work out text to address them.

 

I agree that the draft is ready now. 

 

Ciao

Hannes

 

From: COSE <cose-bounces@ietf.org> On Behalf Of Michael Jones
Sent: Freitag, 10. November 2023 17:05
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>; Carsten Bormann <cabo@tzi.org>
Cc: Orie Steele <orie@transmute.industries>; iot-directorate@ietf.org; cose@ietf.org; draft-ietf-cose-cwt-claims-in-headers.all@ietf.org; last-call@ietf.org
Subject: Re: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07

 

Hi Hannes,

 

-09 contains the use case and security considerations text we worked on together.  Thanks for your quick work on this!

 

Can you please update your IotDir review status from “Not Ready” to “Ready”?

 

                                                       Thanks again!

                                                       -- Mike

 

From: Michael Jones <michael_b_jones@hotmail.com <mailto:michael_b_jones@hotmail.com> > 
Sent: Thursday, November 9, 2023 12:53 PM
To: Hannes Tschofenig <hannes.tschofenig@gmx.net <mailto:hannes.tschofenig@gmx.net> >; Carsten Bormann <cabo@tzi.org <mailto:cabo@tzi.org> >
Cc: Orie Steele <orie@transmute.industries <mailto:orie@transmute.industries> >; iot-directorate@ietf.org <mailto:iot-directorate@ietf.org> ; cose@ietf.org <mailto:cose@ietf.org> ; draft-ietf-cose-cwt-claims-in-headers.all@ietf.org <mailto:draft-ietf-cose-cwt-claims-in-headers.all@ietf.org> ; last-call@ietf.org <mailto:last-call@ietf.org> 
Subject: RE: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07

 

I created https://github.com/tplooker/draft-ietf-cose-cwt-claims-in-headers/pull/13 to describe the non-CBOR payload use case in response to Hannes’ IotDir review.  It also says that profiles define the semantics of the claims used, in response to further feedback from Carsten.

 

Reviews requested!

 

                                                       -- Mike

 

From: Michael Jones <michael_b_jones@hotmail.com <mailto:michael_b_jones@hotmail.com> > 
Sent: Thursday, November 2, 2023 7:25 PM
To: lgl island-resort.com <lgl@island-resort.com <mailto:lgl@island-resort.com> >; Henk Birkholz <henk.birkholz@sit.fraunhofer.de <mailto:henk.birkholz@sit.fraunhofer.de> >
Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net <mailto:hannes.tschofenig@gmx.net> >; Orie Steele <orie@transmute.industries <mailto:orie@transmute.industries> >; iot-directorate@ietf.org <mailto:iot-directorate@ietf.org> ; cose@ietf.org <mailto:cose@ietf.org> ; draft-ietf-cose-cwt-claims-in-headers.all@ietf.org <mailto:draft-ietf-cose-cwt-claims-in-headers.all@ietf.org> ; last-call@ietf.org <mailto:last-call@ietf.org> 
Subject: RE: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07

 

Thanks, Lawrence.  I agree with your assessment.

 

In my reply to this thread yesterday, I wrote:

I’d be glad to beef up the description of those motivating use cases in the draft.  I believe that would go a long way in the direction that you suggested: “At a minimum I expect the use cases to be better explained. Under what circumstances is it a good idea to even consider this approach as a developer?”  Do you agree with that direction?

 

Do people agree with describing these use cases?  If so, I’ll work with Tobias to produce an updated draft that we can publish shortly – once the submission window reopens.  It will further improve the specification.

 

                                                       Best wishes,

                                                       -- Mike

 

From: lgl island-resort.com <lgl@island-resort.com <mailto:lgl@island-resort.com> > 
Sent: Thursday, November 2, 2023 10:59 AM
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de <mailto:henk.birkholz@sit.fraunhofer.de> >
Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net <mailto:hannes.tschofenig@gmx.net> >; Orie Steele <orie@transmute.industries <mailto:orie@transmute.industries> >; iot-directorate@ietf.org <mailto:iot-directorate@ietf.org> ; cose@ietf.org <mailto:cose@ietf.org> ; draft-ietf-cose-cwt-claims-in-headers.all@ietf.org <mailto:draft-ietf-cose-cwt-claims-in-headers.all@ietf.org> ; last-call@ietf.org <mailto:last-call@ietf.org> 
Subject: Re: [COSE] Iotdir telechat review of draft-ietf-cose-cwt-claims-in-headers-07

 

Call it what you want, but there’s three choices here: 

 

1) Publish without warnings (which might be OK because there’s no warnings about COSE, JOSE and CMS protected headers).

 

2) Publish with warnings (and add errata for COSE and JOSE?)

 

3) Do not publish because of the security problems

 

Seems like Hannes wants 3). I wouldn’t go that far.

 

I’m fine with 1), but probably in the minority on such these days.

 

LL

 

 

 

 

On Nov 2, 2023, at 10:11 AM, Henk Birkholz <henk.birkholz@sit.fraunhofer.de <mailto:henk.birkholz@sit.fraunhofer.de> > wrote:

 

Hi Hannes,

if your "stack of parsing things" encounters an unprotected CWT claims set within a a well-defined COSE header parameter value, then interprets that unprotected CWT claims set like ti is a well-defined CWT, then somehow acquires semantics for that "CWT" that it found inside a COSE envelope, then interprets them, and then acts as if it were the contents of a stand-alone CWT with some semantics.... No -  I would not call that paranoia. But admittedly, I would not know what to call that.

Viele Grüße,

Henk

On 02.11.23 16:14, Hannes Tschofenig wrote:

Hi Orie,
just yesterday I learned about new OAuth security incident, see
 <https://salt.security/blog/oh-auth-abusing-oauth-to-take-over-millions-of-accounts> https://salt.security/blog/oh-auth-abusing-oauth-to-take-over-millions-of-accounts
In this attack, from my understanding, the problem was that access token verification was not done properly.
Am I really too paranoid?
Ciao
Hannes
Am 02.11.2023 um 15:18 schrieb Orie Steele:

Everything is a security issue if you are paranoid enough.

Could a developer decide not to verify after decoding a header? Absolutely.

W3C Verifiable Credentials secured with "Data Integrity Proofs" show you unverified data by default.

Should future protocols give guidance to minimize the processing of untrusted data? Yes ( and I would argue without exception ).

Do we need to declare protocols unsafe, that do "heavy processing" of untrusted data up front, to discover keys, or other hints that aid with verification?

I don't think so, but I have spoken to engineers / standards people from other communities and some of them think the answer to this question should be "yes".

Pointing out that lots of people do this / W3C / OAUTH / OIDC does it, etc... does not counter their argument.

If anything, knowing that a weakness exists, and is widely deployed, encourages us to consider it a ripe target for attackers.

We should expect damage from attacks on code that processes untrusted data to be higher than attacks that succeed after verification / decryption.

I don't think JOSE / COSE experts should dismiss perceived weaknesses... and it's my understanding that this is a common perceived weakness of JOSE and COSE.

That being said, it's not something this particular document should be addressing in any substantial way.

It's a preexisting condition, one that's severity is disputed.

We've got examples of this principle being violated in different ways.

What W3C Verifiable Credentials do is several orders of magnitude worse than what OIDC does.
... it depends on what kind of processing ... any processing of untrusted data, creates a slippery slope.

We are talking about general guidance here... It applies to all COSE and JOSE, not just this draft.

Therefore, these concerns should be handled independently, for example in guidance or BCP documents.

All this to say, I agree with Laurence.

OS



On Thu, Nov 2, 2023 at 12:38 AM lgl  <http://island-resort.com/> island-resort.com < <http://island-resort.com/> http://island-resort.com> < <mailto:lgl@island-resort.com> lgl@island-resort.com> wrote:

   Hi Hannes,

   On Nov 1, 2023, at 10:30 AM, Hannes Tschofenig
   < <mailto:hannes.tschofenig@gmx.net> hannes.tschofenig@gmx.net> wrote:

   You also agree with me that information in the protected header
   is often processed without prior security verification.

   I’m not sure we’re thinking the same here.

   I think there is no problem that calims-in-headers might be
   processed without verification.

   I think that because we process protected headers/parameters in
   CMS, COSE and JOSE without verification.

   If it’s not a security issue for CMS, COSE and JOSE, it’s not a
   security issue for claims-in-headers. CMS in particular goes back
   decades.
   LL



-- 


ORIE STEELEChief Technology Officerwww.transmute.industries

< <https://transmute.industries/> https://transmute.industries>


_______________________________________________
COSE mailing list
 <mailto:COSE@ietf.org> COSE@ietf.org
 <https://www.ietf.org/mailman/listinfo/cose> https://www.ietf.org/mailman/listinfo/cose

_______________________________________________
COSE mailing list
 <mailto:COSE@ietf.org> COSE@ietf.org
 <https://www.ietf.org/mailman/listinfo/cose> https://www.ietf.org/mailman/listinfo/cose