Re: [tcpm] Privacy problems of TCP Fast Open

Olivier Bonaventure <olivier.bonaventure@tessares.net> Wed, 22 May 2019 07:10 UTC

Return-Path: <olivier.bonaventure@tessares.net>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80B861200E6 for <tcpm@ietfa.amsl.com>; Wed, 22 May 2019 00:10:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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_NONE=-0.0001, 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=tessares-net.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 bI9xh7dvk-Dg for <tcpm@ietfa.amsl.com>; Wed, 22 May 2019 00:10:27 -0700 (PDT)
Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 CD50512008B for <tcpm@ietf.org>; Wed, 22 May 2019 00:10:26 -0700 (PDT)
Received: by mail-wm1-x334.google.com with SMTP id j187so962881wmj.1 for <tcpm@ietf.org>; Wed, 22 May 2019 00:10:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=N8K6Gxx+cNbdGAnF5T9JAdd1hDbVPqCelEHw4EKxIno=; b=zYxKhj0OUWNpiszMcq50CvdBoaSW4pPu9N89uXuPEtTSLAhto+8edCkIbGJPqaY/2E HNVEqMJWlfDp3ydJI6lSQ5IkhQT+AHVPlce5GA1qRXVgvWDMYBG6qlvzZ4KivJwVEb9q +DtzN/B4U9nfetOzhEw8QxHp1zmycYKbXcU/cy9mzYejJqSBuQJHLe8E/svv0dKoleDs 59UIEZncwTK/P8pd8XE70YfFtidWkQ3EOrJfdAOW0iTPweUxo2ihTRQ712PqIMgO6I74 WlvbjAFZk/Og0v0sVrv20/X7hF4i3+dWLYlmpojTbxHP68nDu6sVUsnjZaqLZxH+SzIh F9rg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=N8K6Gxx+cNbdGAnF5T9JAdd1hDbVPqCelEHw4EKxIno=; b=ezbPr3fYSZCHdEdBN+I3Ku61Gsn4ylqZoRXZjSQ9VHxptMm80cfIhi5bXx0YsG/Y9J 2FmsUDcjcAj0nVHZvxP/6EWf1Y7YX0rT0fzKqk5/wA19kg07gZDJZLkra7AzflIg6BFr LesX/up3RAgPk4PuLXvoKHGjZNcZgQI+aAzYD3J2bJk2v056wSOtH8/vgH7MxGYZpG3q /fTnqL91KMzGBoeqRtYaP0xGWathJCUEplIe2YsJ0dQo5pw+CQMoyFdz9wRStMv9ouFU ZxfDxydj+vA9WSFeL2EgzktAaj9SwuDV/alXF8aOyP3OMExiMRZ2JzhlsuFfAltwHMwx p+sw==
X-Gm-Message-State: APjAAAVNbeZnAi/5Zy/k63cDv6wC6U4BH56KQGTmLfleDtrIsej7Dzs0 oDll1HRqUtw6Y2vBD+mbwPmmzPxh4H/LLspTFjgXyUIqnnnKBctwnpKdipA9Vmoyc0kiM+5R
X-Google-Smtp-Source: APXvYqwpeCDWGJXy6Tvosr9EJPdU8M7O98YnpnEb7z8K5S5ZOSfgemcPTH+TW1t4XnzX9k5y7nljiA==
X-Received: by 2002:a05:600c:10ca:: with SMTP id l10mr6526051wmd.23.1558509024799; Wed, 22 May 2019 00:10:24 -0700 (PDT)
Received: from ?IPv6:2001:6a8:308f:2:473:d768:6978:2d29? ([2001:6a8:308f:2:473:d768:6978:2d29]) by smtp.gmail.com with ESMTPSA id t194sm8639851wmt.3.2019.05.22.00.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 00:10:23 -0700 (PDT)
From: Olivier Bonaventure <olivier.bonaventure@tessares.net>
Message-Id: <34AADC0D-B82C-4BD6-8A83-93749F350AAF@tessares.net>
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 22 May 2019 09:10:22 +0200
In-Reply-To: <9F56B293-307F-4CE8-BD10-117F792CF272@ifi.uio.no>
Cc: Brian Trammell <ietf@trammell.ch>, Michael Tuexen <michael.tuexen@lurchi.franken.de>, tcpm IETF list <tcpm@ietf.org>
To: Michael Welzl <michawe@ifi.uio.no>
References: <ba3887b6-1554-9a67-8834-4bb598cf18f0@informatik.uni-hamburg.de> <fd9f22b0-03ee-a1ef-ee97-02a93bf2648b@informatik.uni-hamburg.de> <4194EE28-DCDF-46A3-8D26-5920E55040FD@lurchi.franken.de> <4e151b52-cd6d-7145-4e0f-94c6f94eb20b@informatik.uni-hamburg.de> <7B148CBB-3D8A-4D29-BCA7-0B241E548D4E@ifi.uio.no> <491A06E5-1D3C-46BF-B682-FBFB9B752906@trammell.ch> <9F56B293-307F-4CE8-BD10-117F792CF272@ifi.uio.no>
X-Mailer: Apple Mail (2.3445.104.11)
Content-Type: multipart/alternative; boundary="Apple-Mail=_5F4E3698-3D92-43BD-B5CB-C78A3C0D069F"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/K30UywhUdcN90nW6rEU2ypxbtYg>
Subject: Re: [tcpm] Privacy problems of TCP Fast Open
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 22 May 2019 07:10:31 -0000

