Re: [tsvwg] I-D Action: draft-ietf-tsvwg-udp-options-21.txt

"touch@strayalpha.com" <touch@strayalpha.com> Fri, 09 June 2023 22:58 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 73DD9C15DD5E for <tsvwg@ietfa.amsl.com>; Fri, 9 Jun 2023 15:58:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.316
X-Spam-Level:
X-Spam-Status: No, score=-1.316 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, 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=no 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 TLRdD86oTP25 for <tsvwg@ietfa.amsl.com>; Fri, 9 Jun 2023 15:58:53 -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 9168CC15DD44 for <tsvwg@ietf.org>; Fri, 9 Jun 2023 15:58:53 -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: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To: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=s4eV9tto47sHceuplijb+7cbsYi/jE0Gra13E7J5opA=; b=TtCn93atqJTPuLuZHbldcJk7Y+ ojRTwhYvUQ6Ggc40/cdwcKHLax5Im/mtji9htMNgaDAXl1KcLSvMOXLwndK1o1BfaspfxG3IRXnVs 8efykrkQmEyZKUxOokVPHrIUL2DKGJfSR+zkxoB+Lnk73PPpPvqLYdCmP0Uf9AmRiBhvzAozG59Rv EmqHtsdpCtCxoBryw858kDo7v7Y5F1BB6KUdkmrMhF7KY2cYjhGrZn3Pl622Z3vqXIWPAid5EFQX0 0rP48/ogOWU3/N+T7WO5qDaMFqvgvnUGH6g870yfyRZMrlAvxOwtU937ydyLdF1MKJe+V0Jl7t6of 2DSXDcVA==;
Received: from [172.58.209.100] (port=11809 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 1q7l4C-001jE3-8P; Fri, 09 Jun 2023 18:58:52 -0400
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: "touch@strayalpha.com" <touch@strayalpha.com>
In-Reply-To: <CALx6S37Cyk_SwOHm6dT_jxbtqxuA-1Kk9aN6Fs=rR5SEJMhXYg@mail.gmail.com>
Date: Fri, 09 Jun 2023 15:58:35 -0700
Cc: tsvwg@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <A5427E6C-C773-4B67-9F57-56BF8CC2AE0D@strayalpha.com>
References: <168628341428.60924.1127559055874638238@ietfa.amsl.com> <CALx6S34DGvkdvbmNqD2-1YK=5mXDxvy8NROCUZZgSWxiFLurfQ@mail.gmail.com> <B64DA8BB-F2BE-4847-BE19-1182172F27F6@strayalpha.com> <CALx6S35AkGmRo1u4oxn55w-7dv==AUXT3EKsbMB6a2Zxerps6g@mail.gmail.com> <2D59EEAE-E56A-4C8C-A2D5-4EDF7C534A59@strayalpha.com> <CALx6S37Cyk_SwOHm6dT_jxbtqxuA-1Kk9aN6Fs=rR5SEJMhXYg@mail.gmail.com>
To: Tom Herbert <tom@herbertland.com>
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/OWu8umgbhDtLChZgolxRip2tNG0>
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 22:58:57 -0000

Cutting to the chase…

> On Jun 9, 2023, at 3:24 PM, Tom Herbert <tom@herbertland.com> wrote:
>> ...
>> 

*
>> There ARE good reasons a source might send more than N (for any N) SAFE options that a receiver might not support - and to do so repeatedly.
> 
> Really? From the draft:
> 
>>> Each option SHOULD NOT occur more than once in a single UDP
>   datagram, the only exceptions being NOP, EXP, and UEXP. If an option
>   other than these occurs more than once, a receiver MUST interpret
>   only the first instance of that option and MUST ignore all others.

The same option multiple times is NOT the same thing as many different options (the latter is what I refer to at the “*”)

> So if an option is received more than once is ignored, how is that
> possibly useful?

It isn’t, but it isn’t necessarily an attack either.

> Also note that the MUST requirement here forces the
> receiver to track the occurrence of each option and check if it has
> been seen then that is more processing for the CPU that exacerbates
> the DOS attack.

We’re talking about different things:

1. Seeing many DIFFERENT unknown SAFE options is not an attack
	there’s no good reason to treat it as such
	if any socket consumes too much resources FOR ANY REASON, a host can always throttle resources to that socket
	but that’s outside the scope of this doc

2. Seeing multiple copies of the same option
	again, there are only a few cases where this should ever happen
	but seeing one option twice or even three times is a mistake - not necessarily an attack

Yes, the MUST here requires a check at the receiver - to ignore subsequent occurrences. NOT to treat it as an attack.
NOP is the only one we include that way.  We can add “any time you see more than 7 NOPs or repeated other options is a problem, if the problem is persistent, then start doing something new like dropping packets”.

But I think we’re engineering a protocol specification here, not an anti-DOS mechanism. I think we should the latter to implementers.

>> 
>> I do NOT endorse inferring DOS from behavior that is unexpected.
> 
> Unlimited options are a known attack vector and this issue has been
> addressed in other protocols. IMO, the mitigations described in this
> draft are not sufficient and there's no reason to believe that UDP
> Options is less susceptible to DOS attack than other protocols. I have
> raised this issue several times.
> 
> @working group chairs, please note my objection to UDP Options moving
> forward because of insufficient considerations for Denial of Service
> attacks

It was raised largely in terms of NOPs before; now you’re raising it for all options.

UDP has no strict limit on how many valid options can be used. That’s a feature, not a bug.
Implementers can decide for themselves, for each connection, how much they want to support.

But what we DO know is that finite limits WILL be exceeded for good reasons, then we’ll end up arguing how we can’t do anything because vendors locked in implementations with limits.

This is a USER protocol. Let the USER decide.

Joe