
From nobody Thu Feb  9 02:39:41 2017
Return-Path: <asanso@adobe.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 55A5D129972 for <jose@ietfa.amsl.com>; Thu,  9 Feb 2017 02:39:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.888
X-Spam-Level: 
X-Spam-Status: No, score=-3.888 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=-1.887, 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=adobe.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 GUX-kS-wOKad for <jose@ietfa.amsl.com>; Thu,  9 Feb 2017 02:39:38 -0800 (PST)
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0063.outbound.protection.outlook.com [104.47.40.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D424129970 for <jose@ietf.org>; Thu,  9 Feb 2017 02:39:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eVghJUoGD21HQxSml8jRpoTiVXuGAkpqmvszsLnuhs0=; b=kNcQgdspRC9DqqXzNIqb5XuVXsjLyFwAHoWXWMkzkMqsW1G0ionjCt6fBbWRh2vwqzfsUA5/DAcP7UhbWur66taN2/bBEwPsns3GGuZgTQIEgwvq14TwnmU/cxO5Ab8eQ1ITkNerXILYivplGDYeJKjlppOFgQL/OqyYzCrdjIE=
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com (10.161.203.148) by BY1PR0201MB1029.namprd02.prod.outlook.com (10.161.203.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 9 Feb 2017 10:39:37 +0000
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) by BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) with mapi id 15.01.0888.026; Thu, 9 Feb 2017 10:39:37 +0000
From: Antonio Sanso <asanso@adobe.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: Use of ECDH-ES in JWE 
Thread-Index: AQHSgsDPoQk+ME/+VEGhScUUvt0P5g==
Date: Thu, 9 Feb 2017 10:39:37 +0000
Message-ID: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.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=asanso@adobe.com; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [192.147.117.11]
x-ms-office365-filtering-correlation-id: d0ae1906-01e3-42b2-5a12-08d450d7f1dd
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BY1PR0201MB1029; 
x-microsoft-exchange-diagnostics: 1; BY1PR0201MB1029; 7:0Qb/wC/nxtVsb5AGB34T9HS9nGDGrz+wLm+X46a6n0qBoUgyeAdgN0HNY5XW2ZhZv7AavXsEOspv2U5qndbDRzi9BjBbKIPApAe8TTBgeWifZArf12Uc+1ESyWbUuj+XdE9l4CaNc1anDvWG1xObX4EGpfKuYdavrVlbxkEyzTC3du+8TFnJMSKw+5rSx+YsAMs5bG2fXydnJYYonHV7JIti5EOIPuEy3ZBLYvNjxBcuA3WeMSeaZOlJoGc1XXlTb+U6TPomQb4XBT+wBPnFtZM0QbZmkGVOtuaqPjO4xiA69QFoihZIxztoDt+VTV4y+ZXB4YHWO3H8N+4PUbvS/bavqdhyOV2sgA5zHjg/RGx07+MvaLCpehU/GipnULNrHuhSRLafHRQW2yyXuC4g1oGk9TRN1BGxGgk2VL7oaOHOnN6kXgiYWgyseKNNRie8KVrVAWommWcxwrXxIKPjo6CyvRf9ApNhzJTbcoCkf9IjWM6/KRFxbvFB9W6Bt7qJAKLkCBus9shoSuocm+oNOw==; 20:HBYu0dMsXbaT9xkFyk2Q1ZlsGY6SBygCydtctfLUMylBOELdi/JdaT1prbm7NjDwtWoLsNTF6o6ui4JaV/GWlVSzervo7wV/b8SufgoURhpXKSflV++UWp8mOQlcpZPMk4axsMukkg1nw0HndHgYVQeEnL3ZZoiRSFca9TpCuLs=
x-microsoft-antispam-prvs: <BY1PR0201MB1029FF43DF34170B215FFD15D9450@BY1PR0201MB1029.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(20161123560025)(6072148); SRVR:BY1PR0201MB1029; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0201MB1029; 
x-forefront-prvs: 02135EB356
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39840400002)(39450400003)(39850400002)(39860400002)(39410400002)(199003)(189002)(53754006)(2501003)(83716003)(66066001)(10090500001)(7736002)(5660300001)(101416001)(450100001)(92566002)(86362001)(122556002)(82746002)(53936002)(6506006)(6486002)(2906002)(33656002)(50986999)(54356999)(6306002)(77096006)(6512007)(305945005)(3660700001)(5640700003)(99286003)(25786008)(38730400002)(6436002)(110136004)(106356001)(106116001)(3280700002)(6916009)(81166006)(1730700003)(81156014)(8676002)(8936002)(97736004)(36756003)(105586002)(2900100001)(3846002)(6116002)(102836003)(68736007)(2351001)(189998001)(104396002)(579124003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0201MB1029; H:BY1PR0201MB1030.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-ID: <D4A6949570B46A45B0DC76C466D1A472@namprd02.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2017 10:39:37.0727 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB1029
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/oGme8BaRErp8qN3PK1gMEBnq2t4>
Subject: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Feb 2017 10:39:40 -0000

hi all,

this mail is highly inspired from a research done by Quan Nguyen [0].

As he discovered and mention in his talk there is an high chance the JOSE l=
ibraries implementing ECDH-ES in JWE are vulnerable to invalid curve attack=
.
Now I read the JWA spec and I did not find any mention that the  ephemeral =
public key contained in the message should be validate in order to be on th=
e curve.
Did I miss this advice in the spec or is it just missing? If it is not clea=
r enough the outcome of the attack will be the attacker completely recover =
the private static key of the receiver.
Quan already found a pretty well known JOSE library vulnerable to it. So di=
d I.

WDYT?

regards

antonio

[0] https://research.google.com/pubs/pub45790.html
[1] https://tools.ietf.org/html/rfc7518=


From nobody Sun Feb 12 22:42:26 2017
Return-Path: <vladimir@connect2id.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 98F31129553 for <jose@ietfa.amsl.com>; Sun, 12 Feb 2017 22:42:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level: 
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 idTurTqaIKRV for <jose@ietfa.amsl.com>; Sun, 12 Feb 2017 22:42:23 -0800 (PST)
Received: from p3plsmtpa11-07.prod.phx3.secureserver.net (p3plsmtpa11-07.prod.phx3.secureserver.net [68.178.252.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 51C44129550 for <jose@ietf.org>; Sun, 12 Feb 2017 22:42:23 -0800 (PST)
Received: from [192.168.8.104] ([185.4.80.2]) by :SMTPAUTH: with SMTP id dAKbcrM3RdGAjdAKccso5k; Sun, 12 Feb 2017 23:41:52 -0700
To: jose@ietf.org
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com>
From: Vladimir Dzhuvinov <vladimir@connect2id.com>
Organization: Connect2id Ltd.
Message-ID: <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com>
Date: Mon, 13 Feb 2017 08:41:48 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms030905040808040308010501"
X-CMAE-Envelope: MS4wfItKH7yH4T2cXkSOKvqOq0pzvdgIDm26EXZWfzlbzJz1KlzVmxBLjLiCodW938DuMGeEMt8S8RSN53jg0BGFNPja27h+cLDYHwr8W2WQle8YobBHmpuc AyQqMgAVy04o3mvG+lHh3DP+yJFpsAgyp4B8FeWC9JJZPzAJvGepJmDw
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/hB8vYaAUTHUNbSCe8btG869ZY5Y>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Feb 2017 06:42:24 -0000

This is a cryptographically signed message in MIME format.

--------------ms030905040808040308010501
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Antonio,

Thank you for making us aware of this.

I just checked the ECDH-ES section in JWA, and the curve check
apparently hasn't been mentioned:

https://tools.ietf.org/html/rfc7518#section-4.6

It's not in the security considerations either:

https://tools.ietf.org/html/rfc7518#section-8


Vladimir

On 09/02/17 12:39, Antonio Sanso wrote:
> hi all,
>
> this mail is highly inspired from a research done by Quan Nguyen [0].
>
> As he discovered and mention in his talk there is an high chance the JO=
SE libraries implementing ECDH-ES in JWE are vulnerable to invalid curve =
attack.
> Now I read the JWA spec and I did not find any mention that the  epheme=
ral public key contained in the message should be validate in order to be=
 on the curve.
> Did I miss this advice in the spec or is it just missing? If it is not =
clear enough the outcome of the attack will be the attacker completely re=
cover the private static key of the receiver.
> Quan already found a pretty well known JOSE library vulnerable to it. S=
o did I.
>
> WDYT?
>
> regards
>
> antonio
>
> [0] https://research.google.com/pubs/pub45790.html
> [1] https://tools.ietf.org/html/rfc7518
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose



--------------ms030905040808040308010501
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CfwwggSvMIIDl6ADAgECAhEA4CPLFRKDU4mtYW56VGdrITANBgkqhkiG9w0BAQsFADBvMQsw
CQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4
dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290
MB4XDTE0MTIyMjAwMDAwMFoXDTIwMDUzMDEwNDgzOFowgZsxCzAJBgNVBAYTAkdCMRswGQYD
VQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNP
TU9ETyBDQSBMaW1pdGVkMUEwPwYDVQQDEzhDT01PRE8gU0h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R0LJ7WGs98v0NylSxNBY6
qhNBtG0QhdDZZ1TPzEjB8i+9UGP0fqOxE8JhqTBKLpdXfkZ731uW39Q6O6WKusa+BY91qqou
LRtGqo0rR9YQLs5dX7NTGZ6jIwV6rJEj5rNZewPlaj/rpvDwRp+cQ/PZcGkLglg3+G2FM37K
mEWaipefmixfHZ+QutL5R/PE0eR2f1R/4g0m2zp/8hf+HTnw5bdXaO2AyFWNSUUBdwRUXcSL
OSJCIbPIush+UE8Wpt4RNAvy2V6RvZ86SKsGVwp6ZBHyAAAAAAAA
--------------ms030905040808040308010501--


From nobody Mon Feb 13 02:57:57 2017
Return-Path: <asanso@adobe.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D0EFD129440 for <jose@ietfa.amsl.com>; Mon, 13 Feb 2017 02:57:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.021
X-Spam-Level: 
X-Spam-Status: No, score=-2.021 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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=adobe.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 lrtQJ8kZd2RM for <jose@ietfa.amsl.com>; Mon, 13 Feb 2017 02:57:53 -0800 (PST)
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0083.outbound.protection.outlook.com [104.47.36.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37ECC127076 for <jose@ietf.org>; Mon, 13 Feb 2017 02:57:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wrbj2RVhE6gP35VbDlGIFZUDw7MWGo77CwTzd5cU92c=; b=Wkcbo3XXkjGAdLvab1UMAtSymlt8NXxW1muBBDTz5a0om7E4zfAvH8Et/Uk1o5of3qVaX6fKE7mHVk2/M4yNDgD96Rnrj+0j4XiOwoGaFUn8IJ31p6RrYIDx74vpEoTg3wH0oC8WszCFz/ioXOOXise0HG5XH0RA01BUvTV64e4=
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com (10.161.203.148) by BY1PR0201MB1030.namprd02.prod.outlook.com (10.161.203.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 13 Feb 2017 10:57:51 +0000
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) by BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) with mapi id 15.01.0888.030; Mon, 13 Feb 2017 10:57:51 +0000
From: Antonio Sanso <asanso@adobe.com>
To: Vladimir Dzhuvinov <vladimir@connect2id.com>
Thread-Topic: [jose] Use of ECDH-ES in JWE
Thread-Index: AQHSgsDPoQk+ME/+VEGhScUUvt0P5qFmgv4AgABHsQA=
Date: Mon, 13 Feb 2017 10:57:50 +0000
Message-ID: <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com>
In-Reply-To: <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.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=asanso@adobe.com; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [192.147.117.11]
x-ms-office365-filtering-correlation-id: 5c42421b-1631-4224-795f-08d453ff2788
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BY1PR0201MB1030; 
x-microsoft-exchange-diagnostics: 1; BY1PR0201MB1030; 7:68LJ+RogAmazAP3YbsILqwFyfyhRKVt91/DPYmhMo4og2/0CkXVEprVpVgNpC+M+KPQBHXCfPTW0jLWHn5mqEE8QW4f4b3swLIz/5HK9SebZjAhIVuWSPQCRBblqpNAnszIudHLGF3KHGgrAEchwT91Sg/Fzbrlb9vM/VDkgZqsBTZytA5QBnSzDFSWUU5ddH18PfRYxRX9m/oLcZKXWFcOMrBNVMlZTL20hvDBlbXowg1XHdHqbn7iItJKsi7u1J4k4hDLGKpi6XMOHfn13OJyVSYOHbiwELvVKc/ism53HFq9mdX0YCgVac0Bc1wotv2xt1KSvew+0gFYv3eO6hEZrkzKZAtIGV7HCuBi4wjPJnUH8ePDA/U6zgfxYJ2Hmp58DX+z5Kr7Qgn85m+dzAWD8wppp9ZWwb6TB7bdksP6f6nXMpuzqZhXdVzb46GpPTcITCjPJExvZXS4rEoZk88g/6hwArC8LUDjULBK9GTbgmXqfJ3EPVqasqgP62LFHezRhs4eLOFVNj8nfM9FQbA==; 20:d36LO621tf/f3dYRPxf0EZx3Wsm7nj/80qkdgexPd1rMV1OErV2BbJQRUukbH8/t73KaiFb88CnHROg3tgMYVpedfLNwvtswPttUxpcPzti5pNRARXJAZjR6OcoyIQ4sIvS0o/VUzbPXvWlxqcTAilGVplOKM1oXbThqRlg9+0A=
x-microsoft-antispam-prvs: <BY1PR0201MB10301BB3DFBBD064B6536F32D9590@BY1PR0201MB1030.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(211936372134217);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(20161123562025)(6072148)(6042181); SRVR:BY1PR0201MB1030; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0201MB1030; 
x-forefront-prvs: 02176E2458
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(24454002)(199003)(189002)(377454003)(53754006)(50986999)(76176999)(189998001)(10090500001)(54356999)(36756003)(53546003)(53936002)(33656002)(6246003)(106116001)(105586002)(106356001)(3660700001)(305945005)(3280700002)(7736002)(101416001)(110136004)(38730400002)(92566002)(2900100001)(3846002)(82746002)(6116002)(2906002)(8676002)(102836003)(25786008)(6506006)(66066001)(77096006)(6486002)(122556002)(229853002)(6306002)(4326007)(8936002)(83716003)(6916009)(6512007)(68736007)(2950100002)(86362001)(345774005)(81156014)(81166006)(5660300001)(6436002)(97736004)(99286003)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0201MB1030; H:BY1PR0201MB1030.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <8D34FDFEE40DE34C92C2DBB57C1387D4@namprd02.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2017 10:57:50.8491 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB1030
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/NH330YoYPQNgm8lzHuGR1lVAyQY>
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Feb 2017 10:57:56 -0000

hi Vladimir,

thanks a lot for taking the time and verifying.
I really think it should be mentioned somewhere.
The problem is that Elliptic Curves are over the head of many people/develo=
per and it should be at least=20
some reference on the JOSE spec about defending against this attack.
Said that I have so far reviewed 3 implementations and all 3 were somehow v=
ulnerable. And counting=85.

regards

antonio

On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov <vladimir@connect2id.com> w=
rote:

> Hi Antonio,
>=20
> Thank you for making us aware of this.
>=20
> I just checked the ECDH-ES section in JWA, and the curve check
> apparently hasn't been mentioned:
>=20
> https://tools.ietf.org/html/rfc7518#section-4.6
>=20
> It's not in the security considerations either:
>=20
> https://tools.ietf.org/html/rfc7518#section-8
>=20
>=20
> Vladimir
>=20
> On 09/02/17 12:39, Antonio Sanso wrote:
>> hi all,
>>=20
>> this mail is highly inspired from a research done by Quan Nguyen [0].
>>=20
>> As he discovered and mention in his talk there is an high chance the JOS=
E libraries implementing ECDH-ES in JWE are vulnerable to invalid curve att=
ack.
>> Now I read the JWA spec and I did not find any mention that the  ephemer=
al public key contained in the message should be validate in order to be on=
 the curve.
>> Did I miss this advice in the spec or is it just missing? If it is not c=
lear enough the outcome of the attack will be the attacker completely recov=
er the private static key of the receiver.
>> Quan already found a pretty well known JOSE library vulnerable to it. So=
 did I.
>>=20
>> WDYT?
>>=20
>> regards
>>=20
>> antonio
>>=20
>> [0] https://research.google.com/pubs/pub45790.html
>> [1] https://tools.ietf.org/html/rfc7518
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>=20
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From nobody Mon Feb 13 07:34:45 2017
Return-Path: <ve7jtb@ve7jtb.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A9361296D5 for <jose@ietfa.amsl.com>; Mon, 13 Feb 2017 07:34:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ve7jtb-com.20150623.gappssmtp.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 GBiKh060HrSm for <jose@ietfa.amsl.com>; Mon, 13 Feb 2017 07:34:35 -0800 (PST)
Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E275B1296E5 for <jose@ietf.org>; Mon, 13 Feb 2017 07:34:34 -0800 (PST)
Received: by mail-qt0-x235.google.com with SMTP id v23so86277456qtb.0 for <jose@ietf.org>; Mon, 13 Feb 2017 07:34:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ve7jtb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=7DIQusudBhaGzu5rV95rQiWXVXnkPKiaprIlmYqHciM=; b=AIjnZbapdSC93fQgXrYiGpQH0MgZSMgU56kIDUQJtFx0eVx565Mw8wPbrDdtenFfrP 09XVWOtgpO7hoMlSkA43vMbgp0B6cAfObTB/41Vylq8SCftz7BfdmxWE/gRjJwhEh7iZ f3SlMdkfMZU2EvDi/ZqXZGBOHdLJn0DZQJGT762aH/LE1yuYaU5e0YIHFChO8TgMmI1v DxofciL9CRR95yFF2JQWmMc7ydZaoLb1P2MTOn9qYuyBqJwZQaiTMlgk4jBV5Zz0Fmou 7uRtfcF0+UFxBwENUIUjyV6kf0LhFBQKd5m1V7vDiNeHyanp/VqUFmKwSyTpPZ/lmYHC p6RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=7DIQusudBhaGzu5rV95rQiWXVXnkPKiaprIlmYqHciM=; b=TgaoBWTMsoNLwHJWg1LIq861eUwwsqwfL/8kTXLrwlv5XS5eD5uVdjszG3DJrGLUx9 K0lOtbiqEx4hNinqwpy17utFwL9yyX1wU+4Dn+IC+UzL3/hjRbPFJPLzR1DcxF77Z4bL l1RdmU0MF3zZmBg888DFPCvY6DKHU0gl124MFFw7V9VZkWWCEQqQ1fVRVpvcgLa/FrIx k+AlR54xEHjTNVVtT0BUs7QY5CD0Q1U9+9ZetcLJG5gvc3ergZ0oSvfi+Vm3BqQWmQOO fD1q3Bgje4UWtFo6BeA7kt02A5zL/k1v7+/vHHSFse+K7U9zLxqQON9+jtBc3lKMhD1S laPA==
X-Gm-Message-State: AMke39m2BuYHr6u0QXf2s59H4/ZNcgST/KvQIokjiayS5EiJk5O+WYukPG63vdJECRaudHko
X-Received: by 10.200.50.18 with SMTP id x18mr23672348qta.58.1487000073941; Mon, 13 Feb 2017 07:34:33 -0800 (PST)
Received: from [192.168.86.130] ([191.115.241.136]) by smtp.gmail.com with ESMTPSA id u54sm7716166qtu.35.2017.02.13.07.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 07:34:33 -0800 (PST)
Content-Type: multipart/signed; boundary="Apple-Mail=_F597234D-4F24-4948-B7A7-846DFFF2F74B"; protocol="application/pkcs7-signature"; micalg=sha1
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com>
Date: Mon, 13 Feb 2017 12:34:28 -0300
Message-Id: <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com> <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com>
To: Antonio Sanso <asanso@adobe.com>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/kHbH3i0SC8C3sed0W5u_sJn_wMk>
Cc: "jose@ietf.org" <jose@ietf.org>, Vladimir Dzhuvinov <vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Feb 2017 15:34:37 -0000

--Apple-Mail=_F597234D-4F24-4948-B7A7-846DFFF2F74B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

An errata is possible.   There is no way to update the original RFC.

The problem tends to be that most developers miss the errata when =
reading specs if they ever look at the specs at all.

We probably also need a more direct way to communicate this to library =
developers as well.

In the OIDF we are talking about developing a certification for JOSE/JWT =
libraries like we have for overall server implementations.

John B.


> On Feb 13, 2017, at 7:57 AM, Antonio Sanso <asanso@adobe.com> wrote:
>=20
> hi Vladimir,
>=20
> thanks a lot for taking the time and verifying.
> I really think it should be mentioned somewhere.
> The problem is that Elliptic Curves are over the head of many =
people/developer and it should be at least=20
> some reference on the JOSE spec about defending against this attack.
> Said that I have so far reviewed 3 implementations and all 3 were =
somehow vulnerable. And counting=E2=80=A6.
>=20
> regards
>=20
> antonio
>=20
> On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov =
<vladimir@connect2id.com> wrote:
>=20
>> Hi Antonio,
>>=20
>> Thank you for making us aware of this.
>>=20
>> I just checked the ECDH-ES section in JWA, and the curve check
>> apparently hasn't been mentioned:
>>=20
>> https://tools.ietf.org/html/rfc7518#section-4.6
>>=20
>> It's not in the security considerations either:
>>=20
>> https://tools.ietf.org/html/rfc7518#section-8
>>=20
>>=20
>> Vladimir
>>=20
>> On 09/02/17 12:39, Antonio Sanso wrote:
>>> hi all,
>>>=20
>>> this mail is highly inspired from a research done by Quan Nguyen =
[0].
>>>=20
>>> As he discovered and mention in his talk there is an high chance the =
JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid =
curve attack.
>>> Now I read the JWA spec and I did not find any mention that the  =
ephemeral public key contained in the message should be validate in =
order to be on the curve.
>>> Did I miss this advice in the spec or is it just missing? If it is =
not clear enough the outcome of the attack will be the attacker =
completely recover the private static key of the receiver.
>>> Quan already found a pretty well known JOSE library vulnerable to =
it. So did I.
>>>=20
>>> WDYT?
>>>=20
>>> regards
>>>=20
>>> antonio
>>>=20
>>> [0] https://research.google.com/pubs/pub45790.html
>>> [1] https://tools.ietf.org/html/rfc7518
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org
>>> https://www.ietf.org/mailman/listinfo/jose
>>=20
>>=20
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--Apple-Mail=_F597234D-4F24-4948-B7A7-846DFFF2F74B
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILMTCCBUcw
ggQvoAMCAQICEEAfBHP+tuqufC4R+F+Tu54wDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAyIENsaWVudCBDQTAeFw0xNjA4MTIy
MTE5NDFaFw0xODA4MTIyMTE5NDFaMIGCMQswCQYDVQQGEwJDTDEiMCAGA1UECAwZTWV0cm9wb2xp
dGFuYSBkZSBTYW50aWFnbzEWMBQGA1UEBwwNSXNsYSBkZSBNYWlwbzEVMBMGA1UEAwwMSm9obiBC
cmFkbGV5MSAwHgYJKoZIhvcNAQkBFhF2ZTdqdGJAdmU3anRiLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBALhTcSiDGvVrm4hlJA8WyFcWWe0dqnuJzstQYTaF281JFOEPA/13kQYI
JMXAEUcS7NvW7KdUI0tH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i4vTR6F3LbqPdLTTLbWgldE9
2bir7REeKTaODZHkqVOPng+Y+0DvLcOJtOXMDsJhLO/8sYNnrGHmqQ8xDatg3y0VmiqXc10KOfL7
BCc/6mI4zTDWlBKBQECqj7U3bvima7u+8iqFRudAtbP3R6ZYB5YHb9VrUjm+Cwsp0dRhTGR+S5Kc
FBe3sX0AAAAAAAA=
--Apple-Mail=_F597234D-4F24-4948-B7A7-846DFFF2F74B--


From nobody Tue Feb 21 12:23:48 2017
Return-Path: <bcampbell@pingidentity.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 46004129537 for <jose@ietfa.amsl.com>; Tue, 21 Feb 2017 12:23:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=pingidentity.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 lbjTryk3iAvI for <jose@ietfa.amsl.com>; Tue, 21 Feb 2017 12:23:45 -0800 (PST)
Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 03E4E129705 for <jose@ietf.org>; Tue, 21 Feb 2017 12:23:45 -0800 (PST)
Received: by mail-yw0-x22b.google.com with SMTP id l19so69926901ywc.2 for <jose@ietf.org>; Tue, 21 Feb 2017 12:23:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=gmail; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0KFCgEZCnbYLkSD9vm3eE7u4RgX5zRoHvm6MKkIhKGk=; b=lB18Sf4cAxA2Y0NuKUfhGho4/makj5jPRjR+njZRt32tJTaLXonEgFNq9bem1ks0rG bA6RJxhzXWbOCw67Ienl5YtKKSeem2h0UskBSQk1hDuJ9wTJNceOudwaWBA7rJsURlUB KEufHhjHc1OOWxk4CVu8xlELGSpWZC41uMqRM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0KFCgEZCnbYLkSD9vm3eE7u4RgX5zRoHvm6MKkIhKGk=; b=llThQhq51re3FyV+byuWLBlFU+RoW3DojKpaHskQdOA/pTk4zOzNQMpPc3Z3L1H2HV BKGkNljV1kkhd10ICU8PUADh1y28Z8+brWmfCNFmmVdiWX1krt5WI14/ZP3LVy9pJhG4 wMtyZiHooHWhLPy94W5AEKv3NGBI4Hve8DkcqeNPL+c7wDzF8rIREFKYtkUIv8Jy4OWO +mJAFVPbnuBsBcPoTMCCVTgSrpR8HpIpv5DwuyjbyO409OvFxm2yfTORg6lVrONkarxt 0XBh5Zo2IKMjyeeHrnEucCJq2r6tqqUlyJfnb9w2s7HgYupbbJPbRWyAV7cIr5PMwjLw Fxjg==
X-Gm-Message-State: AMke39lbFMGKK4QHKd+i56/HUOHY5n1q44/yqwEh8mB9nrIR2D4+BSdQfuAHhehMMMEscsJaJ0VUPpTCvZ7TqJEA
X-Received: by 10.129.98.70 with SMTP id w67mr21276074ywb.184.1487708624117; Tue, 21 Feb 2017 12:23:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.126.131 with HTTP; Tue, 21 Feb 2017 12:23:13 -0800 (PST)
In-Reply-To: <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com> <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com> <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Tue, 21 Feb 2017 13:23:13 -0700
Message-ID: <CA+k3eCRVzLHhKfrgdDBgCFs_Q9Lt4-6cKXA-eU3wMzaa4O7QBw@mail.gmail.com>
To: John Bradley <ve7jtb@ve7jtb.com>
Content-Type: multipart/alternative; boundary=001a11471bae128079054910289c
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/rBvoBBzw161tcSUqa6h5Q_tKm-Q>
Cc: Antonio Sanso <asanso@adobe.com>, "jose@ietf.org" <jose@ietf.org>, Vladimir Dzhuvinov <vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Feb 2017 20:23:47 -0000

--001a11471bae128079054910289c
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

This seems similar in nature to some of the security consideration advice
in JWE https://tools.ietf.org/html/rfc7516#section-11.4 and
https://tools.ietf.org/html/rfc7516#section-11.5 and JWA
https://tools.ietf.org/html/rfc7518#section-8.3 and
https://tools.ietf.org/html/rfc7518#section-8.4 that an average implementer
(like myself) would very likely not be aware of unless some attention is
called to it.

The point about people missing the errata is totally legit. But in the
absence of some other way to convey it, perhaps it'd be better to have it
written down as errata than not at all? Maybe Antonio would be the one to
submit an errata for RFC 7518 https://www.rfc-editor.org/errata.php ?

Certification for JOSE/JWT libraries sounds interesting. Having an errata
for this would serve as a reminder for at least one negative test that
should be done in that, if/when it comes to pass.

On Mon, Feb 13, 2017 at 8:34 AM, John Bradley <ve7jtb@ve7jtb.com> wrote:

> An errata is possible.   There is no way to update the original RFC.
>
> The problem tends to be that most developers miss the errata when reading
> specs if they ever look at the specs at all.
>
> We probably also need a more direct way to communicate this to library
> developers as well.
>
> In the OIDF we are talking about developing a certification for JOSE/JWT
> libraries like we have for overall server implementations.
>
> John B.
>
>
> > On Feb 13, 2017, at 7:57 AM, Antonio Sanso <asanso@adobe.com> wrote:
> >
> > hi Vladimir,
> >
> > thanks a lot for taking the time and verifying.
> > I really think it should be mentioned somewhere.
> > The problem is that Elliptic Curves are over the head of many
> people/developer and it should be at least
> > some reference on the JOSE spec about defending against this attack.
> > Said that I have so far reviewed 3 implementations and all 3 were
> somehow vulnerable. And counting=E2=80=A6.
> >
> > regards
> >
> > antonio
> >
> > On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov <vladimir@connect2id.co=
m>
> wrote:
> >
> >> Hi Antonio,
> >>
> >> Thank you for making us aware of this.
> >>
> >> I just checked the ECDH-ES section in JWA, and the curve check
> >> apparently hasn't been mentioned:
> >>
> >> https://tools.ietf.org/html/rfc7518#section-4.6
> >>
> >> It's not in the security considerations either:
> >>
> >> https://tools.ietf.org/html/rfc7518#section-8
> >>
> >>
> >> Vladimir
> >>
> >> On 09/02/17 12:39, Antonio Sanso wrote:
> >>> hi all,
> >>>
> >>> this mail is highly inspired from a research done by Quan Nguyen [0].
> >>>
> >>> As he discovered and mention in his talk there is an high chance the
> JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid curv=
e
> attack.
> >>> Now I read the JWA spec and I did not find any mention that the
> ephemeral public key contained in the message should be validate in order
> to be on the curve.
> >>> Did I miss this advice in the spec or is it just missing? If it is no=
t
> clear enough the outcome of the attack will be the attacker completely
> recover the private static key of the receiver.
> >>> Quan already found a pretty well known JOSE library vulnerable to it.
> So did I.
> >>>
> >>> WDYT?
> >>>
> >>> regards
> >>>
> >>> antonio
> >>>
> >>> [0] https://research.google.com/pubs/pub45790.html
> >>> [1] https://tools.ietf.org/html/rfc7518
> >>> _______________________________________________
> >>> jose mailing list
> >>> jose@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/jose
> >>
> >>
> >> _______________________________________________
> >> jose mailing list
> >> jose@ietf.org
> >> https://www.ietf.org/mailman/listinfo/jose
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>

--001a11471bae128079054910289c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>This seems similar in nature to some of the security =
consideration advice in JWE <a href=3D"https://tools.ietf.org/html/rfc7516#=
section-11.4">https://tools.ietf.org/html/rfc7516#section-11.4</a> and <a h=
ref=3D"https://tools.ietf.org/html/rfc7516#section-11.5">https://tools.ietf=
.org/html/rfc7516#section-11.5</a> and JWA <a href=3D"https://tools.ietf.or=
g/html/rfc7518#section-8.3">https://tools.ietf.org/html/rfc7518#section-8.3=
</a> and <a href=3D"https://tools.ietf.org/html/rfc7518#section-8.4">https:=
//tools.ietf.org/html/rfc7518#section-8.4</a> that an average implementer (=
like myself) would very likely not be aware of unless some attention is cal=
led to it.<br><br></div>The point about people missing the errata is totall=
y legit. But in the absence of some other way to convey it, perhaps it&#39;=
d be better to have it written down as errata than not at all? Maybe Antoni=
o would be the one to submit an errata for RFC 7518 <a href=3D"https://www.=
rfc-editor.org/errata.php">https://www.rfc-editor.org/errata.php</a> ?<br><=
br>Certification for JOSE/JWT libraries  sounds interesting. Having an erra=
ta for this would serve as a reminder for at least one negative test that s=
hould be done in that, if/when it comes to pass. <br></div><div class=3D"gm=
ail_extra"><br><div class=3D"gmail_quote">On Mon, Feb 13, 2017 at 8:34 AM, =
John Bradley <span dir=3D"ltr">&lt;<a href=3D"mailto:ve7jtb@ve7jtb.com" tar=
get=3D"_blank">ve7jtb@ve7jtb.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">An errata is possible.=C2=A0 =C2=A0There is no way to update =
the original RFC.<br>
<br>
The problem tends to be that most developers miss the errata when reading s=
pecs if they ever look at the specs at all.<br>
<br>
We probably also need a more direct way to communicate this to library deve=
lopers as well.<br>
<br>
In the OIDF we are talking about developing a certification for JOSE/JWT li=
braries like we have for overall server implementations.<br>
<br>
John B.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
&gt; On Feb 13, 2017, at 7:57 AM, Antonio Sanso &lt;<a href=3D"mailto:asans=
o@adobe.com">asanso@adobe.com</a>&gt; wrote:<br>
&gt;<br>
&gt; hi Vladimir,<br>
&gt;<br>
&gt; thanks a lot for taking the time and verifying.<br>
&gt; I really think it should be mentioned somewhere.<br>
&gt; The problem is that Elliptic Curves are over the head of many people/d=
eveloper and it should be at least<br>
&gt; some reference on the JOSE spec about defending against this attack.<b=
r>
&gt; Said that I have so far reviewed 3 implementations and all 3 were some=
how vulnerable. And counting=E2=80=A6.<br>
&gt;<br>
&gt; regards<br>
&gt;<br>
&gt; antonio<br>
&gt;<br>
&gt; On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov &lt;<a href=3D"mailto:=
vladimir@connect2id.com">vladimir@connect2id.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi Antonio,<br>
&gt;&gt;<br>
&gt;&gt; Thank you for making us aware of this.<br>
&gt;&gt;<br>
&gt;&gt; I just checked the ECDH-ES section in JWA, and the curve check<br>
&gt;&gt; apparently hasn&#39;t been mentioned:<br>
&gt;&gt;<br>
&gt;&gt; <a href=3D"https://tools.ietf.org/html/rfc7518#section-4.6" rel=3D=
"noreferrer" target=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7518#sec=
tion-4.6</a><br>
&gt;&gt;<br>
&gt;&gt; It&#39;s not in the security considerations either:<br>
&gt;&gt;<br>
&gt;&gt; <a href=3D"https://tools.ietf.org/html/rfc7518#section-8" rel=3D"n=
oreferrer" target=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7518#secti=
on-8</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Vladimir<br>
&gt;&gt;<br>
&gt;&gt; On 09/02/17 12:39, Antonio Sanso wrote:<br>
&gt;&gt;&gt; hi all,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; this mail is highly inspired from a research done by Quan Nguy=
en [0].<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; As he discovered and mention in his talk there is an high chan=
ce the JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid=
 curve attack.<br>
&gt;&gt;&gt; Now I read the JWA spec and I did not find any mention that th=
e=C2=A0 ephemeral public key contained in the message should be validate in=
 order to be on the curve.<br>
&gt;&gt;&gt; Did I miss this advice in the spec or is it just missing? If i=
t is not clear enough the outcome of the attack will be the attacker comple=
tely recover the private static key of the receiver.<br>
&gt;&gt;&gt; Quan already found a pretty well known JOSE library vulnerable=
 to it. So did I.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; WDYT?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; regards<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; antonio<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [0] <a href=3D"https://research.google.com/pubs/pub45790.html"=
 rel=3D"noreferrer" target=3D"_blank">https://research.google.com/<wbr>pubs=
/pub45790.html</a><br>
&gt;&gt;&gt; [1] <a href=3D"https://tools.ietf.org/html/rfc7518" rel=3D"nor=
eferrer" target=3D"_blank">https://tools.ietf.org/html/<wbr>rfc7518</a><br>
&gt;&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt; jose mailing list<br>
&gt;&gt;&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt;&gt;&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" rel=3D"=
noreferrer" target=3D"_blank">https://www.ietf.org/mailman/<wbr>listinfo/jo=
se</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; jose mailing list<br>
&gt;&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt;&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" rel=3D"nore=
ferrer" target=3D"_blank">https://www.ietf.org/mailman/<wbr>listinfo/jose</=
a><br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; jose mailing list<br>
&gt; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" rel=3D"noreferr=
er" target=3D"_blank">https://www.ietf.org/mailman/<wbr>listinfo/jose</a><b=
r>
<br>
</div></div><br>______________________________<wbr>_________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/<wbr>listinfo/jose</a><br>
<br></blockquote></div><br></div>

--001a11471bae128079054910289c--


From nobody Tue Feb 21 19:33:44 2017
Return-Path: <ietf@augustcellars.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD8C8129538 for <jose@ietfa.amsl.com>; Tue, 21 Feb 2017 19:33:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level: 
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=augustcellars.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 ypxZxX2DHLJP for <jose@ietfa.amsl.com>; Tue, 21 Feb 2017 19:33:40 -0800 (PST)
Received: from mail4.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E66F129560 for <jose@ietf.org>; Tue, 21 Feb 2017 19:33:40 -0800 (PST)
Content-Type: multipart/alternative; boundary="----=_NextPart_000_03BF_01D28C79.4C6B0820"
Content-Language: en-us
DKIM-Signature: v=1; a=rsa-sha256; d=augustcellars.com; s=winery; c=simple/simple; t=1487734417; h=from:subject:to:date:message-id; bh=jC3HaKfMW/MgkEYkd+XAYJM18w5INAC6ISublvqseX4=; b=hMJ33bGRThXt0MVOYcEaKNZhb6pFImhhjlMGmzpHmPwI4KbrgaKbMjaGyy60pPIgHlYVPn6rSHG oa4J3iHhSDipvFcqijA2OVpKy+ZLoO9SyFSSF0xR5bhen66EOLAm8QAxcrYiihX7T7sDNE2mLFait E14BZh2VsBN9M4dXjhVuTGQ8x+qugruZgqbJZw9Y9jZfuQOpmsavCZRNQsWByLoYhhxlAjq3RG26t 6nhZxLf887fnifVuqBRdh/g8VhWQqWrNaIik5WUGdJTGmxqXpKjUXVdoY0ZeIAjJoLHC7QI/QPvFC sn5QdGdI0ggXC/dhfNfq9SsbBQswVBLky/Iw==
Received: from mail2.augustcellars.com (192.168.1.201) by mail4.augustcellars.com (192.168.1.153) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 21 Feb 2017 19:33:36 -0800
Received: from hebrews (24.21.96.37) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 21 Feb 2017 19:31:22 -0800
From: Jim Schaad <ietf@augustcellars.com>
To: 'Brian Campbell' <bcampbell@pingidentity.com>, 'John Bradley' <ve7jtb@ve7jtb.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com> <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com> <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com> <CA+k3eCRVzLHhKfrgdDBgCFs_Q9Lt4-6cKXA-eU3wMzaa4O7QBw@mail.gmail.com>
In-Reply-To: <CA+k3eCRVzLHhKfrgdDBgCFs_Q9Lt4-6cKXA-eU3wMzaa4O7QBw@mail.gmail.com>
Date: Tue, 21 Feb 2017 19:32:49 -0800
Message-ID: <03be01d28cbc$5a8aecc0$0fa0c640$@augustcellars.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQEOtRYAR38569LYKMnuGCxXT/A/RwIWlxfDAb9zTloBgQpM0wI58RhJor89BQA=
X-Originating-IP: [24.21.96.37]
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/abAecwaVxg4Mj4Kw1qmR6_6SBao>
Cc: 'Antonio Sanso' <asanso@adobe.com>, jose@ietf.org, 'Vladimir Dzhuvinov' <vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 22 Feb 2017 03:33:43 -0000

------=_NextPart_000_03BF_01D28C79.4C6B0820
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I would welcome an errata even for the people that might miss it from =
reading the documents.  If nothing else, it gives us some hints about =
what things need to be dealt with in the (presumably) next revisions of =
the documents.

=20

Jim

=20

=20

From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Brian Campbell
Sent: Tuesday, February 21, 2017 12:23 PM
To: John Bradley <ve7jtb@ve7jtb.com>
Cc: Antonio Sanso <asanso@adobe.com>; jose@ietf.org; Vladimir Dzhuvinov =
<vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE

=20

This seems similar in nature to some of the security consideration =
advice in JWE https://tools.ietf.org/html/rfc7516#section-11.4 and =
https://tools.ietf.org/html/rfc7516#section-11.5 and JWA =
https://tools.ietf.org/html/rfc7518#section-8.3 and =
https://tools.ietf.org/html/rfc7518#section-8.4 that an average =
implementer (like myself) would very likely not be aware of unless some =
attention is called to it.

The point about people missing the errata is totally legit. But in the =
absence of some other way to convey it, perhaps it'd be better to have =
it written down as errata than not at all? Maybe Antonio would be the =
one to submit an errata for RFC 7518 =
https://www.rfc-editor.org/errata.php ?

Certification for JOSE/JWT libraries sounds interesting. Having an =
errata for this would serve as a reminder for at least one negative test =
that should be done in that, if/when it comes to pass.=20

=20

On Mon, Feb 13, 2017 at 8:34 AM, John Bradley <ve7jtb@ve7jtb.com =
<mailto:ve7jtb@ve7jtb.com> > wrote:

An errata is possible.   There is no way to update the original RFC.

The problem tends to be that most developers miss the errata when =
reading specs if they ever look at the specs at all.

We probably also need a more direct way to communicate this to library =
developers as well.

In the OIDF we are talking about developing a certification for JOSE/JWT =
libraries like we have for overall server implementations.

John B.



> On Feb 13, 2017, at 7:57 AM, Antonio Sanso <asanso@adobe.com =
<mailto:asanso@adobe.com> > wrote:
>
> hi Vladimir,
>
> thanks a lot for taking the time and verifying.
> I really think it should be mentioned somewhere.
> The problem is that Elliptic Curves are over the head of many =
people/developer and it should be at least
> some reference on the JOSE spec about defending against this attack.
> Said that I have so far reviewed 3 implementations and all 3 were =
somehow vulnerable. And counting=E2=80=A6.
>
> regards
>
> antonio
>
> On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov =
<vladimir@connect2id.com <mailto:vladimir@connect2id.com> > wrote:
>
>> Hi Antonio,
>>
>> Thank you for making us aware of this.
>>
>> I just checked the ECDH-ES section in JWA, and the curve check
>> apparently hasn't been mentioned:
>>
>> https://tools.ietf.org/html/rfc7518#section-4.6
>>
>> It's not in the security considerations either:
>>
>> https://tools.ietf.org/html/rfc7518#section-8
>>
>>
>> Vladimir
>>
>> On 09/02/17 12:39, Antonio Sanso wrote:
>>> hi all,
>>>
>>> this mail is highly inspired from a research done by Quan Nguyen =
[0].
>>>
>>> As he discovered and mention in his talk there is an high chance the =
JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid =
curve attack.
>>> Now I read the JWA spec and I did not find any mention that the  =
ephemeral public key contained in the message should be validate in =
order to be on the curve.
>>> Did I miss this advice in the spec or is it just missing? If it is =
not clear enough the outcome of the attack will be the attacker =
completely recover the private static key of the receiver.
>>> Quan already found a pretty well known JOSE library vulnerable to =
it. So did I.
>>>
>>> WDYT?
>>>
>>> regards
>>>
>>> antonio
>>>
>>> [0] https://research.google.com/pubs/pub45790.html
>>> [1] https://tools.ietf.org/html/rfc7518
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org <mailto:jose@ietf.org>=20
>>> https://www.ietf.org/mailman/listinfo/jose
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org <mailto:jose@ietf.org>=20
>> https://www.ietf.org/mailman/listinfo/jose
>
> _______________________________________________
> jose mailing list
> jose@ietf.org <mailto:jose@ietf.org>=20
> https://www.ietf.org/mailman/listinfo/jose


_______________________________________________
jose mailing list
jose@ietf.org <mailto:jose@ietf.org>=20
https://www.ietf.org/mailman/listinfo/jose

=20


------=_NextPart_000_03BF_01D28C79.4C6B0820
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>I would =
welcome an errata even for the people that might miss it from reading =
the documents.=C2=A0 If nothing else, it gives us some hints about what =
things need to be dealt with in the (presumably) next revisions of the =
documents.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>Jim<o:p></o:p=
></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p>&nbsp;</=
o:p></span></p><div style=3D'border:none;border-left:solid blue =
1.5pt;padding:0in 0in 0in 4.0pt'><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span><=
/b><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
jose [mailto:jose-bounces@ietf.org] <b>On Behalf Of </b>Brian =
Campbell<br><b>Sent:</b> Tuesday, February 21, 2017 12:23 =
PM<br><b>To:</b> John Bradley &lt;ve7jtb@ve7jtb.com&gt;<br><b>Cc:</b> =
Antonio Sanso &lt;asanso@adobe.com&gt;; jose@ietf.org; Vladimir =
Dzhuvinov &lt;vladimir@connect2id.com&gt;<br><b>Subject:</b> Re: [jose] =
Use of ECDH-ES in JWE<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>This seems similar in nature to some of =
the security consideration advice in JWE <a =
href=3D"https://tools.ietf.org/html/rfc7516#section-11.4">https://tools.i=
etf.org/html/rfc7516#section-11.4</a> and <a =
href=3D"https://tools.ietf.org/html/rfc7516#section-11.5">https://tools.i=
etf.org/html/rfc7516#section-11.5</a> and JWA <a =
href=3D"https://tools.ietf.org/html/rfc7518#section-8.3">https://tools.ie=
tf.org/html/rfc7518#section-8.3</a> and <a =
href=3D"https://tools.ietf.org/html/rfc7518#section-8.4">https://tools.ie=
tf.org/html/rfc7518#section-8.4</a> that an average implementer (like =
myself) would very likely not be aware of unless some attention is =
called to it.<o:p></o:p></p></div><p class=3DMsoNormal>The point about =
people missing the errata is totally legit. But in the absence of some =
other way to convey it, perhaps it'd be better to have it written down =
as errata than not at all? Maybe Antonio would be the one to submit an =
errata for RFC 7518 <a =
href=3D"https://www.rfc-editor.org/errata.php">https://www.rfc-editor.org=
/errata.php</a> ?<br><br>Certification for JOSE/JWT libraries sounds =
interesting. Having an errata for this would serve as a reminder for at =
least one negative test that should be done in that, if/when it comes to =
pass. <o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Mon, =
Feb 13, 2017 at 8:34 AM, John Bradley &lt;<a =
href=3D"mailto:ve7jtb@ve7jtb.com" =
target=3D"_blank">ve7jtb@ve7jtb.com</a>&gt; =
wrote:<o:p></o:p></p><blockquote style=3D'border:none;border-left:solid =
#CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><p class=3DMsoNormal>An errata =
is possible.&nbsp; &nbsp;There is no way to update the original =
RFC.<br><br>The problem tends to be that most developers miss the errata =
when reading specs if they ever look at the specs at all.<br><br>We =
probably also need a more direct way to communicate this to library =
developers as well.<br><br>In the OIDF we are talking about developing a =
certification for JOSE/JWT libraries like we have for overall server =
implementations.<br><br>John B.<o:p></o:p></p><div><div><p =
class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br><br>&gt; On Feb 13, =
2017, at 7:57 AM, Antonio Sanso &lt;<a =
href=3D"mailto:asanso@adobe.com">asanso@adobe.com</a>&gt; =
wrote:<br>&gt;<br>&gt; hi Vladimir,<br>&gt;<br>&gt; thanks a lot for =
taking the time and verifying.<br>&gt; I really think it should be =
mentioned somewhere.<br>&gt; The problem is that Elliptic Curves are =
over the head of many people/developer and it should be at least<br>&gt; =
some reference on the JOSE spec about defending against this =
attack.<br>&gt; Said that I have so far reviewed 3 implementations and =
all 3 were somehow vulnerable. And counting=E2=80=A6.<br>&gt;<br>&gt; =
regards<br>&gt;<br>&gt; antonio<br>&gt;<br>&gt; On Feb 13, 2017, at 7:41 =
AM, Vladimir Dzhuvinov &lt;<a =
href=3D"mailto:vladimir@connect2id.com">vladimir@connect2id.com</a>&gt; =
wrote:<br>&gt;<br>&gt;&gt; Hi Antonio,<br>&gt;&gt;<br>&gt;&gt; Thank you =
for making us aware of this.<br>&gt;&gt;<br>&gt;&gt; I just checked the =
ECDH-ES section in JWA, and the curve check<br>&gt;&gt; apparently =
hasn't been mentioned:<br>&gt;&gt;<br>&gt;&gt; <a =
href=3D"https://tools.ietf.org/html/rfc7518#section-4.6" =
target=3D"_blank">https://tools.ietf.org/html/rfc7518#section-4.6</a><br>=
&gt;&gt;<br>&gt;&gt; It's not in the security considerations =
either:<br>&gt;&gt;<br>&gt;&gt; <a =
href=3D"https://tools.ietf.org/html/rfc7518#section-8" =
target=3D"_blank">https://tools.ietf.org/html/rfc7518#section-8</a><br>&g=
t;&gt;<br>&gt;&gt;<br>&gt;&gt; Vladimir<br>&gt;&gt;<br>&gt;&gt; On =
09/02/17 12:39, Antonio Sanso wrote:<br>&gt;&gt;&gt; hi =
all,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; this mail is highly inspired from a =
research done by Quan Nguyen [0].<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; As he =
discovered and mention in his talk there is an high chance the JOSE =
libraries implementing ECDH-ES in JWE are vulnerable to invalid curve =
attack.<br>&gt;&gt;&gt; Now I read the JWA spec and I did not find any =
mention that the&nbsp; ephemeral public key contained in the message =
should be validate in order to be on the curve.<br>&gt;&gt;&gt; Did I =
miss this advice in the spec or is it just missing? If it is not clear =
enough the outcome of the attack will be the attacker completely recover =
the private static key of the receiver.<br>&gt;&gt;&gt; Quan already =
found a pretty well known JOSE library vulnerable to it. So did =
I.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; WDYT?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; =
regards<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; =
antonio<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; [0] <a =
href=3D"https://research.google.com/pubs/pub45790.html" =
target=3D"_blank">https://research.google.com/pubs/pub45790.html</a><br>&=
gt;&gt;&gt; [1] <a href=3D"https://tools.ietf.org/html/rfc7518" =
target=3D"_blank">https://tools.ietf.org/html/rfc7518</a><br>&gt;&gt;&gt;=
 _______________________________________________<br>&gt;&gt;&gt; jose =
mailing list<br>&gt;&gt;&gt; <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt;&gt;&gt; <a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>&gt;&=
gt;<br>&gt;&gt;<br>&gt;&gt; =
_______________________________________________<br>&gt;&gt; jose mailing =
list<br>&gt;&gt; <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt;&gt; <a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>&gt;<=
br>&gt; _______________________________________________<br>&gt; jose =
mailing list<br>&gt; <a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>&gt; <a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><o:p></o:=
p></p></div></div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><br>______________________________________=
_________<br>jose mailing list<br><a =
href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br><a =
href=3D"https://www.ietf.org/mailman/listinfo/jose" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><o:p></o:=
p></p></blockquote></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>
------=_NextPart_000_03BF_01D28C79.4C6B0820--


From nobody Fri Feb 24 04:40:30 2017
Return-Path: <asanso@adobe.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 308321296ED for <jose@ietfa.amsl.com>; Fri, 24 Feb 2017 04:40:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.021
X-Spam-Level: 
X-Spam-Status: No, score=-2.021 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.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 y3MPm27hmfM1 for <jose@ietfa.amsl.com>; Fri, 24 Feb 2017 04:40:25 -0800 (PST)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0073.outbound.protection.outlook.com [104.47.37.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B19431296CD for <jose@ietf.org>; Fri, 24 Feb 2017 04:40:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HQRDYRdy9/OwteEONiixOz3bE6a4QumtCuOuAmyyvfM=; b=JmxTFQnr67u534tPxjvnNGBMjy/59v5Cl57l+1ycEAe6zdZ5A2tIS+QH+AwXTpPA/RSLU9CaVt8P17tnuUS8mX7ZmgfiU9eIvnFS48Ghs2gTMUnq3FHKxTzdBu787aDllw3H4CdeVHjRl752L+M+p/Z8mdmxBEj0T1isaLmeLB8=
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com (10.161.203.148) by BY1PR0201MB1029.namprd02.prod.outlook.com (10.161.203.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Fri, 24 Feb 2017 12:40:23 +0000
Received: from BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) by BY1PR0201MB1030.namprd02.prod.outlook.com ([10.161.203.148]) with mapi id 15.01.0919.018; Fri, 24 Feb 2017 12:40:23 +0000
From: Antonio Sanso <asanso@adobe.com>
To: Jim Schaad <ietf@augustcellars.com>
Thread-Topic: [jose] Use of ECDH-ES in JWE
Thread-Index: AQHSgsDPoQk+ME/+VEGhScUUvt0P5qFmgv4AgABHsQCAAE0iAIAM41SAgAB4B4CAA72mAA==
Date: Fri, 24 Feb 2017 12:40:23 +0000
Message-ID: <B96D47CA-F0B1-4E39-9900-1EE75875FEC7@adobe.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com> <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com> <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com> <CA+k3eCRVzLHhKfrgdDBgCFs_Q9Lt4-6cKXA-eU3wMzaa4O7QBw@mail.gmail.com> <03be01d28cbc$5a8aecc0$0fa0c640$@augustcellars.com>
In-Reply-To: <03be01d28cbc$5a8aecc0$0fa0c640$@augustcellars.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=asanso@adobe.com; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [192.147.117.11]
x-ms-office365-filtering-correlation-id: 7a28cf2d-aaeb-48db-6016-08d45cb24d35
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BY1PR0201MB1029; 
x-microsoft-exchange-diagnostics: 1; BY1PR0201MB1029; 7:GNuHeBoQmNNmuesmFrZlpWzc1TuU8uRuVHjGjZAMdSMJhgR/dEMS+zcPArP0wf0+QzymF/p5C5kGE+N2ppPLnY+gSZzchkCOTs19ndaCcEOBd4ubkqPr7vREiayG76A2uzFO5oCJIB5NOM7ROyz4UjWgLr1lqGY+q8aEVk4dVWbslR0puh/hcPxaHXPU6qJUEKamL5LeWQ0ENE2xEB4s2lD8Ouqe+pZD3YutmFm5ZFzMYdUpXX5waC3FB72Db0qs196/jikvEYt4bHiO1ML9SQOd0FFBHb1n5FswfoS20uFFzujMboOtKsmUqB9x/fHhmZKXsk4t3QgSQcqSkfe3GQ==; 20:8HgYKfocYpjVwD8z9hT/W8wSU8A1L87VkkR7rZ6lbuua+DoPZzd7a8JPVTVxUM9PqV9UaKixD5mHXOLtbse5UitZJTrpnF3j3ZMk4XLuq19GjpiSs1JeFgo07HrVi0IhX7Wb1vSFEFYP0Iqos5pbvtFPDEbyGWDqrpFkmw6KzbM=
x-microsoft-antispam-prvs: <BY1PR0201MB1029594342F9E70D432964DDD9520@BY1PR0201MB1029.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(192374486261705)(211936372134217); 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:BY1PR0201MB1029; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0201MB1029; 
x-forefront-prvs: 0228DDDDD7
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916002)(39840400002)(39850400002)(39450400003)(39860400002)(39410400002)(377454003)(189002)(53754006)(199003)(24454002)(2950100002)(6436002)(122556002)(53936002)(189998001)(66066001)(229853002)(6486002)(236005)(6512007)(6916009)(8936002)(82746002)(3660700001)(83716003)(6506006)(16799955002)(77096006)(3280700002)(7906003)(53546006)(606005)(25786008)(93886004)(7736002)(97736004)(101416001)(345774005)(6246003)(92566002)(6116002)(3846002)(5660300001)(4326007)(33656002)(102836003)(81156014)(81166006)(10090500001)(8676002)(54906002)(86362001)(54356999)(54896002)(6306002)(99286003)(50986999)(2906002)(76176999)(110136004)(38730400002)(106356001)(106116001)(2900100001)(105586002)(36756003)(68736007)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0201MB1029; H:BY1PR0201MB1030.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_B96D47CAF0B14E3999001EE75875FEC7adobecom_"
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2017 12:40:23.1277 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB1029
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/ywIhNatmUgJOBdKsImyfN-ufD8U>
Cc: John Bradley <ve7jtb@ve7jtb.com>, Brian Campbell <bcampbell@pingidentity.com>, "jose@ietf.org" <jose@ietf.org>, Vladimir Dzhuvinov <vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Feb 2017 12:40:28 -0000

--_000_B96D47CAF0B14E3999001EE75875FEC7adobecom_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Thanks a lot guys for the suggestions. I will take a stub so and submit an =
errata=85

regards

antonio

On Feb 22, 2017, at 4:32 AM, Jim Schaad <ietf@augustcellars.com<mailto:ietf=
@augustcellars.com>> wrote:

I would welcome an errata even for the people that might miss it from readi=
ng the documents.  If nothing else, it gives us some hints about what thing=
s need to be dealt with in the (presumably) next revisions of the documents=
.

Jim


From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Brian Campbell
Sent: Tuesday, February 21, 2017 12:23 PM
To: John Bradley <ve7jtb@ve7jtb.com<mailto:ve7jtb@ve7jtb.com>>
Cc: Antonio Sanso <asanso@adobe.com<mailto:asanso@adobe.com>>; jose@ietf.or=
g<mailto:jose@ietf.org>; Vladimir Dzhuvinov <vladimir@connect2id.com<mailto=
:vladimir@connect2id.com>>
Subject: Re: [jose] Use of ECDH-ES in JWE

This seems similar in nature to some of the security consideration advice i=
n JWE https://tools.ietf.org/html/rfc7516#section-11.4 and https://tools.ie=
tf.org/html/rfc7516#section-11.5 and JWA https://tools.ietf.org/html/rfc751=
8#section-8.3 and https://tools.ietf.org/html/rfc7518#section-8.4 that an a=
verage implementer (like myself) would very likely not be aware of unless s=
ome attention is called to it.
The point about people missing the errata is totally legit. But in the abse=
nce of some other way to convey it, perhaps it'd be better to have it writt=
en down as errata than not at all? Maybe Antonio would be the one to submit=
 an errata for RFC 7518 https://www.rfc-editor.org/errata.php ?

Certification for JOSE/JWT libraries sounds interesting. Having an errata f=
or this would serve as a reminder for at least one negative test that shoul=
d be done in that, if/when it comes to pass.

On Mon, Feb 13, 2017 at 8:34 AM, John Bradley <ve7jtb@ve7jtb.com<mailto:ve7=
jtb@ve7jtb.com>> wrote:
An errata is possible.   There is no way to update the original RFC.

The problem tends to be that most developers miss the errata when reading s=
pecs if they ever look at the specs at all.

We probably also need a more direct way to communicate this to library deve=
lopers as well.

In the OIDF we are talking about developing a certification for JOSE/JWT li=
braries like we have for overall server implementations.

John B.


> On Feb 13, 2017, at 7:57 AM, Antonio Sanso <asanso@adobe.com<mailto:asans=
o@adobe.com>> wrote:
>
> hi Vladimir,
>
> thanks a lot for taking the time and verifying.
> I really think it should be mentioned somewhere.
> The problem is that Elliptic Curves are over the head of many people/deve=
loper and it should be at least
> some reference on the JOSE spec about defending against this attack.
> Said that I have so far reviewed 3 implementations and all 3 were somehow=
 vulnerable. And counting=85.
>
> regards
>
> antonio
>
> On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov <vladimir@connect2id.com<=
mailto:vladimir@connect2id.com>> wrote:
>
>> Hi Antonio,
>>
>> Thank you for making us aware of this.
>>
>> I just checked the ECDH-ES section in JWA, and the curve check
>> apparently hasn't been mentioned:
>>
>> https://tools.ietf.org/html/rfc7518#section-4.6
>>
>> It's not in the security considerations either:
>>
>> https://tools.ietf.org/html/rfc7518#section-8
>>
>>
>> Vladimir
>>
>> On 09/02/17 12:39, Antonio Sanso wrote:
>>> hi all,
>>>
>>> this mail is highly inspired from a research done by Quan Nguyen [0].
>>>
>>> As he discovered and mention in his talk there is an high chance the JO=
SE libraries implementing ECDH-ES in JWE are vulnerable to invalid curve at=
tack.
>>> Now I read the JWA spec and I did not find any mention that the  epheme=
ral public key contained in the message should be validate in order to be o=
n the curve.
>>> Did I miss this advice in the spec or is it just missing? If it is not =
clear enough the outcome of the attack will be the attacker completely reco=
ver the private static key of the receiver.
>>> Quan already found a pretty well known JOSE library vulnerable to it. S=
o did I.
>>>
>>> WDYT?
>>>
>>> regards
>>>
>>> antonio
>>>
>>> [0] https://research.google.com/pubs/pub45790.html
>>> [1] https://tools.ietf.org/html/rfc7518
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org<mailto:jose@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/jose
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org<mailto:jose@ietf.org>
>> https://www.ietf.org/mailman/listinfo/jose
>
> _______________________________________________
> jose mailing list
> jose@ietf.org<mailto:jose@ietf.org>
> https://www.ietf.org/mailman/listinfo/jose

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


--_000_B96D47CAF0B14E3999001EE75875FEC7adobecom_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <CFE00D0EF890F34D9D4AB84E83665A2D@namprd02.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space;">
Thanks a lot guys for the suggestions. I will take a stub so and submit an =
errata=85
<div><br>
</div>
<div>regards</div>
<div><br>
</div>
<div>antonio</div>
<div><br>
<div>
<div>
<div>On Feb 22, 2017, at 4:32 AM, Jim Schaad &lt;<a href=3D"mailto:ietf@aug=
ustcellars.com">ietf@augustcellars.com</a>&gt; wrote:</div>
<br class=3D"Apple-interchange-newline">
<blockquote type=3D"cite">
<div lang=3D"EN-US" link=3D"blue" vlink=3D"purple" style=3D"font-family: He=
lvetica; font-size: 12px; font-style: normal; font-variant: normal; font-we=
ight: normal; letter-spacing: normal; line-height: normal; orphans: auto; t=
ext-align: start; text-indent: 0px; text-transform: none; white-space: norm=
al; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div class=3D"WordSection1" style=3D"page: WordSection1;">
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">I would =
welcome an errata even for the people that might miss it from reading the d=
ocuments.&nbsp; If nothing else, it gives us some hints about what things n=
eed to be dealt with in the (presumably)
 next revisions of the documents.<o:p></o:p></span></div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;</=
span></div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">Jim<o:p>=
</o:p></span></div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;</=
span></div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;</=
span></div>
<div style=3D"border-style: none none none solid; border-left-color: blue; =
border-left-width: 1.5pt; padding: 0in 0in 0in 4pt;">
<div>
<div style=3D"border-style: solid none none; border-top-color: rgb(225, 225=
, 225); border-top-width: 1pt; padding: 3pt 0in 0in;">
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<b><span style=3D"font-size: 11pt; font-family: Calibri, sans-serif;">From:=
</span></b><span style=3D"font-size: 11pt; font-family: Calibri, sans-serif=
;"><span class=3D"Apple-converted-space">&nbsp;</span>jose [<a href=3D"mail=
to:jose-bounces@ietf.org">mailto:jose-bounces@ietf.org</a>]<span class=3D"A=
pple-converted-space">&nbsp;</span><b>On
 Behalf Of<span class=3D"Apple-converted-space">&nbsp;</span></b>Brian Camp=
