Re: [TLS] 2nd WGLC: draft-ietf-tls-tls13

Benjamin Kaduk <bkaduk@akamai.com> Wed, 12 July 2017 22:39 UTC

Return-Path: <bkaduk@akamai.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 D481D12F26D for <tls@ietfa.amsl.com>; Wed, 12 Jul 2017 15:39:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.011
X-Spam-Level:
X-Spam-Status: No, score=-0.011 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, HTTPS_HTTP_MISMATCH=1.989, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=akamai.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 44lzc3b2PQOc for <tls@ietfa.amsl.com>; Wed, 12 Jul 2017 15:39:23 -0700 (PDT)
Received: from mx0b-00190b01.pphosted.com (mx0b-00190b01.pphosted.com [IPv6:2620:100:9005:57f::1]) (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 CC5E112EB8C for <tls@ietf.org>; Wed, 12 Jul 2017 15:39:14 -0700 (PDT)
Received: from pps.filterd (m0050102.ppops.net [127.0.0.1]) by m0050102.ppops.net-00190b01. (8.16.0.21/8.16.0.21) with SMTP id v6CMasVS023941; Wed, 12 Jul 2017 23:39:12 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type; s=jan2016.eng; bh=PZfr/K1/5+brHp0DfsIAszmG1Y2XYzlt897VlkpO/pk=; b=T18LRzQuJfc/K37GGVOxXaQf2rZWpr325kqsfElubR3aA9t8YMIyBTjDB+0yllnP8fNB APqw4Z/tTdp/CruxyAgHMbi9EwP2EOcx3IN0a3a+hCJWDCX3l/uuokY6kHplGfIsnsMR gtWteWlKagpd3czX1mQJbWvPBa+KuIG8QogUreID6VUcOMzK644pdTWHHcz3AdXByipG wubxS/CKTLF7jdoJ7T941k9HTQy6g7IdCH9piXgqlPpF/rylC2qcMjqwU11/dTZy4T9Z sBleLJpy0K4Z43HJEoBnYsk2PvgnXPZiM3CYw6nta2MszJ7hrXFKg+N6V+PdJHhBgw1T qA==
Received: from prod-mail-ppoint2 (a184-51-33-19.deploy.static.akamaitechnologies.com [184.51.33.19] (may be forged)) by m0050102.ppops.net-00190b01. with ESMTP id 2bn0p3pu05-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2017 23:39:12 +0100
Received: from pps.filterd (prod-mail-ppoint2.akamai.com [127.0.0.1]) by prod-mail-ppoint2.akamai.com (8.16.0.17/8.16.0.17) with SMTP id v6CMaLSu001559; Wed, 12 Jul 2017 18:39:11 -0400
Received: from prod-mail-relay11.akamai.com ([172.27.118.250]) by prod-mail-ppoint2.akamai.com with ESMTP id 2bn0p1v6es-1; Wed, 12 Jul 2017 18:39:11 -0400
Received: from [172.19.17.86] (bos-lpczi.kendall.corp.akamai.com [172.19.17.86]) by prod-mail-relay11.akamai.com (Postfix) with ESMTP id 4C3571FC7B; Wed, 12 Jul 2017 22:39:11 +0000 (GMT)
To: Eric Rescorla <ekr@rtfm.com>
Cc: Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
References: <4783B0DF-445C-4AF0-8EF1-AB396A97B947@sn3rd.com> <e14760fb-c45e-fbf6-270b-cdf173c757bc@akamai.com> <CABcZeBO_2tDVon4e8MU2jcq-2rYcUNfKESkPJe2ZjzWfoE_ESg@mail.gmail.com>
From: Benjamin Kaduk <bkaduk@akamai.com>
Message-ID: <752c2b4e-fb24-6857-ac88-e42504029dd6@akamai.com>
Date: Wed, 12 Jul 2017 17:39:11 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <CABcZeBO_2tDVon4e8MU2jcq-2rYcUNfKESkPJe2ZjzWfoE_ESg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------6C5DBF9EF3D8494EBD2AAAAA"
Content-Language: en-US
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-07-12_07:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707120360
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-07-12_07:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707120359
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/uOfahPlc1pgEMp02XnloyVNszyo>
Subject: Re: [TLS] 2nd WGLC: draft-ietf-tls-tls13
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: Wed, 12 Jul 2017 22:39:26 -0000

On 07/11/2017 03:50 PM, Eric Rescorla wrote:
>
>
> On Tue, Jul 11, 2017 at 1:39 PM, Benjamin Kaduk <bkaduk@akamai.com
> <mailto:bkaduk@akamai.com>> wrote:
>
>
>     Another question I also relates to 0-RTT, specifically with the
>     freshness checks and the case where the computed
>     expected_arrival_time is in outside "the window" by virtue of
>     being in the future. (See the Note: at the end of section 8.2.)
>     (The case where the expected_arrival_time is in the past can
>     clearly be treated as "this is a stale request" and the current
>     text about aborting with "illegal_parameter" or rejecting 0-RTT
>     but accepting the PSK is acceptable, even if it doesn't give
>     guidance as to what might cause someone to pick one behavior or
>     the other.)  I am wondering whether we should consider this to be
>     a potential attack and abort the connection.  I concede that there
>     are likely to be cases where this
>     situation occurs incidentally, for clients with extremely
>     fast-running clocks, and potential timezone/suspend-resume
>     weirdness.  But there is also the potential for a client that
>     deliberately lies about its ticket age and intends to replay the
>     wire messages when the age becomes in window, or an attacker that
>     records the messages and knows that the client's clock is too
>     fast, or other cases.  (A client that deliberately does this could
>     of course just send the same application data later as well.)  If
>     the time is only a few seconds out of the window, then delaying a
>     response until it is in the window and only then entering it into
>     the single-use cache might be reasonable, but if the time is very
>     far in the future, do we really want to try to succeed in that case?
>
>
> If the time is very far in the future, the text is supposed to tell
> you to fall back
> to 1-RTT...
>

I agree that that is what the text currently says.  I'm questioning
whether that's actually the behavior we want.

That is, in this case, the CH+0RTT data can be replayed by an observer
once enough time has elapsed that the expected_arrival_time is within
the window, similar to one of the reordering attacks mentioned
elsewhere.  We could add the CH to the strike register in this case,
which would bloat its storage somewhat and have entries that take longer
than the window to expire out.

I don't have a good sense for how often we expect postdated CHs to occur
and whether the ensuing breakage would be manageable, but I'm not sure
that we've thought very hard as a group about this question.


>
>
>     It looks like we no longer do anything to obsolete/reserve/similar
>     the HashAlgorithm and SignatureAlgorithm registries; was that just
>     an editorial mixup or an intended change?
>
>
> https://tlswg.github.io/draft-ietf-tls-iana-registry-updates/#orphaned-registries
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__tlswg.github.io_draft-2Dietf-2Dtls-2Diana-2Dregistry-2Dupdates_-23orphaned-2Dregistries&d=DwMFaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=sssDLkeEEBWNIXmTsdpw8TZ3tAJx-Job4p1unc7rOhM&m=BMArYHEvmklJ5o8KreHqXeVRBDLx5CLzLwErLvjyUWk&s=3RGXDDdDzmF81eYcffxZOyJWazAfg8Uk45evFm9yMo0&e=>
>

Oh right, I forgot about that -- thanks.

>
>     We removed the API guidance for separate APIs for read/writing
>     early data versus regular data, which I believe had consensus. 
>     But I thought we were going to say something carefully worded
>     about having an API to determine whether the handshake has
>     completed (or client Finished has been validated, or ...), and it
>     looks like this is buried at the end of E.5(.0), with the string
>     "API" not appearing.  It might be useful to make this a little
>     more prominent/discoverable, whether by subsection heading or
>     otherwise.
>
>
> Suggestions welcome for where this would be better....
>

I'll see if I have time to think about it some more.

-Ben