Re: [TLS] WGLC for draft-ietf-tls-ticketrequests

"Christopher Wood" <caw@heapingbits.net> Thu, 14 November 2019 16:01 UTC

Return-Path: <caw@heapingbits.net>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A678E120113 for <tls@ietfa.amsl.com>; Thu, 14 Nov 2019 08:01:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=heapingbits.net header.b=ZtmSg+EE; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=lOTAe4JL
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 QN5lQFbOB5VP for <tls@ietfa.amsl.com>; Thu, 14 Nov 2019 08:01:58 -0800 (PST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E29B4120033 for <tls@ietf.org>; Thu, 14 Nov 2019 08:01:57 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 14B3521A09 for <tls@ietf.org>; Thu, 14 Nov 2019 11:01:55 -0500 (EST)
Received: from imap4 ([10.202.2.54]) by compute6.internal (MEProxy); Thu, 14 Nov 2019 11:01:56 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heapingbits.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=PmzJepTjpdaztXk6Ph2NZNiofbUFhA5 Peeurm/MAq4o=; b=ZtmSg+EEr8z6KBcs48J8t+qlL6/z/oxglbRiDoeupvoyNqi QObLQErwCgFHLEYHsLOKXDP7r6By+e9xSz1vKJo8JZV4mMj0ISzPK+OQBa/gc+ri ANQiULtPb+tFaALze/TMcHGNQFmHaRSonIXjllE/jXwdVaAT5sPhaV61xZ79jfNV n3ydOij2/HojNMKHKIf7Qy5clfnd52fFLgEocsRC6XK0f0TImD85a90zUVdrmykd cIe3OE6/FxA6s+1lMimQNlwD/YHib01pcnssJNU9qLzApuhz09RE/Bqrytg1YeKB Biab67JtgzF4509Kw1J8SMxWnyGsHJMlmbmEcEg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=PmzJep TjpdaztXk6Ph2NZNiofbUFhA5Peeurm/MAq4o=; b=lOTAe4JLQ5lazatbqLJcfM qPh8cioxxxDN4/7cUttPE8+sMS44Fj0r2xjl5feE1b0JhZYvVD6oU+ehJTrXELw/ 7KNmoQ7DGr0M/rDtufUSVgompfxwQl2ZORu5SnZVdjmxMEIOztk5yL0YTC7kUZ5X ibqnq/W1ITaSZ1x8Anv8dFfMoNH3NhFwPw1I/BPmXwkQRwoKuqdPFxvwbaut6Pam +Te2m9D32p1/dYC9RLJxlCKtYN4LBECVOlzPBX0IeC6P9ZXW44URc8qFv32F6Zp5 hzwdQ0b0RPSAbe0vVdF1ng/ZZHV+I2oq6gcmgqH7AvCIDcS1UNcIKqyqoqiGSFaA ==
X-ME-Sender: <xms:c3rNXTE7eA7nr01oEYKHpBo7RhiSDP1SNvYBBYau0rQpeU__fqQZfA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeffedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfvehhrhhishhtohhphhgvrhcuhghoohgufdcuoegtrgif sehhvggrphhinhhgsghithhsrdhnvghtqeenucffohhmrghinheptghouhhnthdrrghsne curfgrrhgrmhepmhgrihhlfhhrohhmpegtrgifsehhvggrphhinhhgsghithhsrdhnvght necuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:c3rNXbLLwwwj46wUqTo3IheNXNKrxorunfRheG_ELQgBXty4Kdywyw> <xmx:c3rNXTZzn055S_O54RWjyZQFYKBJkN1I86xOwkd5UclXlozWzxer-Q> <xmx:c3rNXQpKFs8fuPDDA34ie_IL2lYNzK89GwcS0mAu9ZT_JlzSQbSYlA> <xmx:c3rNXQKpHBMK8jmJYpec7-NOyDEH68zRlu9iiFZdNku8iFdkKsWzSQ>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 587063C00A2; Thu, 14 Nov 2019 11:01:55 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-562-gfd0633a-fmstable-20191114v1
Mime-Version: 1.0
Message-Id: <37ff9a64-2749-4558-a675-5b251f06eb3a@www.fastmail.com>
In-Reply-To: <CADZyTknhZDi2JD5WRbKEOGDafHjhTkUm6QhOhv1kkA9BT1nekw@mail.gmail.com>
References: <2FB1D8AD-2C22-4A09-B7AF-0EFD6F0DBACA@sn3rd.com> <0469b84c-3009-427a-99ca-e7f6817f0b6c@www.fastmail.com> <CADZyTknhZDi2JD5WRbKEOGDafHjhTkUm6QhOhv1kkA9BT1nekw@mail.gmail.com>
Date: Thu, 14 Nov 2019 08:01:34 -0800
From: Christopher Wood <caw@heapingbits.net>
To: "TLS@ietf.org" <tls@ietf.org>
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/jNqm-_5t7eEKA_ZeE6kY4AiLlso>
Subject: Re: [TLS] WGLC for draft-ietf-tls-ticketrequests
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 14 Nov 2019 16:02:00 -0000

On Thu, Nov 14, 2019, at 7:50 AM, Daniel Migault wrote:
> Hi,
> 
> The current version is clearer than the previous one. However, as I
> understand the document, it still seems very asymmetric in the sense
> that it does not provide the client the ability to enforce a number. I
> believe more guidances/specifications are needed on how to interpret the
> count value. Interpretation is usually based on implicit assumptions of
> today's usages, and explicit signaling should, in my opinion, be preferred. In
> other words, I believe that long term interop will benefit from these
> additional specifications.

I disagree with this assessment. The document is clear on this:

   A supporting server MAY use TicketRequestContents.count when
   determining how many NewSessionTicket messages to send to a
   requesting client, and SHOULD place a limit on the number of tickets
   sent.  The number of NewSessionTicket messages sent SHOULD be the
   minimum of the server's self-imposed limit and
   TicketRequestContents.count.

As has been stated before, the count is a *hint* to the server, nothing more. 

> The problem stated in the introduction is that the server needs some
> information from the client in order to generate the appropriated number
> of tickets. In fact the client is likely to be the one that better knows
> the number of tickets to be generated, but the current text does not
> enable the client to enforce that number. Instead this is entirely left
> to the server.

As above, I think you're misunderstanding the point of this document. Ticket requests are hints to servers.

> Typically, if a device does not want to have more than one ticket. It
> should be able to indicate one and be sure it will only receive one
> ticket. The current specification does not prevent multiple tickets to
> be sent by the server. 

Right, nor should it. Again, that's not a goal.

> The server can ignore the count value (MAY) even 
> though it is known to support the extension. This means that a server
> could support the extension while still having a hard coded number of
> tickets. In addition, (SHOULD) let the server determining the number of
> tickets. 
> 
> Possible ways to address my concerns could be to limit the count value
> to the number of tickets generated during the KEX, and a server MUST NOT
> exceed the counter value. The text would need more guidance on how the
> server SHOULD behave when emitting at different time in the KEX - after
> the Finished message and after the post handshake authentication.

I don't think any text changes are needed to address these comments.

> The security consideration should in my opinion consider the fact that a
> client over UDP/DTLS may use the count value as an amplification factor 
> to have the server flooding a target. The current text only seems to
> consider the computation aspect, not the bandwidth. If that cannot
> happen, it might be beneficial to add it. However, when a server sends
> tickets right after the Finished, it seems to me that can be used as an
> attack.

I'm not convinced this is useful to add. The target here is the client (attacker) that requested tickets. 

Best,
Chris