Re: [Curdle] Comments on draft-ietf-curdle-ssh-ext-info

denis bider <denisbider.ietf@gmail.com> Sat, 08 April 2017 10:56 UTC

Return-Path: <denisbider.ietf@gmail.com>
X-Original-To: curdle@ietfa.amsl.com
Delivered-To: curdle@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B3BE128B51 for <curdle@ietfa.amsl.com>; Sat, 8 Apr 2017 03:56:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.799
X-Spam-Level:
X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ZXR7c5vwXLtf for <curdle@ietfa.amsl.com>; Sat, 8 Apr 2017 03:56:25 -0700 (PDT)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (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 87AC2126CF9 for <curdle@ietf.org>; Sat, 8 Apr 2017 03:56:25 -0700 (PDT)
Received: by mail-qk0-x231.google.com with SMTP id f133so62992428qke.2 for <curdle@ietf.org>; Sat, 08 Apr 2017 03:56:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=U61i3SjaFo/SeW5Uzq+QLJBxTEB/RQ6poWne5IT28Iw=; b=CkKIxDNxOd3oJdhm0OvpaHMBu6a8uQ/Cw8yo5to7Uvs0KrZ6pppNMeL3Y2sXiWGzjV hIJSwsc0Ts05ltsCEk0YseqKNUJorOKVOy9AMWkJedkkVJCGwGAP0Z+HCTnEEtBXpxy6 gmZF9ZpJE9EL5GXCtG0Tca0yNaGLx+NGJGobVTrqCe0NJvXEPBsTgEIvGm0lyr2ag263 1i6E8IxWEsfljPgiJb/SThOACtE+deCi7pUNN7B7tJ4L5U0SfM9Ae7wuSBM5r2bK3q/d Y4PUkg1nn4WSZ1qMReL3oaC/oL+Q1xnibw/RtMSC1hVkvQssHLTUHrws7vz7KQWtfUdg R1BQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=U61i3SjaFo/SeW5Uzq+QLJBxTEB/RQ6poWne5IT28Iw=; b=Pe/O2n9ycFbXm4r21osUcRLS9DNjTPqf04DXAayKtkT/Xnlqk5g3iLIgbzJTuRbvNM +QOHOpku6Bo5hGPA8VK8q7w+0ePXE2EekqrPs9BrsmXx586llf4E5Vq1CopakU865H2l 8dwqJ4XwhQWrhbwvz/LfiWVnvf0KRs50TRg3kycYqdTesrcbY8GQM2EjqyjERkXCiY84 zADN27402W4Nqvc7wmc0Uj6kOwaVd17H1l3ixZZItKbUnGCnui8E4espppuyNR3kDjbN cwnxq8RM2X4lPS0gtk94iHGcKqPhSHDwvHF2L0xI874WxGyGAlpXgul6mI5LcqzGrj4x T7jw==
X-Gm-Message-State: AN3rC/4c4bEHxt34WZRTNqeoliQAT8wn1yocgeyySAJCN1Cqsii9U4QRw58MG9CkrPcdTYojt7sPz87kK1LfIQ==
X-Received: by 10.55.71.137 with SMTP id u131mr11958835qka.317.1491648984690; Sat, 08 Apr 2017 03:56:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.138.239 with HTTP; Sat, 8 Apr 2017 03:56:24 -0700 (PDT)
In-Reply-To: <1491621835513.71448@cs.auckland.ac.nz>
References: <2DD56D786E600F45AC6BDE7DA4E8A8C118BA5A70@eusaamb107.ericsson.se> <1489827654266.43895@cs.auckland.ac.nz> <50977E6A3D174856B8DAF264C3CB81E8@Khan> <1489914378158.63423@cs.auckland.ac.nz> <74B4C5B2AFD644748A0E1B0957A22C96@Khan> <1490436136828.60577@cs.auckland.ac.nz> <76BA84F1D47F476A8DB5C8CC42AA1B57@Khan> <1491480250094.74577@cs.auckland.ac.nz> <CADPMZDDG1X4awEQiigM5rocLs3Qbvup-NyaaU7J+DcW+o60zPQ@mail.gmail.com> <1491621835513.71448@cs.auckland.ac.nz>
From: denis bider <denisbider.ietf@gmail.com>
Date: Sat, 08 Apr 2017 04:56:24 -0600
Message-ID: <CADPMZDCqK-bocB5qaz6Vqj7+NHfqgeL6qCzEXhm1nE5g_PTVCQ@mail.gmail.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Cc: curdle <curdle@ietf.org>
Content-Type: multipart/alternative; boundary="001a114a7fb6dcb6bf054ca597a0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/curdle/uYqdqKR7xhAzWIripbMQs6xV528>
Subject: Re: [Curdle] Comments on draft-ietf-curdle-ssh-ext-info
X-BeenThere: curdle@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "List for discussion of potential new security area wg." <curdle.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/curdle>, <mailto:curdle-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/curdle/>
List-Post: <mailto:curdle@ietf.org>
List-Help: <mailto:curdle-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/curdle>, <mailto:curdle-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 08 Apr 2017 10:56:27 -0000

> There are a range of opinions on how safe it is,
> but in general it seems 0RTT is bad

According to the link provided by Eric, Zero-RTT in TLS is a concept that
does not even exist in SSH. I can see why people would have concerns about
sending data upfront encrypted with a make-do key based only on a
pre-shared secret. That is inherently problematic and needs care.

If SSH had this concept, it would involve bundling some kind of
pre-encrypted data with the client's original KEXINIT. We do not have
anything like that.

EXT_INFO is sent after several round-trips, encrypted after a full,
completed key exchange. I don't see any way that's similar to Zero-RTT.


> What I meant was use the string value "true" for
> boolean true and "false" for boolean false.

In that case I would prefer to go for full strings like "preferred" and
"supported", but that seemed like a waste. :)