bell<br>
<b>Sent:</b><span class=3D"Apple-converted-space">&nbsp;</span>Tuesday, Feb=
ruary 21, 2017 12:23 PM<br>
<b>To:</b><span class=3D"Apple-converted-space">&nbsp;</span>John Bradley &=
lt;<a href=3D"mailto:ve7jtb@ve7jtb.com">ve7jtb@ve7jtb.com</a>&gt;<br>
<b>Cc:</b><span class=3D"Apple-converted-space">&nbsp;</span>Antonio Sanso =
&lt;<a href=3D"mailto:asanso@adobe.com">asanso@adobe.com</a>&gt;;
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a>; Vladimir Dzhuvinov &lt;=
<a href=3D"mailto:vladimir@connect2id.com">vladimir@connect2id.com</a>&gt;<=
br>
<b>Subject:</b><span class=3D"Apple-converted-space">&nbsp;</span>Re: [jose=
] Use of ECDH-ES in JWE<o:p></o:p></span></div>
</div>
</div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<o:p>&nbsp;</o:p></div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"margin: 0in 0in 12pt; font-size: 12pt; font=
-family: 'Times New Roman', serif;">
This seems similar in nature to some of the security consideration advice i=
n JWE<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https://=
tools.ietf.org/html/rfc7516#section-11.4" style=3D"color: purple; text-deco=
ration: underline;">https://tools.ietf.org/html/rfc7516#section-11.4</a><sp=
an class=3D"Apple-converted-space">&nbsp;</span>and<span class=3D"Apple-con=
verted-space">&nbsp;</span><a href=3D"https://tools.ietf.org/html/rfc7516#s=
ection-11.5" style=3D"color: purple; text-decoration: underline;">https://t=
ools.ietf.org/html/rfc7516#section-11.5</a><span class=3D"Apple-converted-s=
pace">&nbsp;</span>and
 JWA<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https://t=
