Re: [TLS] Cookie reuse subsequent connections

Eric Rescorla <ekr@rtfm.com> Mon, 30 October 2017 11:42 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6680013F660 for <tls@ietfa.amsl.com>; Mon, 30 Oct 2017 04:42:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-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 6COe4Uhg1hVK for <tls@ietfa.amsl.com>; Mon, 30 Oct 2017 04:42:21 -0700 (PDT)
Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (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 5FC691397F9 for <tls@ietf.org>; Mon, 30 Oct 2017 04:42:21 -0700 (PDT)
Received: by mail-yw0-x22d.google.com with SMTP id j4so11242894ywb.2 for <tls@ietf.org>; Mon, 30 Oct 2017 04:42:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9XUMi3aTI6Irg5kN73kjLpX3CPDj7bxASVAq1uO59RA=; b=ZTF/5wEcLgPB7k3NyWVof7xi7hynPW6n4Kqx8vqhcW6isJo4j9r8eoRb4yVhru0rw6 Cwb/bS0YDQrlgrvI6edAgqB61/iTgGZqbXIIshFH2/OuXfHhJka79CWEn5NGRPaRUxaX l7V5Yk2950/4z5GiHpSpqCHotyqC8SYr2XpILTF6+vovm2QOYG48KmYHUDWxEl9FY7dF QcAj2Cy5XThWIj/gCI1j4s/jtlofPoRFAZex+8/a1hz0LFSIQRfkdo4Hl88ISuvaYHgl kYFWAUT2EuWSyBCAtqOWxFj+pyp/hEnG3SfNgf7m9sUSS+JhwjYY53DZZhoRsxPfePz1 gSZg==
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=9XUMi3aTI6Irg5kN73kjLpX3CPDj7bxASVAq1uO59RA=; b=AoLc1QdVM4iCTWIOuxz4pdQ3QVdghkmpjBGbWkMhEVHrMERcqalSLl4w9KuYkatZMu 5szQMOreOIStmUcOr6EinZgnf9+GpX3L3XXj91IA78lnHIvnNqRHRgkL0gujLaunJWDj Bb/FODwwRGBd8IeaACTBFjHEsB7PGvAyvqJw8qfiE5AYu0mZwv6J4rexeqVFdCv5pWvT Zm00lU9TGrZwt4e9ar6XB9j3RqLlgTYDhUUwvfPyjfRKkX8RVExEyJ9bP/H9D2fM8bWx XoXRng1XEVs3jIoHORvFlVCPNj/sz0JPBRag/6Ff3RVxSbZlfeYjcJ/sQXiHV3vi7Ew/ 1tyg==
X-Gm-Message-State: AMCzsaUMMJ702krMiyEWPqfG0r9Jlb0Rc3eqknYWnSN/Wq3EL9Bqzrup VyaGLhI7/1o3WE9qNPqBipZYGQ136MTESmcgcTqiyg==
X-Google-Smtp-Source: ABhQp+RBAFHI2xdpq/ug61D8nhcEcMd33g7ZGtFoFPv51GmxYIQippaDsPWmFJ6DPcy96Aroqs7RPZykP0mUXdSAEog=
X-Received: by 10.37.44.141 with SMTP id s135mr5379392ybs.400.1509363740556; Mon, 30 Oct 2017 04:42:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.75.194 with HTTP; Mon, 30 Oct 2017 04:41:39 -0700 (PDT)
In-Reply-To: <CA+tEvRQovU=4NHwbm17Wubo1My5vdbH5hG-jjVMCZWPDUMEp7Q@mail.gmail.com>
References: <CA+tEvRTBGj0JwQVh66DiFQhrYXdV2h0zOTzAE5MS-yykHe3dLw@mail.gmail.com> <CABkgnnWPGomdhb8+t1P5jhR5XV+4CKFRRHHExZ=FcHPieM-WkA@mail.gmail.com> <CA+tEvRQovU=4NHwbm17Wubo1My5vdbH5hG-jjVMCZWPDUMEp7Q@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 30 Oct 2017 04:41:39 -0700
Message-ID: <CABcZeBOp=Ui=8E=Sqxx4t+WJa=ZUE49i32v1NVzQpPiS40Q4Rg@mail.gmail.com>
To: Jānis Čoders <janis.coders@gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "tls@ietf.org" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="001a11431c6497f06f055cc22175"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/J4eOnBuEFZ1mqjOCoEkJ9JVzlzo>
Subject: Re: [TLS] Cookie reuse subsequent connections
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Oct 2017 11:42:23 -0000

It's a privacy leak.

-Ekr


On Mon, Oct 30, 2017 at 2:51 AM, Jānis Čoders <janis.coders@gmail.com>
wrote:

> Thank you. Ok, I understand that some servers could not allow reuse of
> cookie, but why is it FORBIDDEN by standard? It could be suggested to
> not reuse in general cases, but if I wanted to use TLS 1.3 with my
> custom server, which uses cookies to only prevent spoofing attacks (in
> UDP (DTLS) case). And clients know that they can reuse previous
> cookies for fast handshake, then why would it be prohibited?
>
> On 30 October 2017 at 11:31, Martin Thomson <martin.thomson@gmail.com>
> wrote:
> > What is most likely to happen is that the cookie will be invalid and
> > the connection will be rejected.
> >
> > Many TLS servers assume that presence of a cookie means that they
> > previously sent a HelloRetryRequest on that connection.  For instance,
> > NSS packs a hash of the original ClientHello into the cookie so that
> > it can restore the handshake transcript.  Reusing the cookie will just
> > lead to the server restoring the handshake transcript from the wrong
> > handshake.  And that's even assuming that it accepts the cookie in the
> > first place.
> >
> > On Mon, Oct 30, 2017 at 6:07 PM, Jānis Čoders <janis.coders@gmail.com>
> wrote:
> >> Hi, is there ANY security issue with reusing Cookie from previous TLS
> >> connection? In current draft there is text: "Clients MUST NOT use
> >> cookies in their initial ClientHello in subsequent connections." I
> >> can't think of any security implication, but can think of situations
> >> where it could be useful.
> >>
> >> --
> >> Ar cieņu,
> >> Jānis Čoders
> >>
> >> _______________________________________________
> >> TLS mailing list
> >> TLS@ietf.org
> >> https://www.ietf.org/mailman/listinfo/tls
>
>
>
> --
> Ar cieņu,
> Jānis Čoders
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>