Re: [secdir] alternative term to "plaintext" for the "none" alg (was Re: [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)

Mike Jones <Michael.Jones@microsoft.com> Tue, 23 September 2014 23:26 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3C7CA1A6F2D; Tue, 23 Sep 2014 16:26:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 QGRnj4O7EP9X; Tue, 23 Sep 2014 16:26:28 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0749.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::749]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8C34E1A6F21; Tue, 23 Sep 2014 16:26:27 -0700 (PDT)
Received: from BY2PR03CA062.namprd03.prod.outlook.com (10.141.249.35) by BY1PR0301MB1208.namprd03.prod.outlook.com (25.161.203.16) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Tue, 23 Sep 2014 23:26:04 +0000
Received: from BN1AFFO11FD056.protection.gbl (2a01:111:f400:7c10::162) by BY2PR03CA062.outlook.office365.com (2a01:111:e400:2c5d::35) with Microsoft SMTP Server (TLS) id 15.0.1034.13 via Frontend Transport; Tue, 23 Sep 2014 23:26:03 +0000
Received: from mail.microsoft.com (131.107.125.37) by BN1AFFO11FD056.mail.protection.outlook.com (10.58.53.71) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Tue, 23 Sep 2014 23:26:03 +0000
Received: from TK5EX14MBXC286.redmond.corp.microsoft.com ([169.254.1.23]) by TK5EX14MLTC102.redmond.corp.microsoft.com ([157.54.79.180]) with mapi id 14.03.0195.002; Tue, 23 Sep 2014 23:25:25 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Warren Kumari <warren@kumari.net>
Thread-Topic: alternative term to "plaintext" for the "none" alg (was Re: [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)
Thread-Index: AQHP0mwjMH5fKbfHa0qoJPYCQJJBhZwFhKbQgAM7cQCAAAYboIAGoAqA
Date: Tue, 23 Sep 2014 23:25:24 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439BA6F1B0@TK5EX14MBXC286.redmond.corp.microsoft.com>
References: <CA+k3eCTpBi7Xh87JFkApYvJ1Bd8Kk6VfY0QH67UAVShjFx9G5A@mail.gmail.com> <CAL02cgQvPX+znWqJmL+OroCwJbV1TvWBKCOEJbjEWPvJZmHp7g@mail.gmail.com> <CAHw9_iJaU2QT=N1upprggyLp9_JJEXrGS2yPguDczf9FqgsM5A@mail.gmail.com> <4E1F6AAD24975D4BA5B16804296739439B941EA6@TK5EX14MBXC292.redmond.corp.microsoft.com> <CAHw9_iL6kMnnHL+1DpgnTppJPgqXJRL=a7XUsrDtro-D0srg7Q@mail.gmail.com> <4E1F6AAD24975D4BA5B16804296739439BA59B5E@TK5EX14MBXC286.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439BA59B5E@TK5EX14MBXC286.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(438002)(51704005)(13464003)(24454002)(199003)(69234005)(189002)(377454003)(85306004)(64706001)(15202345003)(74502003)(81342003)(74662003)(230783001)(2656002)(81542003)(50986999)(90102001)(92726001)(93886004)(86362001)(120916001)(33656002)(10300001)(23676002)(85852003)(46102003)(54356999)(97736003)(81156004)(87936001)(76176999)(66066001)(20776003)(21056001)(106466001)(83322001)(106116001)(15975445006)(76482002)(77096002)(95666004)(4396001)(84676001)(79102003)(99396002)(44976005)(68736004)(47776003)(83072002)(107046002)(55846006)(6806004)(86612001)(80022003)(19580395003)(85806002)(104016003)(77982003)(50466002)(31966008)(19580405001)(110136001)(92566001)(69596002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB1208; H:mail.microsoft.com; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-Microsoft-Antispam: UriScan:;
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1208;
X-O365ENT-EOP-Header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 0343AC1D30
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com; client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com;
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/secdir/2s2unmKQA7ifzBtbMLVEE-aDqFU
Cc: "secdir@ietf.org" <secdir@ietf.org>, "draft-ietf-oauth-json-web-token.all@tools.ietf.org" <draft-ietf-oauth-json-web-token.all@tools.ietf.org>, "jose@ietf.org" <jose@ietf.org>, Brian Campbell <bcampbell@pingidentity.com>, "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [secdir] alternative term to "plaintext" for the "none" alg (was Re: [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Sep 2014 23:26:33 -0000

FYI, the -32 and -26 drafts now use the terms "Unsecured JWS" and "Unsecured JWT".

-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Mike Jones
Sent: Friday, September 19, 2014 11:17 AM
To: Warren Kumari
Cc: secdir@ietf.org; Richard Barnes; draft-ietf-oauth-json-web-token.all@tools.ietf.org; jose@ietf.org; Brian Campbell; oauth@ietf.org
Subject: Re: [jose] alternative term to "plaintext" for the "none" alg (was Re: [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)

This was discussed in the thread http://www.ietf.org/mail-archive/web/oauth/current/msg11315.html and prior to that, as JOSE issue #17 http://trac.tools.ietf.org/wg/jose/trac/ticket/17.

-----Original Message-----
From: Warren Kumari [mailto:warren@kumari.net]
Sent: Friday, September 19, 2014 10:52 AM
To: Mike Jones
Cc: Richard Barnes; Brian Campbell; draft-ietf-oauth-json-web-token.all@tools.ietf.org; oauth@ietf.org; jose@ietf.org; secdir@ietf.org
Subject: Re: alternative term to "plaintext" for the "none" alg (was Re: [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)

On Wed, Sep 17, 2014 at 12:40 PM, Mike Jones <Michael.Jones@microsoft.com> wrote:
> Yes, this was already extensively discussed.  It was covered in issue
> #36
> http://trac.tools.ietf.org/wg/jose/trac/ticket/36 and the related 
> working group e-mail thread.  It was also a topic during multiple 
> interim working group calls.  As noted by Karen O’Donoghue (one of the
> chairs) in the issue description “Note: There was extensive discussion 
> on the mailing list, and the rough consensus of the working group was 
> to leave "none" in the document.”  As part of the resolution agreed to 
> by the working group, the security considerations text at 
> https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-31#sec
> tion-8.5
> was added.

That seems to be mainly talking about the "alg": "none" / null cipher bit.

I was specifically speaking to:

5.3.  Replicating Claims as Header Parameters

.....

   This specification allows Claims present in the JWT Claims Set to be
   replicated as Header Parameters in a JWT that is a JWE, as needed by
   the application.  If such replicated Claims are present, the
   application receiving them SHOULD verify that their values are
   identical, unless the application defines other specific processing
   rules for these Claims.  It is the responsibility of the application
   to ensure that only claims that are safe to be transmitted in an
   unencrypted manner are replicated as Header Parameter values in the
   JWT.

.....


Having the claims appear in 2 places seems like bad mojo - but, if this was discussed, and people are OK with it,...

W






>
>
>
>                                                             -- Mike
>
>
>
> From: Warren Kumari [mailto:warren@kumari.net]
> Sent: Wednesday, September 17, 2014 4:40 AM
> To: Richard Barnes
> Cc: Brian Campbell; Mike Jones;
> draft-ietf-oauth-json-web-token.all@tools.ietf.org; oauth@ietf.org; 
> jose@ietf.org; secdir@ietf.org
> Subject: Re: alternative term to "plaintext" for the "none" alg (was Re:
> [OAUTH-WG] Review of: draft-ietf-oauth-json-web-token)
>
>
> On Tuesday, September 16, 2014, Richard Barnes <rlb@ipv.sx> wrote:
>
> I will re-iterate here my strong preference that an "unsecured" or 
> "plaintext" JWS object be syntactically distinct from a real JWS object.
> E.g. by having two dot-separated components instead of three.
>
>
>
> So, *I* was just grumping about the term used in the draft, but yes, 
> these should (IMO, etc) be different.
>
>
>
> I'm also still uncomfortable about the "you can have the same 
> information in the "secured" and "unsecured" section, but the secured 
> one shold be trusted more bit. This seems like it will end in fail.
> (Apologies if this was already discussed and I missed it, and for 
> rushed tone of mail,
> traveling...)
>
>
>
> W
>
>
>
>
>
> Beyond that, seems like just shuffling deck chairs.
>
>
>
> On Mon, Sep 8, 2014 at 12:10 PM, Brian Campbell 
> <bcampbell@pingidentity.com>
> wrote:
>
> cc'ing JOSE on a minor JWT review comment that might impact JWS/JWA.
>
>
> I agree that "plaintext” is not the most intuitive wording choice and 
> that "unsecured" might better convey what's going on with the "none"
> JWS algorithm.
>
> Mike mentioned that, if this change is made in JWT, there are parallel 
> changes in JWS. But note that there are also such changes in JWA (more 
> than in JWS actually).
>
>
>
> On Fri, Sep 5, 2014 at 6:28 PM, Mike Jones 
> <Michael.Jones@microsoft.com>
> wrote:
>
> -----Original Message-----
> From: Warren Kumari [mailto:warren@kumari.net]
> Sent: Monday, September 01, 2014 3:40 PM
> To: secdir@ietf.org;
> draft-ietf-oauth-json-web-token.all@tools.ietf.org
> Subject: Review of: draft-ietf-oauth-json-web-token
>
> I'm a little confused by something in the Terminology section (Section 2):
>
> Plaintext JWT
>
> A JWT whose Claims are not integrity protected or encrypted.
>
> The term plaintext to me means something like "is readable without 
> decrypting / much decoding" (something like, if you cat the file to a 
> terminal, you will see the information). Integrity protecting a string 
> doesn't make it not easily readable. If this document / JOSE uses 
> "plaintext" differently (and a quick skim didn't find anything about
>
> this) it might be good to clarify. Section 6 *does* discuss plaintext 
> JWTs, but doesn't really clarify the (IMO) unusual meaning of the term "plaintext"
> here.
>
>
>
> I’ve discussed this with the other document editors and we agree with 
> you that “plaintext” is not the most intuitive wording choice in this context.
> Possible alternative terms are “Unsecured JWT” or “Unsigned JWT”.  I 
> think that “Unsecured JWT” is probably the preferred term, since JWTs 
> that are JWEs are also unsigned, but they are secured.  Working group 
> – are you OK with this possible terminology change?  (Note that the 
> parallel change “Plaintext JWS” -> “Unsecured JWS” would also be made 
> in the JWS spec.)
>
>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>
>
>
>
> --
> I don't think the execution is relevant when it was obviously a bad 
> idea in the first place.
> This is like putting rabid weasels in your pants, and later expressing 
> regret at having chosen those particular rabid weasels and that pair 
> of pants.
>    ---maf



--
I don't think the execution is relevant when it was obviously a bad idea in the first place.
This is like putting rabid weasels in your pants, and later expressing regret at having chosen those particular rabid weasels and that pair of pants.
   ---maf
_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose