Re: [TLS] simplistic renego protection

Marsh Ray <marsh@extendedsubset.com> Tue, 17 November 2009 18:17 UTC

Return-Path: <marsh@extendedsubset.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E5E353A69C5 for <tls@core3.amsl.com>; Tue, 17 Nov 2009 10:17:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.259
X-Spam-Level:
X-Spam-Status: No, score=-2.259 tagged_above=-999 required=5 tests=[AWL=0.340, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0q0l9j7sjJoJ for <tls@core3.amsl.com>; Tue, 17 Nov 2009 10:17:30 -0800 (PST)
Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by core3.amsl.com (Postfix) with ESMTP id 1FFE13A69C6 for <tls@ietf.org>; Tue, 17 Nov 2009 10:17:30 -0800 (PST)
Received: from xs01.extendedsubset.com ([69.164.193.58]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from <marsh@extendedsubset.com>) id 1NAScK-000JOw-4Z; Tue, 17 Nov 2009 18:17:28 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by xs01.extendedsubset.com (Postfix) with ESMTP id 6D9D0667C; Tue, 17 Nov 2009 18:17:26 +0000 (UTC)
X-Mail-Handler: MailHop Outbound by DynDNS
X-Originating-IP: 69.164.193.58
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+p4gvCxNjfT7XQenFDwsKKjeLoMznnDks=
Message-ID: <4B02E8B1.90905@extendedsubset.com>
Date: Tue, 17 Nov 2009 12:17:21 -0600
From: Marsh Ray <marsh@extendedsubset.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Nasko Oskov <noskov@microsoft.com>, "tls >> \"tls@ietf.org\"" <tls@ietf.org>
References: <200911161725.nAGHPWaA014181@fs4113.wdf.sap.corp> <089F31C221374096B0FE619F@446E7922C82D299DB29D899F> <4B02A084.9030903@cs.tcd.ie> <4B02CE81.1000607@pobox.com> <B197003731D4874CA41DE7B446BBA3E829CC8286@TK5EX14MBXW653.wingroup.windeploy.ntdev.microsoft.com>
In-Reply-To: <B197003731D4874CA41DE7B446BBA3E829CC8286@TK5EX14MBXW653.wingroup.windeploy.ntdev.microsoft.com>
X-Enigmail-Version: 0.96.0
OpenPGP: id=1E36DBF2
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [TLS] simplistic renego protection
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/listinfo/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: Tue, 17 Nov 2009 18:17:31 -0000

Nasko Oskov wrote:
> 
> Just an idea for signaling, since we are enumerating ideas.

My opinions:

We should use two bits in each direction:
0. "I'm patched"
1. "I'm lenient"
both default to false.

For signaling in the Client Hello I like the superfluous cipher suites
idea. Unless there are likely to be problems with advertising a new
cipher suite.

For the Server Hello I don't think there are any good options. The only
bits in there which are defined to not have any existing semantics are
the random_bytes (not the gmt_unix_time).

We should take 4 contiguous bytes from somewhere in the middle of the 28
random bytes, and interpret them as a uint32. In this new area we use
the bottom two bits as flags, and zero out the rest. These flags should
be sent regardless of whether or not the client requested it.

It is no one's first choice to destroy entropy from the random_bytes.
However, it seems there is little alternative. The remaining 24 bytes
still represent a generous amount.

Although this pattern of 30 contiguous zeros could occur randomly, it
would be a 1-in-one-billion occurrence.

- Marsh