Re: ICMP PTB spoofing attacks (was: RE: 6MAN: Adoption call on draft-hinden-6man-rfc1981bis-01)

Fernando Gont <fgont@si6networks.com> Fri, 05 February 2016 20:18 UTC

Return-Path: <fgont@si6networks.com>
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 AD47D1ACE4B for <ipv6@ietfa.amsl.com>; Fri, 5 Feb 2016 12:18:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 ypQc6-hWigqW for <ipv6@ietfa.amsl.com>; Fri, 5 Feb 2016 12:18:10 -0800 (PST)
Received: from fgont.go6lab.si (fgont.go6lab.si [91.239.96.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3717D1ACDC5 for <ipv6@ietf.org>; Fri, 5 Feb 2016 12:18:10 -0800 (PST)
Received: from [192.168.3.107] (unknown [181.165.125.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id 4CEEF206A2B; Fri, 5 Feb 2016 21:18:04 +0100 (CET)
Subject: Re: ICMP PTB spoofing attacks (was: RE: 6MAN: Adoption call on draft-hinden-6man-rfc1981bis-01)
To: "Templin, Fred L" <Fred.L.Templin@boeing.com>, "Fred Baker (fred)" <fred@cisco.com>
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>
From: Fernando Gont <fgont@si6networks.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <56B50285.9010204@si6networks.com>
Date: Fri, 05 Feb 2016 17:13:57 -0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
MIME-Version: 1.0
In-Reply-To: <2134F8430051B64F815C691A62D983183395F0CE@XCH-BLV-105.nw.nos.boeing.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/ipv6/Ef23rav53--_xaAaxu7BLeK-5-I>
Cc: Bob Hinden <bob.hinden@gmail.com>, 6man WG <ipv6@ietf.org>
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: Fri, 05 Feb 2016 20:18:12 -0000

On 02/05/2016 03:42 PM, Templin, Fred L wrote:
> Hi Fernando,
> 
>> -----Original Message-----
>> From: Fernando Gont [mailto:fgont@si6networks.com]
>> Sent: Friday, February 05, 2016 10:31 AM
>> To: Templin, Fred L; Fred Baker (fred)
>> Cc: Bob Hinden; 6man WG
>> Subject: Re: ICMP PTB spoofing attacks (was: RE: 6MAN: Adoption call on draft-hinden-6man-rfc1981bis-01)
>>
>> On 02/05/2016 03:25 PM, Templin, Fred L wrote:
>>> Hi Fernando,
>>>
>>>> -----Original Message-----
>>>> From: Fernando Gont [mailto:fgont@si6networks.com]
>>>> Sent: Friday, February 05, 2016 10:02 AM
>>>> To: Templin, Fred L; Fred Baker (fred)
>>>> Cc: 6man WG; Bob Hinden
>>>> Subject: Re: ICMP PTB spoofing attacks (was: RE: 6MAN: Adoption call on draft-hinden-6man-rfc1981bis-01)
>>>>
>>>> On 02/05/2016 02:46 PM, Templin, Fred L wrote:
>>>>> Hi Fred,
>>>>>
>>>>>> As soon as I say "there is no such attack", one will materialize, so I won't assert that.  However, I am not aware of attacks in
>> which
>>>>>> someone creates ICMP PTBs and sends them to someone else in order to reduce their windows unnecessarily.
>>>>>
>>>>> RFC4821 Section 11 (Security Considerations) recognizes the potential for spoofed
>>>>> (i.e., inaccurate) ICMP PTB messages and suggests a mitigation (ignore all ICMP PTBs).
>>>>> For paths over which any node in the network can inject an inaccurate ICMP PTB
>>>>> message, an attack vector exists.
>>>>
>>>> In theory, you can do some basic validation for ICMP messages. However,
>>>> in v6, as a result of possible EHs, you may not find any meaningful data
>>>> in the ICMP payload to apply validity checks on.
>>>>
>>>> Anyway, you can implement the countermeasure we implemented in
>>>> <https://tools.ietf.org/html/rfc5927#section-7.2> -- I implemented it
>>>> for OpenBSD, and it still runs it... and IIRC it was ported to at least
>>>> NetBSD later.
>>>
>>> Thanks for the reference. It seems to account for the case of paths that may
>>> deliver inaccurate ICMP PTBs, but does not account for the case of paths that
>>> fail to deliver accurate ICMP PTBs. Do we know of paths always deliver
>>> accurate ICMP PTBs but can also deliver inaccurate ICMP PTBs?
>>
>> What do you mean by "accurate"?
> 
> 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?

-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492