RE: Last Call: <draft-ietf-6man-oversized-header-chain-08.txt> (Implications of Oversized IPv6 Header Chains) to Proposed Standard

"Templin, Fred L" <Fred.L.Templin@boeing.com> Wed, 16 October 2013 16:54 UTC

Return-Path: <Fred.L.Templin@boeing.com>
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 7836B11E8138; Wed, 16 Oct 2013 09:54:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.515
X-Spam-Level:
X-Spam-Status: No, score=-6.515 tagged_above=-999 required=5 tests=[AWL=0.084, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iSYL2mZ96G9v; Wed, 16 Oct 2013 09:54:23 -0700 (PDT)
Received: from slb-mbsout-02.boeing.com (slb-mbsout-02.boeing.com [130.76.64.129]) by ietfa.amsl.com (Postfix) with ESMTP id 4960511E82C3; Wed, 16 Oct 2013 09:54:21 -0700 (PDT)
Received: from slb-mbsout-02.boeing.com (localhost.localdomain [127.0.0.1]) by slb-mbsout-02.boeing.com (8.14.4/8.14.4/DOWNSTREAM_MBSOUT) with ESMTP id r9GGsKmc007963; Wed, 16 Oct 2013 09:54:20 -0700
Received: from XCH-PHX-110.sw.nos.boeing.com (xch-phx-110.sw.nos.boeing.com [130.247.25.39]) by slb-mbsout-02.boeing.com (8.14.4/8.14.4/UPSTREAM_MBSOUT) with ESMTP id r9GGsJAv007928 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); Wed, 16 Oct 2013 09:54:19 -0700
Received: from XCH-BLV-504.nw.nos.boeing.com ([169.254.4.85]) by XCH-PHX-110.sw.nos.boeing.com ([169.254.10.89]) with mapi id 14.03.0158.001; Wed, 16 Oct 2013 09:54:18 -0700
From: "Templin, Fred L" <Fred.L.Templin@boeing.com>
To: Fernando Gont <fgont@si6networks.com>
Subject: RE: Last Call: <draft-ietf-6man-oversized-header-chain-08.txt> (Implications of Oversized IPv6 Header Chains) to Proposed Standard
Thread-Topic: Last Call: <draft-ietf-6man-oversized-header-chain-08.txt> (Implications of Oversized IPv6 Header Chains) to Proposed Standard
Thread-Index: AQHOyo2gebc9KTehbEGO6mhunuAlj5n3hyjw
Date: Wed, 16 Oct 2013 16:54:17 +0000
Message-ID: <2134F8430051B64F815C691A62D9831812F8C5@XCH-BLV-504.nw.nos.boeing.com>
References: <20131002185522.20697.96027.idtracker@ietfa.amsl.com> <2134F8430051B64F815C691A62D9831811EB23@XCH-BLV-504.nw.nos.boeing.com> <D1F5CE61-253E-4F07-AED1-4A4AB4C4AB68@employees.org> <2134F8430051B64F815C691A62D9831811EE66@XCH-BLV-504.nw.nos.boeing.com> <E29381FD-C839-4DBA-8711-3A4EBA83E379@employees.org> <2134F8430051B64F815C691A62D9831811EF1C@XCH-BLV-504.nw.nos.boeing.com> <5255D6EE.4050300@gmail.com> <2134F8430051B64F815C691A62D9831811F688@XCH-BLV-504.nw.nos.boeing.com> <5257AD5E.9090806@globis.net> <5257B870.1060003@si6networks.com> <2134F8430051B64F815C691A62D9831812C120@XCH-BLV-504.nw.nos.boeing.com> <52582F8B.8040306@si6networks.com> <52585658.50205@gmail.com> <2134F8430051B64F815C691A62D9831812C654@XCH-BLV-504.nw.nos.boeing.com> <52587EB8.4020506@gmail.com> <f0df0113f68045a1bdadf0155eae5e34@CO1PR05MB442.namprd05.prod.outlook.com> <2134F8430051B64F815C691A62D9831812D72D@XCH-BLV-504.nw.nos.boeing.com> <525DD007.8030100@si6networks.com> <57E5A58E-0DAF-4545-8580-ACDB59475F46@employees.org> <2134F8430051B64F815C691A62D9831812F69E@XCH-BLV-504.nw.nos.boeing.com> <CAFQ9LJ+-4SdUdoku_on0YX9rTHMPBJQ-Yz7e+Rbb_PoFt1+TjA@mail.gmail.com>
In-Reply-To: <CAFQ9LJ+-4SdUdoku_on0YX9rTHMPBJQ-Yz7e+Rbb_PoFt1+TjA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [130.247.104.6]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-TM-AS-MML: disable
Cc: "6man-chairs@tools.ietf.org" <6man-chairs@tools.ietf.org>, 6man Mailing List <ipv6@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, Ray Hunter <v6ops@globis.net>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Wed, 16 Oct 2013 16:54:29 -0000