> Speaking of embedded, would there be any interest in
> adding an extension to say that an implementation only
> supports one channel, and for the other side to not try
> anything fancy beyond treating it as an encrypted telnet?

As-is, the "no-flow-control" extension already dictates there will be no
more than one concurrent channel. What do you have in mind beyond that?

denis



On Fri, Apr 7, 2017 at 9:24 PM, Peter Gutmann <pgut001@cs.auckland.ac.nz>
wrote:

> denis bider <denisbider.ietf@gmail.com> writes:
>
> >Can you link to any resources where this was discussed? Whether for TLS,
> or
> >in any other context?
>
> It's difficult providing a useful link because it's been discussed on and
> off
> in various threads on the TLS WG list for quite some time.  There are a
> range
> of opinions on how safe it is, but in general it seems 0RTT is bad and
> 0.5RTT
> is iffy.  That is, you can do 0RTT if you're incredibly careful (I talked
> to a
> dev at a large content provider and he said their analysis showed they'd
> have
> to implement nonzero-RTT at the application layer in order to deal with
> 0RTT
> at the TLS layer, which kinda defeats the point), but if anyone ever tries
> it
> I foresee a range of Black Hat/Defcon talks and conference papers on how to
> exploit it following shortly afterwards.
>
> >Yes if you could choose the type. But you can't choose the type, because
> all
> >extensions have to use the same type. That type is a string.
>
> What I meant was use the string value "true" for boolean true and "false"
> for
> boolean false.  It seemed pretty intuitive :-).
>
> >OK. I added the following sub-section to my current working copy:
>
> Thanks, that helps to document existing practice and alert implementers.
>
> Incidentally, the places where I've found this is typically embedded, where
> there's no chance of every transferring anywhere near ~0 bytes, so it's
> not a
> problem.  OTOH the second issue is real, you can force a reboot of one
> vendor's carrier-grade routers by opening an SSH connection to it with a
> window size of ~0.
>
> Speaking of embedded, would there be any interest in adding an extension to
> say that an implementation only supports one channel, and for the other
> side
> to not try anything fancy beyond treating it as an encrypted telnet?  This
> is
> also fairly common in embedded, where you're emulating encrypted telnet and
> nothing more.  scp/SFTP is handled by moving the binary data over the
> encrypted-telnet channel, with various degrees of hackery.
>
> Peter.
>
>