Re: [quicwg/base-drafts] Idempotent is not the standard for 0-RTT (#4394)

kaduk <notifications@github.com> Fri, 20 November 2020 00:22 UTC

Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83CCF3A13FA for <quic-issues@ietfa.amsl.com>; Thu, 19 Nov 2020 16:22:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.1
X-Spam-Level:
X-Spam-Status: No, score=-3.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 KCY4DaMp-dMG for <quic-issues@ietfa.amsl.com>; Thu, 19 Nov 2020 16:22:43 -0800 (PST)
Received: from smtp.github.com (out-21.smtp.github.com [192.30.252.204]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0E2D33A13F9 for <quic-issues@ietf.org>; Thu, 19 Nov 2020 16:22:43 -0800 (PST)
Received: from github.com (hubbernetes-node-f0c3fb1.ac4-iad.github.net [10.52.114.25]) by smtp.github.com (Postfix) with ESMTPA id 5C24A520590 for <quic-issues@ietf.org>; Thu, 19 Nov 2020 16:22:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1605831762; bh=YvarN0z4mQPawxcxvxVPrLTKQzN7OVR325j6DgAZNJo=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=2W1HRDh07Cn/MPbJ59nI01Nr+VtfV+pFI69WlyxN1wuY/hvKU5lHDZ+fWFgP6q811 X95fMRVpktff0eFDiOgHPWgJ21MxAc0yAHk78chcJVfExHvSDzeYfp5/aNcl4vNzad 5uH32H3ymxmjkFvYr2gxgnkUNms0l+PlKa8oT3y0=
Date: Thu, 19 Nov 2020 16:22:42 -0800
From: kaduk <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJK4OTDAY4POQLDZISTV5YLWVFEVBNHHCY6XIWE@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/4394/review/534984869@github.com>
In-Reply-To: <quicwg/base-drafts/pull/4394@github.com>
References: <quicwg/base-drafts/pull/4394@github.com>
Subject: Re: [quicwg/base-drafts] Idempotent is not the standard for 0-RTT (#4394)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5fb70c5250e06_5319b4728ca"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: kaduk
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/1sg4TlYB-Sk0ChI3G-DXyNT7QEE>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Nov 2020 00:22:44 -0000

@kaduk commented on this pull request.



> @@ -1276,10 +1276,31 @@ If 0-RTT keys are available (see {{enable-0rtt}}), the lack of replay protection
 means that restrictions on their use are necessary to avoid replay attacks on
 the protocol.
 
-A client MUST only use 0-RTT keys to protect data that is idempotent.  A client
-MAY wish to apply additional restrictions on what data it sends prior to the
-completion of the TLS handshake.  A client otherwise treats 0-RTT keys as
-equivalent to 1-RTT keys, except that it MUST NOT send ACKs with 0-RTT keys.
+Of the frames defined in {{QUIC-TRANSPORT}}, the STREAM, RESET_STREAM, and
+CONNECTION_CLOSE frames are potentially unsafe for use with 0-RTT as they
+carry application data.  Application data that is received in 0-RTT could cause
+an application at the server to process the data multiple times rather than
+just once. Additional actions taken by a server as a result of processing
+replayed application data could have unwanted consequences. A client therefore
+MUST only use 0-RTT for application data that is permitted by the application
+that is in use.

Do we want to have QUIC 0-RTT data and TLS 0-RTT data treated as equivalent for the purposes of being allowed by an application profile?  For example, the next paragraph cites RFC 8470 for HTTP 0-RTT data, but as written that document covers only TLS and not QUIC.
(AFAICT the security properties are the same so there shouldn't be a problem with letting "0-RTT" apply to both raw TLS and QUIC, but it seems like we should consciously choose to do that instead of implicitly doing it.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/4394#pullrequestreview-534984869