Hi Fernando,

> -----Original Message-----
> From: fgont.si6networks@gmail.com [mailto:fgont.si6networks@gmail.com]
> On Behalf Of Fernando Gont
> Sent: Wednesday, October 16, 2013 9:35 AM
> To: Templin, Fred L
> Cc: Ole Troan; Ronald Bonica; Brian E Carpenter; 6man-
> chairs@tools.ietf.org; Ray Hunter; 6man Mailing List; ietf@ietf.org;
> Fernando Gont
> Subject: Re: Last Call: <draft-ietf-6man-oversized-header-chain-08.txt>
> (Implications of Oversized IPv6 Header Chains) to Proposed Standard
> 
> [Resending in plain-txt -- my apologies... I was using a web
> interface...]
> 
> Fred,
> 
> On Wed, Oct 16, 2013 at 12:45 PM, Templin, Fred L
> <Fred.L.Templin@boeing.com> wrote:
> > I disagree with the header chain terminating as soon as another IPv6
> > header is encounter. That defeats defense-in-depth, since outer
> > perimeter middleboxes would be forced to admit packets with
> unexamined
> > header chains inward to inner perimeter middleboxes. And, if the
> > unexamined header chains contain bad stuff inserted by an attacker,
> > the attack is successful.
> 
> The same is true if the underlying encapsulation layer is IPv4.

We should not default to doing as badly as IPv4.

> Once
> you're encapsulating, all bets are off in that respect. You should do
> defense-in-depth at the tunnel ingress or egress points. Or, if you
> wish, a middle-box could reassemble-inspect/filter-re-fragment

If an outer perimeter middlebox connects to a 10Gbps link on its
outward facing interface and a 64Kbps link on its inward facing
interface, then the middlebox can allow a successful DOS attack
against its protected domain if it does not look at headers beyond
the outermost IPv6 header.

> Note that no matter what hardcoded limit you enforce, an attacker
> willing to evade you're security controls can always add an
> extra-layer of encapsulation (assuming he controls that).

Yes. With a 1024 limit on the amount of extension headers a
host can add, approximately 5-6 encapsulations can be added
before the tunnel headers cause the header chain to overflow
the IPv6 minMTU. But, that means that there would still be
5-6 protected perimeters to penetrate before an attack could
penetrate through to the innermost protected domain. This is
considerable defense-in-depth.

> Also, common
> security policy is "default deny" -- so if the attacker plays dirty,
> his packets will be dropped.

Without looking past the outermost IP header, there is no way
to discern the good stuff from the bad stuff. So, default
deny will potentially drop good stuff.

> > That requirement is also not observed by common middlebox systems
> > such as Wireshark and tcpdump. Both will blast past encapsulating
> > IPv6 headers through to the header chain inserted by the original
> > host without stopping at the outermost IPv6 header.
> 
> They do what a middle-box would do in this case: whatever part of the
> header chain is there, it's up to you to inspect it. As noted by Ole,
> when you tunnel over IP, IP becomes a link layer... so whatever
> "defense in depth" techniques you're using, they should be prepared to
> deal with scenarios in which a tunneled packet does not contain the
> entire IPv6 header chain, since not all "link layers" (as IPv4 when
> IPv6 is tuneled over IPv4) guarantee a minimum MTU of 1280 bytes.

The 1024 proposal gives 256 bytes of room for encapsulation headers
and still fit within the IPv6 minMTU - enough for 5-6 layers of defense
in depth. This is part of the analysis I believe was missing when the
IPv6 minMTU of 1280 was established.

One clarification I would like to make is that I *like* the 1280
IPv6 minMTU and do not think it was a mistake. It was the missing
analysis of what it means for tunnels that I think we are only
now exploring.

Thanks - Fred
fred.l.templin@boeing.com

> Thanks,
> Fernando