ools.ietf.org/html/rfc7518#section-8.3" style=3D"color: purple; text-decora=
tion: underline;">https://tools.ietf.org/html/rfc7518#section-8.3</a><span =
class=3D"Apple-converted-space">&nbsp;</span>and<span class=3D"Apple-conver=
ted-space">&nbsp;</span><a href=3D"https://tools.ietf.org/html/rfc7518#sect=
ion-8.4" style=3D"color: purple; text-decoration: underline;">https://tools=
.ietf.org/html/rfc7518#section-8.4</a><span class=3D"Apple-converted-space"=
>&nbsp;</span>that
 an average implementer (like myself) would very likely not be aware of unl=
ess some attention is called to it.<o:p></o:p></p>
</div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
The point about people missing the errata is totally legit. But in the abse=
nce of some other way to convey it, perhaps it'd be better to have it writt=
en down as errata than not at all? Maybe Antonio would be the one to submit=
 an errata for RFC 7518<span class=3D"Apple-converted-space">&nbsp;</span><=
a href=3D"https://www.rfc-editor.org/errata.php" style=3D"color: purple; te=
xt-decoration: underline;">https://www.rfc-editor.org/errata.php</a><span c=
lass=3D"Apple-converted-space">&nbsp;</span>?<br>
<br>
Certification for JOSE/JWT libraries sounds interesting. Having an errata f=
or this would serve as a reminder for at least one negative test that shoul=
d be done in that, if/when it comes to pass.<o:p></o:p></div>
</div>
<div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
<o:p>&nbsp;</o:p></div>
<div>
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
On Mon, Feb 13, 2017 at 8:34 AM, John Bradley &lt;<a href=3D"mailto:ve7jtb@=
ve7jtb.com" target=3D"_blank" style=3D"color: purple; text-decoration: unde=
rline;">ve7jtb@ve7jtb.com</a>&gt; wrote:<o:p></o:p></div>
<blockquote style=3D"border-style: none none none solid; border-left-color:=
 rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; marg=
