Re: [TLS] Encryption of TLS 1.3 content type

Nikos Mavrogiannopoulos <nmav@redhat.com> Mon, 28 July 2014 15:14 UTC

Return-Path: <nmav@redhat.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 526B31B2883 for <tls@ietfa.amsl.com>; Mon, 28 Jul 2014 08:14:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.603
X-Spam-Level:
X-Spam-Status: No, score=-6.603 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 Z3vSBF6caRqs for <tls@ietfa.amsl.com>; Mon, 28 Jul 2014 08:14:17 -0700 (PDT)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 9569D1B287C for <tls@ietf.org>; Mon, 28 Jul 2014 08:14:17 -0700 (PDT)
Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6SFEGhW017000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Jul 2014 11:14:16 -0400
Received: from [10.34.2.127] (dhcp-2-127.brq.redhat.com [10.34.2.127]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6SFEEVj017706 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 28 Jul 2014 11:14:15 -0400
Message-ID: <1406560456.7750.20.camel@dhcp-2-127.brq.redhat.com>
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
To: Colm MacCárthaigh <colm@allcosts.net>
Date: Mon, 28 Jul 2014 17:14:16 +0200
In-Reply-To: <CAAF6GDcKqymNMnVa50Q7kSTgHrWcM1-qMNGyxU-NcjXMnCD3gQ@mail.gmail.com>
References: <DD255E31-FA87-40CE-AF13-0F43A7DD54CF@cisco.com> <CACsn0cnt-ry182AjOyTTZGteifs7VyRPYHaj-xDCBOf0D53w9A@mail.gmail.com> <CAAF6GDfK7awipoMT_PPyKnTe-fF1=KY1Be8kUMSYrXN0Wzb=tg@mail.gmail.com> <1406537753.2413.12.camel@dhcp-2-127.brq.redhat.com> <CAAF6GDcKqymNMnVa50Q7kSTgHrWcM1-qMNGyxU-NcjXMnCD3gQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26
Archived-At: http://mailarchive.ietf.org/arch/msg/tls/QdSzODbvKCgAFfQeovZK4kGSCnU
Cc: tls@ietf.org
Subject: Re: [TLS] Encryption of TLS 1.3 content type
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: Mon, 28 Jul 2014 15:14:19 -0000

On Mon, 2014-07-28 at 07:54 -0700, Colm MacCárthaigh wrote:
> On Mon, Jul 28, 2014 at 1:55 AM, Nikos Mavrogiannopoulos
> <nmav@redhat.com> wrote:
> > Are there any pointers to these attacks? Will these attacks be countered
> > with such a change? I believe not as alert messages consist of only two
> > bytes and will be distinct from any other higher protocol messages
> > transferred by the TLS record protocol.
> 
> This is not the case. Firstly, even with a stream cipher it doesn't
> distinguish the message from a 2 byte application data message. But
> most ciphers are block ciphers, and so the true length is fuzzed by
> about an order of magnitude.

On the contrary, all _new_ ciphers are stream (GCM, CCM) and every
future AEAD cipher will be a stream one (due to limitations of the AEAD
construction in TLS). Furthermore, even if you assume that only AES-CBC
is going to be used, do you really consider a 16-byte alert packet
fuzzed? Do you know many application protocols that transfer such short
packets?

regards,
Nikos