Death by extension header (was:RE: New Version Notification for draft-li-6man-hbh-fwd-hdr-00.txt)

Ron Bonica <rbonica@juniper.net> Fri, 10 July 2020 18:18 UTC

Return-Path: <rbonica@juniper.net>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 82A603A07F4 for <ipv6@ietfa.amsl.com>; Fri, 10 Jul 2020 11:18:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net header.b=w/YXDtqU; dkim=pass (1024-bit key) header.d=juniper.net header.b=LyNaQ7a1
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 SidrMw0VSs68 for <ipv6@ietfa.amsl.com>; Fri, 10 Jul 2020 11:18:20 -0700 (PDT)
Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (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 560793A07F2 for <6man@ietf.org>; Fri, 10 Jul 2020 11:18:19 -0700 (PDT)
Received: from pps.filterd (m0108161.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06AIGerQ021709; Fri, 10 Jul 2020 11:18:10 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=PPS1017; bh=HSlyB3XnD7SsZQNhd40JHjpUOCo1mvVTAKSR0J3gPj4=; b=w/YXDtqU3cTGie0GcPRiE3w+5WchWWl519dhA4Lhj+YgVu94nkr9Ijv3PlL0K5bBTfy0 kQ0vQQIFSvsoBki3+MgdlSi9Sus9DHa/jpYfnViGKZfwb4oJZVaSE0HcIH6Tm59Hv7Hv sK+MXx8K+LwMA9BYCW2mTHkDxpucd9OCdqXEityS8KyPqCH4iYWXApD6nWWg0nlUaxkI nU1CEO95Agzcz76UxPOGBH5kNen91visvaaHyb+w1FM0frekbLudKHb5uPXJk482jtii CuGZn0MrtK1UTGn3rPMfCRfgYiMxawa0Gd9DccbSvponJSAHE1H4kzD/hT70MjXNGHwf yw==
Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2172.outbound.protection.outlook.com [104.47.58.172]) by mx0b-00273201.pphosted.com with ESMTP id 325k35c7hw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Jul 2020 11:18:10 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jnIL2XC9tStiJ8KjrrIgAhIqRPX+ROd7EaaijfOomlkv5Vh/ZSCC7lQmvmtv5rPJoBfDbvF+4tEJvcF3epVVagPW0x1v3Zynmzvp82zXxCYDG5QjKwxJ5lmlbGz/ihEriLFvA78WpT8az1lHOEl679yr9O58vma+niebba7XKVZKwwL3owwvhSpv2ZGmkphmbrlT9q/799BwUG/s78ajC/eqMUKw6F8TQnKzDfk8Dd2SYVYFPOjydBQFPJTze3op12YMwicrFNqYh9SJSXe5RwlZ0pGDtQVb1sPQGv5Zt+LS9EVKrJQYf8fGo6VpVgJngDP6DNlNx5PCog1U8sBlMQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HSlyB3XnD7SsZQNhd40JHjpUOCo1mvVTAKSR0J3gPj4=; b=FMuxh+QgyZphzJKdXz2Xk6ZjetIoM+nzqUPeK9lVFdWhyaY2q0VX1VTsXslb1mwkGhsmybGCz8Ajv+gF2oqC6hHURSiDiMWB8rneSq2vDA8HTVcnKkSJmU7GpTYBQ21QjVSI/jLJP6D579NgsIxo3bPEQfBGEljoRne/vc7wYOgMiHka1b3XaIgg89lbZw6O0HUIqN/KgHnaJb5ITao4/p6IBlgxeKq04B5AkQAzhb3RiVM5SVwN+Ku1xZ6llhYNSWzTJktYqbmRm3PSehuR2L+2ZnJFNAy0bKDgsWoJbieC0/r/6PumjAgwOkop1qZ8MXJifmMNRF/zo/RCkHN1Rg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HSlyB3XnD7SsZQNhd40JHjpUOCo1mvVTAKSR0J3gPj4=; b=LyNaQ7a14cbo7dFRJ+wkVsjmc5XIUjWm5aAjb5eyN1G0h8k9GA0Rx+t62Lq7RZqUlqaS3JtBItrub5k37SAAdvaJwjh84l13JohyE+ftlxEViD11w+bna1QCHoooy/z4RzUOhxoEolje2lt1h4ZbGX6rEnNl7Y/rJtx0yXnpMXY=
Received: from DM6PR05MB6348.namprd05.prod.outlook.com (2603:10b6:5:122::15) by DM5PR05MB3113.namprd05.prod.outlook.com (2603:10b6:3:c6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9; Fri, 10 Jul 2020 18:18:08 +0000
Received: from DM6PR05MB6348.namprd05.prod.outlook.com ([fe80::9d38:2336:1379:ce2e]) by DM6PR05MB6348.namprd05.prod.outlook.com ([fe80::9d38:2336:1379:ce2e%7]) with mapi id 15.20.3195.009; Fri, 10 Jul 2020 18:18:08 +0000
From: Ron Bonica <rbonica@juniper.net>
To: Tom Herbert <tom@herbertland.com>
CC: "Pengshuping (Peng Shuping)" <pengshuping@huawei.com>, "6man@ietf.org" <6man@ietf.org>
Subject: Death by extension header (was:RE: New Version Notification for draft-li-6man-hbh-fwd-hdr-00.txt)
Thread-Topic: Death by extension header (was:RE: New Version Notification for draft-li-6man-hbh-fwd-hdr-00.txt)
Thread-Index: AdZW5Jf1tA49q1d0T3O8YhrTtP05Fg==
Date: Fri, 10 Jul 2020 18:18:08 +0000
Message-ID: <DM6PR05MB6348708352E1EE4421A61D63AE650@DM6PR05MB6348.namprd05.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2020-07-10T18:18:07Z; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Name=0633b888-ae0d-4341-a75f-06e04137d755; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ActionId=daa0ce48-c673-48d2-995f-8707c54c68f2; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=2
dlp-product: dlpe-windows
dlp-version: 11.5.0.60
dlp-reaction: no-action
authentication-results: herbertland.com; dkim=none (message not signed) header.d=none;herbertland.com; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [173.79.132.205]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 5ee6eec1-9683-4891-ecac-08d824fd990c
x-ms-traffictypediagnostic: DM5PR05MB3113:
x-microsoft-antispam-prvs: <DM5PR05MB31139838B25A4490E23C50F7AE650@DM5PR05MB3113.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: FtFmDXjuR7hiOo9RecS2SOym+daxn1A7NVVz33iJhrvfspCeY9KMSJyId9P97Tpd2LqgjsIMYYqqLBsY2c0g+NHdj83oYj5m6PoymKtyI3x6IwLY54yWJpWslobdVD7G+NwRA5fnp2NNC3Qu/oA54TWJlWybUnn0Kp5NB3ivk2vw1OWXDHwDk0Lphj6y0MnOvxDXThjZhwQvsgo44sjpxKu38wIhdv1ysHStR0/GW5gin7MDWCSF4WNzWe28TsFHQpQM8XF7aCvMeLM+sCGpCE9XzJrIemQHwmVLmjZOrOb5sVibx2OMQ+SqF8otdRrQDsqs8VcckD/E58u8EDWm3qGuFJpBBIVDXUu1/Nl8WkHBmPxsSyjcfSAIiE/jILXXA0YyGlVZwG0tYCGNerTJo5eSJFou5eOFIW2G+DUzorByPEHmwYEgulu2+cgdcOPJg8iffFZ3NGENgoYoP/UsAw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR05MB6348.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(366004)(376002)(396003)(39860400002)(136003)(64756008)(83380400001)(66946007)(5660300002)(26005)(71200400001)(186003)(966005)(6916009)(15650500001)(55016002)(9686003)(52536014)(478600001)(66476007)(6506007)(4326008)(54906003)(66446008)(66556008)(7696005)(316002)(53546011)(86362001)(76116006)(66574015)(8676002)(2906002)(33656002)(8936002)(219283001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: gfRcuC8eEvYKw8fa30CkV2MEF8IGkTL+len0DL7nyhO8T4iU25hjFv1Rm7eLFMyH/lOgaaFTKqUFoHuT8/7rPxRRkJdOifxrjlyR+XBZQ/wsGIGl38dWF51YAAv97i/D/N7S9ff8F8NW6ycDuyRQrdjIJohfQ9v3da+j/Ujfe3Q9OcwjGRea9sMJAFM3zU5iwbsCdDwhGmIlW8s9Ot8Ue3UUljAjb3YQCMABxG0VkdET3NyTH9RGDL+ZOSOqwOCvQtuzqlU8NP9EFAPUORScTosdjHQDphkV/7B1zXsCuZW2eILGWqTFLlIxdje5nQ3brfPNqBZ37WTNLtMtlt8mlLyTHyujIbp2Wrg5Gy/I3A/zUgd4mYkze2tUYkdCZoOtfBI+lj6BBLh8wZqoOJrAXvkWYe7+Pv15UoH9x67KjXJUPnaIeys54tMRL/Sk6tgyn7Qaesw7+hf5AenpepFTKE7BMw3g+1687A9idY1XYDTm36tMSN0Jor1NrFhLhaLR
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR05MB6348.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5ee6eec1-9683-4891-ecac-08d824fd990c
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2020 18:18:08.4542 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: kvkZg4HyVcGY8O0mHURppalGZhcbZMoTQMn85OmTUtCUQOmU98AaA5Lfy0ms3bdgZ5/+j2raY10pBsveEFG/kQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB3113
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-10_14:2020-07-10, 2020-07-10 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 malwarescore=0 spamscore=0 mlxscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 adultscore=0 clxscore=1011 phishscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007100122
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/u4Y4ks3U3rv2-eJUmClkf4GwsRA>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Jul 2020 18:18:23 -0000

Tom,

I am forking a new thread since this is not directly related to Shuping's draft.

Any variable length extension header can be used in a DoS attack. So, if a node encounters a packet that satisfies any of the following criteria, it should discard the packet and send an ICMP message as described in https://tools.ietf.org/html/draft-herbert-6man-icmp-limits-03.

- The extension header chain is longer than the node can process
- An individual extension header is longer than the node can process
- The total number of options contained by all instances of the HBH and Destination Options header exceeds the number or options that the node can process.

                                                                       Ron



Juniper Business Use Only

-----Original Message-----
From: Tom Herbert <tom@herbertland.com> 
Sent: Friday, July 10, 2020 1:13 PM
To: Ron Bonica <rbonica@juniper.net>
Cc: Pengshuping (Peng Shuping) <pengshuping@huawei.com>; 6man@ietf.org
Subject: Re: New Version Notification for draft-li-6man-hbh-fwd-hdr-00.txt

[External Email. Be cautious of content]


On Fri, Jul 10, 2020 at 7:59 AM Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org> wrote:
>
> Peng,
>
> While your solution may require refinement, I think that you have latched on to a problem that needs to be solved. HBH Options, as they were originally conceived in RFC 1883, are very useful.
>
> When IPv6 was first implemented on high-speed routers (circa 2000), HBH options were not yet well-understood and ASICs were not so capable as they are today. So, early IPv6 implementation dispatched all packet that contain HBH options to their slow path. In these implementations, a large flow of IPv6 packets could congest the slow path, causing other critical functions that are executed on the slow path to fail. These critical functions include routing and network management.
>
> To mitigate this DoS vulnerability, many operators deployed Access Control Lists (ACLs) that discard all packets containing HBH Options. This introduced a circular problem:
>
> - An implementation problem caused HBH to become a DoS vector
> - Because HBH was a DoS vector, network operators deployed ACLs that 
> discard packets containing HBH
> - Because network operators deployed ACLs that discard packets 
> containing HBH, network designers stopped defining new HBH Options
> - Because network designers stopped defining new HBH Options, the 
> community was not motivated to fix the implementation problem that 
> cause HBH to become a DoS vector
>
> If we can fix the implementation problem that caused HBH to become a DoS vector, we can break this cycle and start using HBH Options.
>
Ron,

I think there were "protocol problems" in the original design of HBH.
The requirement that _all_ routers in the path process Hop-by-Hop options was in retrospect too austere, and the possibility that an attacker could stuff a packet with hundreds of bogus options, only limited by MTU, was, again in retrospect, a pretty obvious DOS vector.
I believe these problems have been addressed in RFC8200 and RFC8504.
We certainly welcome the feedback from router vendors whether these mitigations are sufficient to make HBH options deployable.

Tom

> Let's continue to work on a solution.
>
>                                                          Ron
>
>
>
> Juniper Business Use Only
>
> -----Original Message-----
> From: ipv6 <ipv6-bounces@ietf.org> On Behalf Of Pengshuping (Peng 
> Shuping)
> Sent: Thursday, July 2, 2020 12:07 PM
> To: 6man@ietf.org
> Subject: FW: New Version Notification for 
> draft-li-6man-hbh-fwd-hdr-00.txt
>
> [External Email. Be cautious of content]
>
>
> Hi Folks,
>
> We have just uploaded a new draft aiming to analyze and tackle the issues faced by the Hop-by-Hop Options Header, which has been sparsely used without any form of large scale deployment.
>
> However, as IPv6 is being rapidly and widely deployed worldwide, more and more new services that requires hop-by-hop forwarding process behavior are emerging, and also the already defined over ten HBH Options are going to be used widely in practice.
>
> We look forward to hearing your feedback and comments, and try to release the benefits that could be provided by HBH Options header altogether.
>
> Best regards,
> Shuping
>
> -----Original Message-----
> From: internet-drafts@ietf.org [mailto:internet-drafts@ietf.org]
> Sent: Thursday, July 2, 2020 11:31 PM
> To: Lizhenbin <lizhenbin@huawei.com>; Pengshuping (Peng Shuping) 
> <pengshuping@huawei.com>
> Subject: New Version Notification for draft-li-6man-hbh-fwd-hdr-00.txt
>
>
> A new version of I-D, draft-li-6man-hbh-fwd-hdr-00.txt has been successfully submitted by Shuping Peng and posted to the IETF repository.
>
> Name:           draft-li-6man-hbh-fwd-hdr
> Revision:       00
> Title:          Hop-by-Hop Forwarding Options Header
> Document date:  2020-07-03
> Group:          Individual Submission
> Pages:          10
> URL:            https://urldefense.com/v3/__https://www.ietf.org/internet-drafts/draft-li-6man-hbh-fwd-hdr-00.txt__;!!NEt6yMaO-gk!QoInpMGHwaC7LsKAVISa9A00dbzuCmO7S4CG2fZYHGYeOXYwVmtNTFnzgB-bqLrg$
> Status:         https://urldefense.com/v3/__https://datatracker.ietf.org/doc/draft-li-6man-hbh-fwd-hdr/__;!!NEt6yMaO-gk!QoInpMGHwaC7LsKAVISa9A00dbzuCmO7S4CG2fZYHGYeOXYwVmtNTFnzgM5iPE22$
> Htmlized:       https://urldefense.com/v3/__https://tools.ietf.org/html/draft-li-6man-hbh-fwd-hdr-00__;!!NEt6yMaO-gk!QoInpMGHwaC7LsKAVISa9A00dbzuCmO7S4CG2fZYHGYeOXYwVmtNTFnzgPvsH43l$
> Htmlized:       https://urldefense.com/v3/__https://datatracker.ietf.org/doc/html/draft-li-6man-hbh-fwd-hdr__;!!NEt6yMaO-gk!QoInpMGHwaC7LsKAVISa9A00dbzuCmO7S4CG2fZYHGYeOXYwVmtNTFnzgBQxbwZb$
>
>
> Abstract:
>    RFC8200 specifies the HBH header that is assumed to be processed by
>    each hop in the delivery path of the packet.  However, RFC8200 also
>    expects that nodes processing the HBH header have been explicitly
>    configured to do so.  Therefore, it cannot be assumed that a HBH
>    header present in the packet is processed.  It all depends on the
>    configuration of each node across the path.  Moreover, in most of
>    networks today, the processing of the HBH header is done in the
>    control plane (slow processing path) which incurs several limitations
>    among which resources consumption and security risk.
>
>    For these reasons, over time, the Hop-by-Hop Options header has been
>    sparsely used without any form of large scale deployment.  Also, most
>    of already defined HBH options are forwarding options which contain
>    forwarding plane information that needs not to be sent to the control
>    plane.
>
>    This document proposes a new Hop-by-Hop Forwarding Options Header in
>    order to carry Hop-by-Hop options that are solely intended to and
>    processed by the forwarding plane.  This new HBH header is confined
>    in and dedicated to the forwarding plane while the current HBH header
>    can still be used for control plane options.
>
>
>
>
>
> Please note that it may take a couple of minutes from the time of submission until the htmlized version and diff are available at tools.ietf.org.
>
> The IETF Secretariat
>
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: 
> https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/ipv6
> __;!!NEt6yMaO-gk!QoInpMGHwaC7LsKAVISa9A00dbzuCmO7S4CG2fZYHGYeOXYwVmtNT
> FnzgEBbFhyl$
> --------------------------------------------------------------------
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: 
> https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/ipv6
> __;!!NEt6yMaO-gk!Qu9y9Ou2SvlYIZjMQa3hBXcu08HG3W4BBIcFoOHCfp41HtkdIYuDs
> XM8uyxPWt9N$
> --------------------------------------------------------------------