in-left: 4.8pt; margin-right: 0in;">
<div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Time=
s New Roman', serif;">
An errata is possible.&nbsp; &nbsp;There is no way to update the original R=
FC.<br>
<br>
The problem tends to be that most developers miss the errata when reading s=
pecs if they ever look at the specs at all.<br>
<br>
We probably also need a more direct way to communicate this to library deve=
lopers as well.<br>
<br>
In the OIDF we are talking about developing a certification for JOSE/JWT li=
braries like we have for overall server implementations.<br>
<br>
John B.<o:p></o:p></div>
<div>
<p class=3D"MsoNormal" style=3D"margin: 0in 0in 12pt; font-size: 12pt; font=
-family: 'Times New Roman', serif;">
<br>
<br>
&gt; On Feb 13, 2017, at 7:57 AM, Antonio Sanso &lt;<a href=3D"mailto:asans=
o@adobe.com" style=3D"color: purple; text-decoration: underline;">asanso@ad=
obe.com</a>&gt; wrote:<br>
&gt;<br>
&gt; hi Vladimir,<br>
&gt;<br>
&gt; thanks a lot for taking the time and verifying.<br>
&gt; I really think it should be mentioned somewhere.<br>
&gt; The problem is that Elliptic Curves are over the head of many people/d=
eveloper and it should be at least<br>
&gt; some reference on the JOSE spec about defending against this attack.<b=
r>
&gt; Said that I have so far reviewed 3 implementations and all 3 were some=
how vulnerable. And counting=85.<br>
&gt;<br>
&gt; regards<br>
&gt;<br>
&gt; antonio<br>
&gt;<br>
&gt; On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov &lt;<a href=3D"mailto:=
vladimir@connect2id.com" style=3D"color: purple; text-decoration: underline=
;">vladimir@connect2id.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi Antonio,<br>
&gt;&gt;<br>
&gt;&gt; Thank you for making us aware of this.<br>
&gt;&gt;<br>
&gt;&gt; I just checked the ECDH-ES section in JWA, and the curve check<br>
&gt;&gt; apparently hasn't been mentioned:<br>
&gt;&gt;<br>
&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https=
://tools.ietf.org/html/rfc7518#section-4.6" target=3D"_blank" style=3D"colo=
r: purple; text-decoration: underline;">https://tools.ietf.org/html/rfc7518=
#section-4.6</a><br>
&gt;&gt;<br>
&gt;&gt; It's not in the security considerations either:<br>
&gt;&gt;<br>
&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https=
://tools.ietf.org/html/rfc7518#section-8" target=3D"_blank" style=3D"color:=
 purple; text-decoration: underline;">https://tools.ietf.org/html/rfc7518#s=