Michael, Brian,

>>> 
>>> 
>> 
>> You're correct to point out that 0RTT resumption is and will always remain special, not only due to the special requirements it places on applications but also for cryptographic reasons (0RTT cannot be made forward-secret, so data sent in 0RTT for TLS1.3 or QUIC has different cryptographic properties than the rest of the session). 
>> 
>> ISTM there are the following possibilities:
>> 
>> (1) Do nothing.
>> 
>> (1a) Do nothing, but issue guidance in an informational RFC notinf that TFO cookies are traceable, and should be avoided in the open Internet when 
>> 
>> (2) Deprecate TFO (and hope people who want 0RTT migrate to QUIC); explain the privacy reason behind the deprecation in the deprecated document.
>> 
>> (3) Update TFO to make TFO cookies optional, and explain the tradeoffs.
>> 
>> I would expect pushback on 2 or 3 from people running TFO on the Internet, because it requires coordinated implementation effort and changes the operational environment (which always carries risk).
> 
> Why would 3 require coordinated implementation effort?
> Just to make sure we’re on the same page, I’m proposing to allow handing over data from the SYN directly (with all the needed caveats and warnings), even when there’s no TFO option in place.

During the Prague meeting, Christoph Paasch explained that this approach is already used by a specific application. The 0-rtt convert protocol also proposes to use this approach.

> If a server doesn’t support this yet, it takes an RTT longer. If a client doesn’t support this yet (and hence only puts in data on a SYN *with* the TFO option), nothing bad happens, except that there are the privacy concerns that kicked off this thread. When a client doesn’t support this and does *not* put data on a SYN, nothing special happens. This seems like a good gradual upgrade path for me.
> Regarding front-ends, I guess they could make rejection decisions when they see too many SYNs carrying data with or without a TFO option.

I agree, there are various techniques to deal with DoS attacks on a stack and inside specialised protocols.
> 
> Perhaps this also answers Michael Tuexen’s comment about  https://tools.ietf.org/html/rfc7413#section-7.3 <https://tools.ietf.org/html/rfc7413#section-7.3>  - which has similarities, but:
> - the first paragraph sounds a bit too limiting: I mean this as a general use thing, just like TFO, only with the caveat of having to limit the load somehow… e.g. limit how many of these messages-on-SYNs an app processes per second.
> - the second paragraph is in conflict with what I’m proposing: it talks about generating "a trivial or even a zero-length cookie” and switching to regular TFO as a fall-back. I’m proposing operation without a TFO option; just relax the “how to process data from SYN” rule and state all the necessary warnings.
> 
> 
>> There is the caveat that I'm not sure how many are running TFO on the Internet. (I do know Google was the biggest one, at least a couple of years ago, from research I did before joining).
> 
> Yep, that too… just relaxing the “how to process data-on-SYN" rule seems easier to deploy.
> 

RFC793 authorises data in the SYN and Christoph’s explanation shows that today SYN with data but without TFO option pass through more paths than SYN with data but with a TFO option


Olivier



-- 


Disclaimer: https://www.tessares.net/mail-disclaimer/ 
<https://www.tessares.net/mail-disclaimer/>