Re: ICMP PTB spoofing attacks

Mark Andrews <marka@isc.org> Sat, 06 February 2016 00:35 UTC

Return-Path: <marka@isc.org>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9AB141B30FA for <ipv6@ietfa.amsl.com>; Fri, 5 Feb 2016 16:35:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.902
X-Spam-Level:
X-Spam-Status: No, score=-6.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham
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 sDBJORKbbJHX for <ipv6@ietfa.amsl.com>; Fri, 5 Feb 2016 16:35:47 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2B4921B313E for <ipv6@ietf.org>; Fri, 5 Feb 2016 16:35:45 -0800 (PST)
Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx.pao1.isc.org (Postfix) with ESMTPS id EFB0C34930F; Sat, 6 Feb 2016 00:35:42 +0000 (UTC)
Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 8B2BA160035; Sat, 6 Feb 2016 00:36:17 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id 7A3CC16009D; Sat, 6 Feb 2016 00:36:17 +0000 (UTC)
Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ganI6g6Tmq2z; Sat, 6 Feb 2016 00:36:17 +0000 (UTC)
Received: from rock.dv.isc.org (c110-21-49-25.carlnfd1.nsw.optusnet.com.au [110.21.49.25]) by zmx1.isc.org (Postfix) with ESMTPSA id 2F9B8160035; Sat, 6 Feb 2016 00:36:17 +0000 (UTC)
Received: from rock.dv.isc.org (localhost [IPv6:::1]) by rock.dv.isc.org (Postfix) with ESMTP id 6D767419CED2; Sat, 6 Feb 2016 11:35:40 +1100 (EST)
To: Fernando Gont <fgont@si6networks.com>
From: Mark Andrews <marka@isc.org>
References: <2134F8430051B64F815C691A62D983183395EF42@XCH-BLV-105.nw.nos.boeing.com> <56B4E39A.5040608@si6networks.com> <2134F8430051B64F815C691A62D983183395F017@XCH-BLV-105.nw.nos.boeing.com> <56B4EA46.3080102@si6networks.com> <2134F8430051B64F815C691A62D983183395F0CE@XCH-BLV-105.nw.nos.boeing.com> <56B50285.9010204@si6networks.com> <2134F8430051B64F815C691A62D983183395F2DD@XCH-BLV-105.nw.nos.boeing.com> <56B50889.8080201@si6networks.com>
Subject: Re: ICMP PTB spoofing attacks
In-reply-to: Your message of "Fri, 05 Feb 2016 17:39:37 -0300." <56B50889.8080201@si6networks.com>
Date: Sat, 06 Feb 2016 11:35:40 +1100
Message-Id: <20160206003540.6D767419CED2@rock.dv.isc.org>
Archived-At: <http://mailarchive.ietf.org/arch/msg/ipv6/EZyLFK4DD8sLhM0KISuVy8oTKis>
Cc: 6man WG <ipv6@ietf.org>, Bob Hinden <bob.hinden@gmail.com>, "Fred Baker (fred)" <fred@cisco.com>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.15
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: Sat, 06 Feb 2016 00:35:49 -0000

In message <56B50889.8080201@si6networks.com>, Fernando Gont writes:
> On 02/05/2016 05:25 PM, Templin, Fred L wrote:
> >>>
> >>> By "accurate" I mean:
> >>>
> >>> - the router that sends the ICMP PTB is telling the truth that there is a restricting link
> >>> - the MTU value that the router writes in the PTB is in fact the true MTU of the
> >>>    restricting link
> >>
> >> Well, most of these protocols run on "good faith", right? -- If I cannot
> >> trust the router to tell the truth, why should I trust it to e.g.
> >> forward my packets?
> > 
> > A router's trustworthiness for forwarding packets and for telling the truth
> > in any ICMP PTB message it sends are mutually exclusive - the first question
> > is one of availability and the second is one of integrity.
> 
> I think that, at the end of the day, its about trust. Can I trust the
> device, or not?
> 
> I my goal as an attacker is to DoS your communications, I don't care
> whether I achieve that by simply throwing your packets away, or by
> sending you some packet that will cause yourself to shutdown and not talk.
> 
> I should say, however, that in the IPv6 case, the worst case scenario is
> a 1280-byte MTU link...

Which is what we force the nameservers we ship to use (for both TCP
and UDP) as PMTUD takes too long for DNS even when it works.

> > Plus, it is not necessarily just the on-path routers - any off-path "router"
> > could also inject spurious PTBs.
> 
> For off-path attackers, you validate ICMP PTBs. If you don't, well...
> prepare for trouble.  And, yes, if EHs are in use, you may not be able
> to verify them.

Only if all the original headers + PTB header > 1280 which should
be a vanishing small pecentage of times.

> -- 
> Fernando Gont
> SI6 Networks
> e-mail: fgont@si6networks.com
> PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492
> 
> 
> 
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org