ection-8</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Vladimir<br>
&gt;&gt;<br>
&gt;&gt; On 09/02/17 12:39, Antonio Sanso wrote:<br>
&gt;&gt;&gt; hi all,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; this mail is highly inspired from a research done by Quan Nguy=
en [0].<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; As he discovered and mention in his talk there is an high chan=
ce the JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid=
 curve attack.<br>
&gt;&gt;&gt; Now I read the JWA spec and I did not find any mention that th=
e&nbsp; ephemeral public key contained in the message should be validate in=
 order to be on the curve.<br>
&gt;&gt;&gt; Did I miss this advice in the spec or is it just missing? If i=
t is not clear enough the outcome of the attack will be the attacker comple=
tely recover the private static key of the receiver.<br>
&gt;&gt;&gt; Quan already found a pretty well known JOSE library vulnerable=
 to it. So did I.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; WDYT?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; regards<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; antonio<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [0]<span class=3D"Apple-converted-space">&nbsp;</span><a href=
=3D"https://research.google.com/pubs/pub45790.html" target=3D"_blank" style=
=3D"color: purple; text-decoration: underline;">https://research.google.com=
/pubs/pub45790.html</a><br>
&gt;&gt;&gt; [1]<span class=3D"Apple-converted-space">&nbsp;</span><a href=
=3D"https://tools.ietf.org/html/rfc7518" target=3D"_blank" style=3D"color: =
purple; text-decoration: underline;">https://tools.ietf.org/html/rfc7518</a=
><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; jose mailing list<br>
&gt;&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"m=
ailto:jose@ietf.org" style=3D"color: purple; text-decoration: underline;">j=
ose@ietf.org</a><br>
&gt;&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"h=
ttps://www.ietf.org/mailman/listinfo/jose" target=3D"_blank" style=3D"color=
: purple; text-decoration: underline;">https://www.ietf.org/mailman/listinf=
o/jose</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; jose mailing list<br>
&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"mailt=
o:jose@ietf.org" style=3D"color: purple; text-decoration: underline;">jose@=
ietf.org</a><br>
&gt;&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https=
://www.ietf.org/mailman/listinfo/jose" target=3D"_blank" style=3D"color: pu=
rple; text-decoration: underline;">https://www.ietf.org/mailman/listinfo/jo=
se</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; jose mailing list<br>
&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"mailto:jo=
se@ietf.org" style=3D"color: purple; text-decoration: underline;">jose@ietf=
.org</a><br>
&gt;<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https://w=
ww.ietf.org/mailman/listinfo/jose" target=3D"_blank" style=3D"color: purple=
; text-decoration: underline;">https://www.ietf.org/mailman/listinfo/jose</=
a><o:p></o:p></p>
</div>
<p class=3D"MsoNormal" style=3D"margin: 0in 0in 12pt; font-size: 12pt; font=
-family: 'Times New Roman', serif;">
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" style=3D"color: purple; text-decoration: u=
nderline;">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank" st=
yle=3D"color: purple; text-decoration: underline;">https://www.ietf.org/mai=
lman/listinfo/jose</a></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>

