Re: [TLS] Comments on PR #95
Eric Rescorla <ekr@rtfm.com> Thu, 25 December 2014 01:30 UTC
Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BAF451A6F61 for <tls@ietfa.amsl.com>; Wed, 24 Dec 2014 17:30:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 mViytrQbWDQr for <tls@ietfa.amsl.com>; Wed, 24 Dec 2014 17:30:46 -0800 (PST)
Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 46B871A6F68 for <tls@ietf.org>; Wed, 24 Dec 2014 17:30:46 -0800 (PST)
Received: by mail-wg0-f43.google.com with SMTP id l18so12334145wgh.16 for <tls@ietf.org>; Wed, 24 Dec 2014 17:30:45 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=+d5gkmaIg+jhsRcNH0Nr/7MX36lIyIB3Yfb+UtCVvys=; b=Mp+gUBwA0QyBfoNJ0OGC0gQrSnu8RhbuxWaLzVXQ8Q7FNRHlRt1NZtxSuaIIsxWL2D 15ySzeH74NNDAJPCfUjz5TDwEwUMXhMjPaAEejbuLgFySvvK9xMy1FSpwuFcA2yd/DaO xxpvaNx/AtDWAltNAOKslge0De2g2PLCeK+7VCkcBPAV4MZsQh03sUn5owLrOkVLSsb/ onwux4EmaYLoG/wQRBoEcc0Zs8YmsUSD56DiBqEwsSI3uUvEEQ9nk1BZE6utB+aYZVyg 70KnZ8pYP5A/hO+zZOqlkIas0qNSngESU833Cp74QF8mmhOTXFAnm6U6kcWEdlIq/m66 6qqQ==
X-Gm-Message-State: ALoCoQkNn1RJpMmz15pTXyNMxDwRcp9RY8FQG4LFKSVLX0BG7qhQzr6lvJgDI7k5//96Dwq8qVhw
X-Received: by 10.180.206.47 with SMTP id ll15mr57326525wic.34.1419471045057; Wed, 24 Dec 2014 17:30:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.27.130.34 with HTTP; Wed, 24 Dec 2014 17:30:03 -0800 (PST)
In-Reply-To: <CACsn0cndXFXgnvE36JsaaNafRpcWvGh0B_P1iZieAZbAeNzwvQ@mail.gmail.com>
References: <CACsn0cndXFXgnvE36JsaaNafRpcWvGh0B_P1iZieAZbAeNzwvQ@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Wed, 24 Dec 2014 17:30:03 -0800
Message-ID: <CABcZeBPJ9wMrcuyirGwm8bw-9+msTK1KZu+cSLwQBEf47qFm5A@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary="001a11c25c2068f2d1050b005bbc"
Archived-At: http://mailarchive.ietf.org/arch/msg/tls/YcramL82iplPMQWCXwdW29hCW_w
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Comments on PR #95
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Thu, 25 Dec 2014 01:30:49 -0000
Watson, Thanks for the comments. Many of these are comments on the draft as a whole (and a lot are text that remains from TLS 1.2 and before). I'll go through these and turn them into Github issues for discussion (though given the holidays it probably won't be this week). Best, -Ekr On Wed, Dec 24, 2014 at 1:20 PM, Watson Ladd <watsonbladd@gmail.com> wrote: > Dear all, > I've read PR #95 with a critical eye, and in addition to some > infelicities of the text, see some more substantial issues. This email > is my notes in the order they occurred to me: not necessarily > correlated with severity. I've tried to triage them, but may have done > so inaccurately. Most of these are editorial in nature. > > Line 291: we're citing DSA. old text. More broadly, applications don't > care how we provide what we provide: they care about the end goals. At > some point this should be revised accordingly. > > Line 418: Security means what exactly? > > Line 437-453: this needs to be rewritten. Why are we talking about SSL > v3, when any similarity is like that of a whale to a platypus? > > Line 743: I'm confused by the comment on how one finds the length of > the signature data: it seems to be sent on the wire, but the document > says " The length of the signature is known because the algorithm and > key used for the signing are known prior to encoding or decoding this > structure.", which is a different method. > > I recommend removing that last sentence: the parser should parse with > as little input as possible from above. > > Line 836: 800 lines in, and we've gotten about nowhere: defined a PRF, > and a representation format. Now we hear that TLS doesn't provide some > security properties, but we don't know what those are. A succinct, > correct description should appear at the beginning and again in the > security considerations section. > > Line 1015: Zero-length fragments of application data as traffic > analysis countermeasure? I think this was written when padding between > the fragment and record layers existed, and I'll have to check how > this was supposed to work. As it stands, I've not yet gotten to a > description of the record layer at the time I read this. > > Lines 1066-1072: We've got a perfectly good nonce in the sequence > number. Why not use that? Oh right, hysterical raisins. > > Line 1119: Open issue #5. I've got to think about this one. Likely as > not this will be a very complicated change, that makes TLS 1.3 a lot > harder to implement. > > Line 1190: More forward references to resumption. Note that > authentication status isn't defined as part of what gets resumed. I > believe, but am not sure, that this was part of what made the SSL v3 > multihoming fallback attack work. > > Line 1439: Finally, the handshake protocol. In this description there > are a ton of forward references, that make understanding this a bit > tricky. What's an Encrypted Extensions method, on line 1505? While the > earlier description of the Alert protocol was by type of message, this > overview is chronological. > > Line 1623: We're getting to the beef. But the reader already knows > this: no need to reintroduce the handshake protocol. > > Line 1763: It's not clear what servers have to do, or not do, to deal > with stolen session IDs. They need to not "breach security", whatever > that means. > > Line 1863: Previously, hello extensions were relegated to a different > document. Now they are needed for backwards compatibility. > > Line 1912: Was anyone using SRP? The more generic we have to make TLS > 1.3, and the more we have to shoehorn in, the more complex it gets. > This open issue could get hairy. > > Line 2199: Mandating the presence of the signature_algorithms > extension would simplify things considerably. > > There are a bunch of open issues in the description of the handshake > protocol, and some warts. I haven't thought about provability yet. > > Line 2995: A TODO DTLS, probably related to the possibility of the > Update message being lost. I don't remember how DTLS deals with this > in the handshake, but there data is not being sent with the new keys > before the other side acknowledges receipt. Will think about it. > > Does ignoring an update still update the record layer? > > There does not seem to be a way to request a certificate in the update > protocol. > > Line 3151: AES-GCM or AES-CCM seem the logical options here. > > Line 3165: This doesn't seem to be a very fleshed out security > considerations section. > > Line 3606: Do we need the glossary? > > The implementation notes needs a substantial amount of work. The > advice on random number generation is vintage 90's. The discussion of > certificate checks could be substantially expanded. A lot of attacks > that have been used in the wild are not discussed here. > > Line 4015: SSL v2? Really? > > Line 4034: This is not a security analysis. > http://eprint.iacr.org/2014/182.pdf is a security analysis. It would > be much more helpful if this was significantly edited: there is some > valuable information in here, but much of it is misleading. > > Line 4185: This reads a bit strangely with things like DANE. Yes, I > don't think DNSSEC has adequate security, and it's worth noting that > CAs can be a problem. I think it's worth telling implementors to study > the lessons of attacks in the past. > > This version of the draft is very clearly a work in progress. 0-RTT > was introduced in a different pull-request, and I've not given it a > hard look. > > Sincerely, > Watson Ladd > > _______________________________________________ > TLS mailing list > TLS@ietf.org > https://www.ietf.org/mailman/listinfo/tls >
- [TLS] Comments on PR #95 Watson Ladd
- Re: [TLS] Comments on PR #95 Eric Rescorla
- Re: [TLS] Comments on PR #95 Eric Rescorla
- Re: [TLS] Comments on PR #95 Watson Ladd
- Re: [TLS] Comments on PR #95 Eric Rescorla
- Re: [TLS] Comments on PR #95 Tom Wu
- Re: [TLS] Comments on PR #95 Ilari Liusvaara
- Re: [TLS] Comments on PR #95 Watson Ladd