Re: [OAUTH-WG] More Criticism of JOSE

Mike Jones <Michael.Jones@microsoft.com> Wed, 15 March 2017 21:06 UTC

Return-Path: <Michael.Jones@microsoft.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 C6FC7131848 for <oauth@ietfa.amsl.com>; Wed, 15 Mar 2017 14:06:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.797
X-Spam-Level:
X-Spam-Status: No, score=-4.797 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_HELO_PASS=-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=microsoft.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 c9UidxhB5j6V for <oauth@ietfa.amsl.com>; Wed, 15 Mar 2017 14:06:45 -0700 (PDT)
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0107.outbound.protection.outlook.com [104.47.40.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 05F59131840 for <oauth@ietf.org>; Wed, 15 Mar 2017 14:06:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KZwef34rKkSEZovCcpdglTb8VOuheuQiMric8R/jnSc=; b=mPRPwnVYpEfVZokz4A072jkX48ura9esgk7n1FyQZKCTmXTgRa7N0qef10yrUfU1Z96yXWXT/V+MKbMI3IiFWQ5Q4VhhRytsWoc7VPyzk5w1A2PHO7ltGSj9d1Jm4GcdXg5MgN5mOUkG8TIu0yQq2e0hO+x4NVTtOv+PaC7T43Y=
Received: from CY4PR21MB0504.namprd21.prod.outlook.com (10.172.122.14) by CY4PR21MB0504.namprd21.prod.outlook.com (10.172.122.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.0; Wed, 15 Mar 2017 21:06:43 +0000
Received: from CY4PR21MB0504.namprd21.prod.outlook.com ([10.172.122.14]) by CY4PR21MB0504.namprd21.prod.outlook.com ([10.172.122.14]) with mapi id 15.01.0991.003; Wed, 15 Mar 2017 21:06:43 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Antonio Sanso <asanso@adobe.com>
CC: Sergey Beryozkin <sberyozkin@gmail.com>, "oauth@ietf.org" <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] More Criticism of JOSE
Thread-Index: AQHSnaLc8rEEDhIYtU+PeFy9Q2RU+KGWC1EAgABCAdCAABAKgIAAB0zA
Date: Wed, 15 Mar 2017 21:06:43 +0000
Message-ID: <CY4PR21MB0504E2A254D753F8BA3E99CBF5270@CY4PR21MB0504.namprd21.prod.outlook.com>
References: <mailman.539.1489455092.6649.oauth@ietf.org> <de3bdfc3f87fad59432f85f75db3d6b4@gluu.org> <814591e4-c21a-451b-cce9-e4f158f07c2e@gmail.com> <CY4PR21MB0504F80C01BF3378DE3794C6F5270@CY4PR21MB0504.namprd21.prod.outlook.com> <78BE56B7-0253-4635-AB46-F724A8536082@adobe.com>
In-Reply-To: <78BE56B7-0253-4635-AB46-F724A8536082@adobe.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: adobe.com; dkim=none (message not signed) header.d=none;adobe.com; dmarc=none action=none header.from=microsoft.com;
x-originating-ip: [2001:4898:80e8:4::36]
x-microsoft-exchange-diagnostics: 1; CY4PR21MB0504; 7:QA5QhMtvezQ7O9KY2bJ5ocvu9n8OgWR7pYs6V8Se71h6DbggaFGlD09FjOv50Rp9IZhiv18AXxXpbz/yagTnSQxVN8FSPn+mL74dfPMlN4bltFQa6yrquieXIPG82lr708Tt24xeLMD3zt3y9xOWXndwqbEhOMHIIrdiUBQqSBlhXri65/nnXiUnxaEnqvoMt3+j8tAZWwDMhqdnQv2jdakHA+Ct/0nGvtOtzhCIgsNp6NFq/az3Vbcbx0m2ePkRpqSR/YYAHPPhAvXt0ddUz/6bpOBbNbQJU3ppvVcp3JQoUJ8JDp440JLYD0DuqWR9CxPdPke5MlXXvYblcE7FvRUBM7K3iohZlHJOktpEPWM=
x-ms-office365-filtering-correlation-id: 30063a4b-6218-4c34-ec49-08d46be72f17
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254025)(48565401081); SRVR:CY4PR21MB0504;
x-microsoft-antispam-prvs: <CY4PR21MB05042920C71867AC5AC37AEDF5270@CY4PR21MB0504.namprd21.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(278428928389397)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(93006012)(93001012)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123555025)(20161123560025)(20161123558025)(20161123562025)(20161123564025)(6072148); SRVR:CY4PR21MB0504; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0504;
x-forefront-prvs: 02475B2A01
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39450400003)(39410400002)(39860400002)(39840400002)(377454003)(53824002)(24454002)(13464003)(39060400002)(86362001)(2906002)(3660700001)(102836003)(2900100001)(38730400002)(8990500004)(6116002)(53936002)(74316002)(53546007)(110136004)(7736002)(6246003)(305945005)(76176999)(93886004)(7696004)(6306002)(9686003)(5660300001)(10090500001)(54356999)(54906002)(99286003)(50986999)(55016002)(3280700002)(6436002)(6506006)(229853002)(10290500002)(5005710100001)(25786008)(2950100002)(8936002)(6916009)(8676002)(86612001)(33656002)(122556002)(4326008)(77096006)(81166006)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0504; H:CY4PR21MB0504.namprd21.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2017 21:06:43.4554 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0504
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/GOzNNse_JGzI5s84gkgjRAdR30k>
Subject: Re: [OAUTH-WG] More Criticism of JOSE
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
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, 15 Mar 2017 21:06:47 -0000