--_000_B96D47CAF0B14E3999001EE75875FEC7adobecom_--


From nobody Fri Feb 24 10:56:48 2017
Return-Path: <kathleen.moriarty.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 957391294CA for <jose@ietfa.amsl.com>; Fri, 24 Feb 2017 10:56:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ITBqaQfZdwsi for <jose@ietfa.amsl.com>; Fri, 24 Feb 2017 10:56:43 -0800 (PST)
Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CE19129486 for <jose@ietf.org>; Fri, 24 Feb 2017 10:56:43 -0800 (PST)
Received: by mail-qk0-x232.google.com with SMTP id x71so26368554qkb.3 for <jose@ietf.org>; Fri, 24 Feb 2017 10:56:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gLuoBL4tpebxplh8P7UtHR4+LFmP0A8NEuUheDy0tfE=; b=GT9TXaz2GUrWF/5Elhdsz58j8ZOnCM09m+vJlpUg5SEfNxbKaiHXlkvE8FrLUtG5lc RqYcVSI2x5DJj3NikXU0gdamhAtL71ViIt6wQBc8wreKK+4zE+K1+cDtL2ZEQxGU4Uyo CJTjP34CiaG6+X6oHriQnMChMoV2p6+gabqFfxanYisZCLwiwHYs7o3S8gtnPGd1WBIt c9UGG1yoDCt7hLlYbjAoXW1o1v+yN8kzIrZHxmbvfAQP0Ovq/MgwG3PZWgZ8xJULNR1n +XCxCiLsLomm3CDB0TGHn3dv9KX3xiE4YsDu5Ha9S3l1E1PZxWK47fB0ttdnHTGl9cVo xg7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gLuoBL4tpebxplh8P7UtHR4+LFmP0A8NEuUheDy0tfE=; b=E5xnAB3OJmg5y9inXh03mphL9dLdvzph0ZKkcz5a+HPVJn5GKXRzlKJuZeIW5mRn8P ULOBsZwTLKJJMxo/aU4d+d3j2Q2eBp8HR6Nqcc/NxP+aJJVFNFmwDTi6H1P9CMbVM5qA QlgLcvwycdxQpZzg6qve8QIX/WmZL4HjeohFeb1Kvyrnb5n/WJmaoMQLf5lQORql2KI0 /TGKCPCNQ6hENEVeqrYdduBrqFRU5V63ngy+p7JXfTi4SF9Gb7KXbqJIPasjZXz/xSKy e3t3ghrF1Om8Gfg3MlUVwokI4YqQ8POIzkGd030SAkJPuw7wnWODAaEEN0nXUvAR+bVg WWiQ==
X-Gm-Message-State: AMke39knmPRIqYy6sQ6Q0aQgzrdfB/KP8uv+pW/j6IP/IB78dmNpWxP8UJS3tYGip/bQ0i3+fY8VJaQ/c8qNyQ==
X-Received: by 10.55.104.135 with SMTP id d129mr4898735qkc.114.1487962602657;  Fri, 24 Feb 2017 10:56:42 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.170.77 with HTTP; Fri, 24 Feb 2017 10:56:42 -0800 (PST)
In-Reply-To: <B96D47CA-F0B1-4E39-9900-1EE75875FEC7@adobe.com>
References: <7465DFB4-1F4E-4C8C-9BF9-6534EEC0AB1D@adobe.com> <9f370d1c-8258-7fbe-fd46-f8a7c4786900@connect2id.com> <24F1FEB8-5416-431A-AB7B-AC5C4B1D6CD1@adobe.com> <9DD23B00-17B0-4364-A9E5-FD4AA21F3648@ve7jtb.com> <CA+k3eCRVzLHhKfrgdDBgCFs_Q9Lt4-6cKXA-eU3wMzaa4O7QBw@mail.gmail.com> <03be01d28cbc$5a8aecc0$0fa0c640$@augustcellars.com> <B96D47CA-F0B1-4E39-9900-1EE75875FEC7@adobe.com>
From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
Date: Fri, 24 Feb 2017 13:56:42 -0500
Message-ID: <CAHbuEH4fwNoFE=JkhfvnMg_rufPpSnTxbRiKvmOBgVdiiMXYKA@mail.gmail.com>
To: Antonio Sanso <asanso@adobe.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/emqvfT7SGbm8qUF9086W8vwr7Sc>
Cc: John Bradley <ve7jtb@ve7jtb.com>, Jim Schaad <ietf@augustcellars.com>, Brian Campbell <bcampbell@pingidentity.com>, "jose@ietf.org" <jose@ietf.org>, Vladimir Dzhuvinov <vladimir@connect2id.com>
Subject: Re: [jose] Use of ECDH-ES in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Feb 2017 18:56:45 -0000

