Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-21.txt
"touch@strayalpha.com" <touch@strayalpha.com> Fri, 09 June 2023 17:56 UTC
Return-Path: <touch@strayalpha.com>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 868BCC14CE4B for <tsvwg@ietfa.amsl.com>; Fri, 9 Jun 2023 10:56:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.315
X-Spam-Level:
X-Spam-Status: No, score=-6.315 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=strayalpha.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IhNqAEm1WyuB for <tsvwg@ietfa.amsl.com>; Fri, 9 Jun 2023 10:56:43 -0700 (PDT)
Received: from server217-2.web-hosting.com (server217-2.web-hosting.com [198.54.115.98]) (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 79178C151060 for <tsvwg@ietf.org>; Fri, 9 Jun 2023 10:56:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=strayalpha.com; s=default; h=To:References:Message-Id:Cc:Date:In-Reply-To: From:Subject:Mime-Version:Content-Type:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ttXNtqVS/mfltIjIVbuADGfc58+sSbOjtRXVG5PM0Qs=; b=1s8P8kZd8u6r+0sSLlgdSgYG9/ rB6MNx4MZjjjIKvgfI/itoKZiUAaUBKDdWUy6bX1ZtbvWb3G6ZKntyJC7Vbu8ZjuJU6Z/Mbq++XXM A50l4kfs7ClFWpgNGtWotq5QSKKVL/6zhYaA7ky+SIFNQQnAIDYZ4Pjb4moqaYK1EsbUyRNjzWal+ aDjpvow2tEtH4iqLkJYaJNo533wS+RvuFMIKobPx+8h/KCL5ki7d0sxhtGLzUwyvVNkCT7XlWBdeT JUKcNtObpH4C5MCJamw9TIw7T4h/PCCWU+VUr3ZZ3qMi8K9w+DxDRNCx92z/tJQS/XOM8BB5BF2jh T3t5fD8A==;
Received: from [172.58.209.100] (port=14605 helo=smtpclient.apple) by server217.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <touch@strayalpha.com>) id 1q7gLj-00EHjK-Er; Fri, 09 Jun 2023 13:56:40 -0400
Content-Type: multipart/alternative; boundary="Apple-Mail=_390570DE-2603-4D94-A488-CEB186244FDD"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: "touch@strayalpha.com" <touch@strayalpha.com>
In-Reply-To: <CALx6S34DGvkdvbmNqD2-1YK=5mXDxvy8NROCUZZgSWxiFLurfQ@mail.gmail.com>
Date: Fri, 09 Jun 2023 10:56:23 -0700
Cc: tsvwg@ietf.org
Message-Id: <B64DA8BB-F2BE-4847-BE19-1182172F27F6@strayalpha.com>
References: <168628341428.60924.1127559055874638238@ietfa.amsl.com> <CALx6S34DGvkdvbmNqD2-1YK=5mXDxvy8NROCUZZgSWxiFLurfQ@mail.gmail.com>
To: Tom Herbert <tom=40herbertland.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3731.600.7)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server217.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - strayalpha.com
X-Get-Message-Sender-Via: server217.web-hosting.com: authenticated_id: touch@strayalpha.com
X-Authenticated-Sender: server217.web-hosting.com: touch@strayalpha.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/UquwLIp2ULF6uNpMaslU-81V25c>
Subject: Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-21.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Jun 2023 17:56:47 -0000
See below... — Dr. Joe Touch, temporal epistemologist www.strayalpha.com > On Jun 9, 2023, at 8:24 AM, Tom Herbert <tom=40herbertland.com@dmarc.ietf.org> wrote: > >> From the draft: > >>> Receivers persistently experiencing packets with more than seven > consecutive NOPs SHOULD log such events, at least occasionally, as a > potential DOS indicator. > > Logging that a DOS attack might be happening is fine, but if the user > is experiencing a DOS attack what is the recommended mitigation? I > suggest text similar to RFC8504 would be applicable: > > "A host MAY limit the number of consecutive PAD1 options in > destination options or hop-by-hop options to 7. In this case, if > there are more than 7 consecutive PAD1 options present, the packet MAY > be silently discarded." > > where for UDP options the correct behavior is probably to stop options > processing and ignore whatever is past the offset where the limit is > exceeded. Agreed, but this needs to be in the context of responding to an attack. We need to make it clear that sending 8 NOPs once doesn’t make the packet silently drop - because sending more than 7 is a SHOULD NOT, not a MUST NOT. I’ll add text to that shortly. > There are some other potential DOS issues. > >>> Receivers supporting UDP options MUST silently ignore unknown > SAFE options (i.e., in the same way a legacy receiver would). That > includes options whose length does not indicate the specified > value(s), as long as the length is not inherently invalid (i.e., > smaller than 2 for the default and 4 for the extended formats). > > I'm not sure what this means. A legacy receiver ignores all options, > but in this case it seems like the intent is probably to skip over > unknown SAFE options. SAFE are safe to skip over, UNSAFE are not. I will clarify that in the text. > If that's the case, then this creates a > potential DOS attack similar to the one for NOPs where an attacker > could fill a packet with a bunch of SAFE options that it knows are > going to be unknown to the user. Again, RFC8504 provide guidance that > might be applicable for this: I disagree; we can ignore unknown SAFE options forever, and should. > A host MAY impose" a limit on the maximum number of non-padding > options allowed in the destination options and hop-by-hop extension > headers. If this feature is supported, the maximum number SHOULD be > configurable, and the default value SHOULD be set to 8. The limits > for destination options and hop-by-hop options may be separately > configurable. If a packet is received and the number of destination > or hop-by-hop options exceeds the limit, then the packet SHOULD be > silently discarded." Again, I disagree. We might say that “a large number of unknown SAFE options MAY be treated similarly to a large number of NOPs, i.e., to be logged and MAY be silently discarded if a DOS attack is inferred from additional information, e.g., the frequency or number of such options, but they MUST NOT be discarded as a matter of course without such additional context. >>> Receivers supporting UDP options MUST silently drop all UDP > options in a datagram containing an UNSAFE option when any UNSAFE > option it contains is unknown. See Section 10 for further discussion > of UNSAFE options. > > If there are multiple UNSAFE options in a packet, how does this work? > Does this require that the receiver scans the packet searching for any > unknown UNSAFE option before starting to process options? It doesn’t have to scan in advance, it just has to drop the packet when it encounters an unknown UNSAFE option. “Hardened” systems might want to do such a scan, but again this is NOT an indication of an attack without additional information. Joe > > Tom > > On Thu, Jun 8, 2023 at 9:04 PM <internet-drafts@ietf.org> wrote: >> >> >> A New Internet-Draft is available from the on-line Internet-Drafts >> directories. This Internet-Draft is a work item of the Transport Area Working >> Group (TSVWG) WG of the IETF. >> >> Title : Transport Options for UDP >> Author : Joe Touch >> Filename : draft-ietf-tsvwg-udp-options-21.txt >> Pages : 44 >> Date : 2023-06-08 >> >> Abstract: >> Transport protocols are extended through the use of transport header >> options. This document extends UDP by indicating the location, >> syntax, and semantics for UDP transport layer options. >> >> The IETF datatracker status page for this Internet-Draft is: >> https://datatracker.ietf.org/doc/draft-ietf-tsvwg-udp-options/ >> >> There is also an htmlized version available at: >> https://datatracker.ietf.org/doc/html/draft-ietf-tsvwg-udp-options-21 >> >> A diff from the previous version is available at: >> https://author-tools.ietf.org/iddiff?url2=draft-ietf-tsvwg-udp-options-21 >> >> Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts >> >> >
- [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-… internet-drafts
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… Tom Herbert
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… touch@strayalpha.com
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… Tom Herbert
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… touch@strayalpha.com
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… Tom Herbert
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… touch@strayalpha.com
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… Tom Herbert
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… touch@strayalpha.com
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… Tom Herbert
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-opti… touch@strayalpha.com