[Webpush] Suggestion regarding curve validation in draft-ietf-webpush-encryption

Peter Beverloo <beverloo@google.com> Thu, 11 May 2017 19:03 UTC

Return-Path: <beverloo@google.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A9010131465 for <webpush@ietfa.amsl.com>; Thu, 11 May 2017 12:03:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 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, 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=google.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 mj0QibLgWwyb for <webpush@ietfa.amsl.com>; Thu, 11 May 2017 12:03:39 -0700 (PDT)
Received: from mail-yw0-x229.google.com (mail-yw0-x229.google.com [IPv6:2607:f8b0:4002:c05::229]) (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 505841242F5 for <webpush@ietf.org>; Thu, 11 May 2017 11:57:22 -0700 (PDT)
Received: by mail-yw0-x229.google.com with SMTP id l135so963651ywb.2 for <webpush@ietf.org>; Thu, 11 May 2017 11:57:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=V4Ahl1NmEwqV6xj8ntZiHsW3qW0pprhd8tGxnYhU6vw=; b=pqFtU1NP6e6xdPjIgJdG8FbuzWt7qsUNBytoAmIVWl5/ecaUkHhqG98NLeD8xatP1N 9JdF8uKvSnLFosjt2PrN3a3DB0okJ0LajD3TIqMf1KA1Mitq947CyzQFUbcsr+YTdAb7 rAsQkP08irO59z3Ax1k6xf4CgQua4tJVSPxgUcrsw7gCNrvs4N7xGYP17QBnTnXM1I2A 1mx31e0dbp6XoTIt9M15DZvH/daP5P8IPDAYqUbSbiOpb9mjV0KeChamcaEQevVRWy22 WzbXv+HfsP06JPgRnPqOBsoriABVrjt0GZAbRLi2wq7f6eIf+Snh8afHHO1vHTq9rFM1 id/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=V4Ahl1NmEwqV6xj8ntZiHsW3qW0pprhd8tGxnYhU6vw=; b=du52FKt2Xff03pHXCKssSLj7TC1YCya4gViTbQo9DmCIb9qUE7FfxcB4WgHOT8/HkZ zf5uRFH8Dd5lyR6tI+P99CyVGo5b9KqPBZnC8IIhHhEpMlQjnNNmcer/1b/+phmbBFC4 c3YeAzw/GRvG4blBe4H0Be73bS7Fjy87xNQesQJyhRUKt5MG+aT2q7T74JXEFH8E45CT AQ1Yl/td/I7G42hY0FZMmii8bbAd0GXR9uBKJMyZp5I8klR6O4IstI585lUP+5vJp72J uUiVg0TzESFb9lHXlzBZE0Ok2xJP9A5/9E7MfqsLoBAJxF5/sD4d42/O/oZJqUKj+QQU O60w==
X-Gm-Message-State: AODbwcCyLrzGlOc0VyyB+3u0QZX8crbi3/Txpj8ZqZdC2VTUaAH3uqR0 eRqs3fTNPKJp5tePJa2dseZHFOlIuQfd
X-Received: by 10.129.177.72 with SMTP id p69mr32896ywh.184.1494529041470; Thu, 11 May 2017 11:57:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.26.1 with HTTP; Thu, 11 May 2017 11:57:21 -0700 (PDT)
From: Peter Beverloo <beverloo@google.com>
Date: Thu, 11 May 2017 19:57:21 +0100
Message-ID: <CALt3x6n5vzKp1bnRs9son=X-7JvH4L08RRRVipKNzxaOLfW80Q@mail.gmail.com>
To: "webpush@ietf.org" <webpush@ietf.org>, Martin Thomson <martin.thomson@gmail.com>
Cc: Quan Nguyen <quannguyen@google.com>
Content-Type: multipart/alternative; boundary="94eb2c13cddca01d9a054f44289c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/webpush/Lld0a8uRGD5T5pkJDSN4gdvqBGw>
Subject: [Webpush] Suggestion regarding curve validation in draft-ietf-webpush-encryption
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 May 2017 19:03:42 -0000

Relaying for Quan Nguyen (cc'd):

      I would suggest adding a section about verifying peer's public key
      is on the private key's curve in ECDH protocol. Without this check,
      for the curve that they use P-256, it would allow attacker to
      extract the private key.

Thanks,
Peter