On Fri, Feb 24, 2017 at 7:40 AM, Antonio Sanso <asanso@adobe.com> wrote:
> Thanks a lot guys for the suggestions. I will take a stub so and submit a=
n
> errata=E2=80=A6

Thank you.  List members - please review and I'll accept the errata
once language is agreed to.  I also think this is good for future
document updates.


>
> regards
>
> antonio
>
> On Feb 22, 2017, at 4:32 AM, Jim Schaad <ietf@augustcellars.com> wrote:
>
> I would welcome an errata even for the people that might miss it from
> reading the documents.  If nothing else, it gives us some hints about wha=
t
> things need to be dealt with in the (presumably) next revisions of the
> documents.
>
> Jim
>
>
> From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Brian Campbell
> Sent: Tuesday, February 21, 2017 12:23 PM
> To: John Bradley <ve7jtb@ve7jtb.com>
> Cc: Antonio Sanso <asanso@adobe.com>; jose@ietf.org; Vladimir Dzhuvinov
> <vladimir@connect2id.com>
> Subject: Re: [jose] Use of ECDH-ES in JWE
>
>
> This seems similar in nature to some of the security consideration advice=
 in
> JWE https://tools.ietf.org/html/rfc7516#section-11.4 and
> https://tools.ietf.org/html/rfc7516#section-11.5 and JWA
> https://tools.ietf.org/html/rfc7518#section-8.3 and
> https://tools.ietf.org/html/rfc7518#section-8.4 that an average implement=
er
> (like myself) would very likely not be aware of unless some attention is
> called to it.
>
> The point about people missing the errata is totally legit. But in the
> absence of some other way to convey it, perhaps it'd be better to have it
> written down as errata than not at all? Maybe Antonio would be the one to
> submit an errata for RFC 7518 https://www.rfc-editor.org/errata.php ?
>
> Certification for JOSE/JWT libraries sounds interesting. Having an errata
> for this would serve as a reminder for at least one negative test that
> should be done in that, if/when it comes to pass.
>
> On Mon, Feb 13, 2017 at 8:34 AM, John Bradley <ve7jtb@ve7jtb.com> wrote:
>
> An errata is possible.   There is no way to update the original RFC.
>
> The problem tends to be that most developers miss the errata when reading
> specs if they ever look at the specs at all.
>
> We probably also need a more direct way to communicate this to library
> developers as well.
>
> In the OIDF we are talking about developing a certification for JOSE/JWT
> libraries like we have for overall server implementations.
>
> John B.
>
>
>
>> On Feb 13, 2017, at 7:57 AM, Antonio Sanso <asanso@adobe.com> wrote:
>>
>> hi Vladimir,
>>
>> thanks a lot for taking the time and verifying.
>> I really think it should be mentioned somewhere.
>> The problem is that Elliptic Curves are over the head of many
>> people/developer and it should be at least
>> some reference on the JOSE spec about defending against this attack.
>> Said that I have so far reviewed 3 implementations and all 3 were someho=
w
>> vulnerable. And counting=E2=80=A6.
>>
>> regards
>>
>> antonio
>>
>> On Feb 13, 2017, at 7:41 AM, Vladimir Dzhuvinov <vladimir@connect2id.com=
>
>> wrote:
>>
>>> Hi Antonio,
>>>
>>> Thank you for making us aware of this.
>>>
>>> I just checked the ECDH-ES section in JWA, and the curve check
>>> apparently hasn't been mentioned:
>>>
>>> https://tools.ietf.org/html/rfc7518#section-4.6
>>>
>>> It's not in the security considerations either:
>>>
>>> https://tools.ietf.org/html/rfc7518#section-8
>>>
>>>
>>> Vladimir
>>>
>>> On 09/02/17 12:39, Antonio Sanso wrote:
>>>> hi all,
>>>>
>>>> this mail is highly inspired from a research done by Quan Nguyen [0].
>>>>
>>>> As he discovered and mention in his talk there is an high chance the
>>>> JOSE libraries implementing ECDH-ES in JWE are vulnerable to invalid c=
urve
>>>> attack.
>>>> Now I read the JWA spec and I did not find any mention that the
>>>> ephemeral public key contained in the message should be validate in or=
der to
>>>> be on the curve.
>>>> Did I miss this advice in the spec or is it just missing? If it is not
>>>> clear enough the outcome of the attack will be the attacker completely
>>>> recover the private static key of the receiver.
>>>> Quan already found a pretty well known JOSE library vulnerable to it. =
So
>>>> did I.
>>>>
>>>> WDYT?
>>>>
>>>> regards
>>>>
>>>> antonio
>>>>
>>>> [0] https://research.google.com/pubs/pub45790.html
>>>> [1] https://tools.ietf.org/html/rfc7518
>>>> _______________________________________________
>>>> jose mailing list
>>>> jose@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/jose
>>>
>>>
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org
>>> https://www.ietf.org/mailman/listinfo/jose
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>



--=20

Best regards,
Kathleen

