Re: [TLS] TLS 1.3 - Support for compression to be removed

Watson Ladd <watsonbladd@gmail.com> Tue, 22 September 2015 14:13 UTC

Return-Path: <watsonbladd@gmail.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 3DF361A1B0B for <tls@ietfa.amsl.com>; Tue, 22 Sep 2015 07:13:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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 hr6I50bBq0UY for <tls@ietfa.amsl.com>; Tue, 22 Sep 2015 07:13:13 -0700 (PDT)
Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (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 68EF91A1ADF for <tls@ietf.org>; Tue, 22 Sep 2015 07:13:13 -0700 (PDT)
Received: by qkcf65 with SMTP id f65so4270866qkc.3 for <tls@ietf.org>; Tue, 22 Sep 2015 07:13:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=tBRaDlgRVdsp6poF3oIkZvwotsS3jxaaIPBmAFSu0pI=; b=WUNB6EHk4Cz1X/iV1gp1X/xMVFZcbnT0CBwEq33o+4k9Iv8GMZjeIi5fWwWKOJuf5q DajF19xex+uhX5fUP/Zk7+l1W1y3lCzrjyoR3vtiWACgvTwXWqmx0WeYxiWCrFH3c3Z2 q9RwuBYbcfouxC9kN8UKXLPJzGV3uYioRoCz3tJAFD5pC22PU3IvhGbIaIak0tuVqxcf d8h61qqy8oW7sLHcajBhNYX5i0+LyCxwOMmY2f+z2MID9ylrWy5pvHBTkka8ntD5jQgz 6Np/lq+SMPh3wrZzc4STVCX2IqMfMHzQxjPPuhMGw+H3XLHPfbDH78VxRn27+BOFXp87 kcDA==
MIME-Version: 1.0
X-Received: by 10.194.175.232 with SMTP id cd8mr32450889wjc.45.1442931192537; Tue, 22 Sep 2015 07:13:12 -0700 (PDT)
Received: by 10.28.51.145 with HTTP; Tue, 22 Sep 2015 07:13:12 -0700 (PDT)
In-Reply-To: <20150922132321.17789008.2591.24358@ll.mit.edu>
References: <20150922132321.17789008.2591.24358@ll.mit.edu>
Date: Tue, 22 Sep 2015 10:13:12 -0400
Message-ID: <CACsn0c=kiwX=Z8ELBnOHWVf6xLm95hTnQdezeKnx9S95k=1GqA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Blumenthal, Uri - 0553 - MITLL" <uri@ll.mit.edu>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/fpHM09Pe5EzEeQ9pNq-P0_jGTTY>
Cc: Simon Josefsson <simon@josefsson.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] TLS 1.3 - Support for compression to be removed
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: <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: Tue, 22 Sep 2015 14:13:15 -0000

On Tue, Sep 22, 2015 at 9:23 AM, Blumenthal, Uri - 0553 - MITLL
<uri@ll.mit.edu> wrote:
> Also, if compression is moved from TLS to upper layer(s) - how would it mitigate compression-related attacks? Besides "now it's somebody else's problem"?

Exactly. Upper-level layers can do the analysis to indicate when
compression contexts can be shared. TLS cannot as it doesn't have
access to the relevant information.
>
> Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network.
>   Original Message
> From: Simon Josefsson
> Sent: Tuesday, September 22, 2015 04:07
> To: Julien ÉLIE
> Cc: tls@ietf.org
> Subject: Re: [TLS] TLS 1.3 - Support for compression to be removed
>
> Julien ÉLIE <julien@trigofacile.com> writes:
>
>> Hi Karthik,
>>
>>> It may well be true that some (typically unauthenticated) application
>>> protocols on top of TLS can survive TLS compression, but it is
>>> unlikely.
>> [...]
>>> HTTP is a particularly bad case because the attacker can potentially
>>> inject arbitrary data before (and after) the secret. With NNTP you
>>> may escape the worst of this adversary, but you probably won’t find
>>> any TLS expert willing to say that compressing the password is ok.
>>
>> OK, many thanks for the illustration!
>>
>> So in fact, to be safer, authentication commands should either be sent
>> uncompressed or be more complex than they currently are (for instance
>> with the insertion of random data with random length along with the
>> authentication command).
>
> I believe the general recommendation is to not send passwords in
> cleartext at all, even in encrypted tunnels. I'm sure you are aware of
> it, but you may SASL in NNTP as described in RFC 4643.
>
> /Simon
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>



-- 
"Man is born free, but everywhere he is in chains".
--Rousseau.