Will you be in Chicago, Antonio?  If so, maybe you can sit down with us and work on advice to implementers.

				Cheers,
				-- Mike

-----Original Message-----
From: Antonio Sanso [mailto:asanso@adobe.com] 
Sent: Wednesday, March 15, 2017 1:40 PM
To: Mike Jones <Michael.Jones@microsoft.com>
Cc: Sergey Beryozkin <sberyozkin@gmail.com>; oauth@ietf.org
Subject: Re: [OAUTH-WG] More Criticism of JOSE

hi Mike,

while I am the original author of one of the mentioned article in the blog post (http://blog.intothesymmetry.com/2017/03/critical-vulnerability-in-json-web.html) I do not share entirely the criticism.
Said that, I must really admit that some of the cryptographic choices made specially in JWE are really questionable.

regards

antonio

On Mar 15, 2017, at 8:50 PM, Mike Jones <Michael.Jones@microsoft.com> wrote:

> The bulk of this seems to be about applications that don't verify that the crypto algorithms that were used in a JWT are acceptable in the application context.  While I know that some people would like crypto to be magic pixie dust that you can sprinkle on an application to get crypto goodness, it will never be that simple.  Crypto algorithms that are thought to be good today will be deprecated later.  Apps that keep allowing them to be used will be vulnerable.  The JOSE specs requiring that applications be aware of the algorithms used is a good and necessary thing for long-term security - not a problem with the specs.
> 
> That said, of course some implementers will get things wrong.  To the extent that we can help them understand what they actually need to do to use the specifications securely, we obviously should.  Perhaps we should write an article for oauth.net talking about some of these issues?  Maybe a few of us can get together in Chicago and work on that.
> 
> I'm looking forward to seeing many of you in 1.5 weeks!
> 
> 				-- Mike
> 
> -----Original Message-----
> From: OAuth [mailto:oauth-bounces@ietf.org] On Behalf Of Sergey 
> Beryozkin
> Sent: Wednesday, March 15, 2017 8:46 AM
> To: oauth@ietf.org
> Subject: Re: [OAUTH-WG] More Criticism of JOSE
> 
> and everyone should now start using the most secure alternative 
> proposed in that very light in analysis article :-)
> 
> Sergey
> On 15/03/17 15:43, Mike Schwartz wrote:
>> Sorry to be the bearer of bad news, but here's a negative review of JOSE:
>> 
>> JOSE (Javascript Object Signing and Encryption) is a Bad Standard 
>> That Everyone Should Avoid
>> 
>> https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-bad-standar
>> d
>> -that-everyone-should-avoid
>> 
>> 
>> - Mike
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth