Re: 6renum alive again? [A common problem with SLAAC in "renumbering" scenarios]

Fernando Gont <fgont@si6networks.com> Thu, 21 February 2019 16:11 UTC

Return-Path: <fgont@si6networks.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 637C7130EA4 for <ipv6@ietfa.amsl.com>; Thu, 21 Feb 2019 08:11:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 Yg5i022Tig9b for <ipv6@ietfa.amsl.com>; Thu, 21 Feb 2019 08:11:52 -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 48CB11286E7 for <ipv6@ietf.org>; Thu, 21 Feb 2019 08:11:52 -0800 (PST)
Received: from [192.168.3.66] (unknown [186.137.76.21]) (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 6594D84571; Thu, 21 Feb 2019 17:11:47 +0100 (CET)
Subject: Re: 6renum alive again? [A common problem with SLAAC in "renumbering" scenarios]
To: Tim Chown <Tim.Chown@jisc.ac.uk>, 神明達哉 <jinmei@wide.ad.jp>
Cc: 6man WG <ipv6@ietf.org>
References: <60fabe4b-fd76-4b35-08d3-09adce43dd71@si6networks.com> <8CE7A0CD-97D9-46A0-814D-CAF8788F9964@consulintel.es> <e3e0bf2273e04f15b792665d0f66dfe5@boeing.com> <4c5fab33-2bff-e5b5-fc1d-8f60a01a146d@go6.si> <b4525832-9151-20bf-7136-31d87ba6c88d@huitema.net> <463f15cf-2754-e2e8-609d-dc0f33448c6c@go6.si> <ff649810-7242-7bc2-d36f-3f998f7bdd71@asgard.org> <9CDF41CA-83B4-4FC4-B995-EF79727C5458@steffann.nl> <CAO42Z2wA+vLmU7+sU6xLK7TO6pWfNQA5shs9zp=PqANCihLmBQ@mail.gmail.com> <BAB3061A-1808-4C0E-AA1B-2D7DD5BA63FC@employees.org> <bbd8b761-403a-5b3f-3f04-dc3bfdea116e@foobar.org> <6F3036C6-50A1-43C6-B554-31293B69E59D@employees.org> <433607c1-dbc6-a42e-cb17-dc209e33bdaa@si6networks.com> <12EA4FAE-BE3D-4CFE-9837-DF052F79A998@employees.org> <3f38c28b-76c5-6f07-c271-777f1374737a@gmail.com> <bb630d79-d134-5109-ebc1-3b6a2f1463b3@si6networks.com> <CAJE_bqfeAzS6ac5AVgQ6v8gNCUncmqshewLmkyoV1rYMGFwaxQ@mail.gmail.com> <2C53C4C2-8980-4887-ABF3-160F7D311325@jisc.ac.uk>
From: Fernando Gont <fgont@si6networks.com>
Openpgp: preference=signencrypt
Autocrypt: addr=fgont@si6networks.com; prefer-encrypt=mutual; keydata= mQINBE5so2gBEACzBQBLUy8nzgAzSZn6ViXT6TmZBFNYNqTpPRvTVtUqF6+tkI+IEd9N2E8p pXUXCd0W4dkxz6o7pagnK63m4QSueggvp881RVVHOF8oTSHOdnGxLfLeLNJFKE1FOutU3vod GK/wG/Fwzkv9MebdXpMlLV8nnJuAt66XGl/lU1JrNfrKO4SoYQi4TsB/waUQcygh7OR/PEO0 EttiU8kZUbZNv58WH+PAj/rdZCrgUSiGXiWUQQKShqKnJxLuAcTcg5YRwL8se/V6ciW0QR9i /sr52gSmLLbW5N3hAoO+nv1V/9SjJAUvzXu43k8sua/XlCXkqU7uLj41CRR72JeUZ4DQs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G0HE+Z68ywc5KN67YxhvhBmSycs1ZSKAXv1zLDlXdmjHDHkU3xMcB+RkuiTba8yRFYwb/n j62CC4NhFTuIKOc4ta3dJsyXTGh/hO9UjWUnmAGfd0fnzTBZF8Qlnw/8ftx5lt4/O+eqY1EN RITScnPzXE/wMOlTtdkddQ+QN6xt6jyR2XtAIi7aAFHypIqA3lLI9hF9x+lj4UQ2yA9LqpoX 6URpPOd13JhAyDe47cwsP1u9Y+OBvQTVLSvw7Liu2b4KjqL4lx++VdBi7dXsjJ6kjIRjI6Lb WVpxe8LumMCuVDepTafBZ49gr7Fgc4F9ZSCo6ChgQNLn6WDzIkqFX+42KuHz90AHWhuW+KZR 1aJylERWeTcMCGUSBptd48KniWmD6kPKpzwoMkJtEXTuO2lVuborxzwuqOTNuYg9lWDl7zKt wPI9brGzquUHy4qRrA==
Message-ID: <3ac3125f-7f5f-f59a-e6ee-7ce289ffb18c@si6networks.com>
Date: Thu, 21 Feb 2019 13:09:00 -0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <2C53C4C2-8980-4887-ABF3-160F7D311325@jisc.ac.uk>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/7PDIPDGC2E6PslhGcYlVvoNbtiQ>
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: Thu, 21 Feb 2019 16:11:55 -0000

Hello, Tim,

On 21/2/19 07:51, Tim Chown wrote:
>> On 20 Feb 2019, at 19:44, 神明達哉 <jinmei@wide.ad.jp
>> <mailto:jinmei@wide.ad.jp>> wrote:
>>
>> At Wed, 20 Feb 2019 02:03:52 -0300,
>> Fernando Gont <fgont@si6networks.com <mailto:fgont@si6networks.com>>
>> wrote:
>>
>> > 10.1.  Address Configuration
>> >
>> >    o  RA Prefix Lifetime Limitation
>> >
>> >       Section 5.5.3 of [RFC4862] states "If the received Valid Lifetime
>> >       is greater than 2 hours or greater than RemainingLifetime, set the
>> >       valid lifetime of the corresponding address to the advertised
>> >       Valid Lifetime."  So when renumbering, if the previous
>> >       RemainingLifetime is longer than two hours, it is impossible to
>> >       reduce a prefix's lifetime to less than two hours.  This
>> >       limitation is to prevent denial-of-service attacks.
>> >
>> > This seems a flaw in RFC4862 to me. Me, I think ND security boils down
>> > to: modulo some basic sanity checks, you trust the RAs, or you don't.
>> > There's not much of a point in sanitizing the Prefix Lifetimes and then
>> > honoring Router Lifetimes of 0, or even blindly trusting RAs that would
>> > make you configuring addresses from invalid prefixes, RAs that might
>> > override your preferred router with one with higher preference, etc.
>>
[....]
> 
> The two hour rule way predates RFC 6104/6105 and the "RA Guard"
> functionality common in at least enterprise switches today.  And it says
> "two hours unless the RA is authenticated", so the "impossible" quoted
> above isn't strictly true, but in practice, we also see how widespread
> the required SeND deployment to do that is...).  

:-)



> With RA Guard on the table, whether you'd want to relax the two hour
> rule would presumably depend on how important you feel it is to protect
> against misconfigurations of genuine RAs.

If we were enforcing the same sort of policy for all fields, this might
require some thinking. But as an attacker, I'm always going to use
whatever vectors I have available that "just works". Put another way: if
one of entries to a fortress is protected by a door made of steel, but
the others just have a curtain... what's the point?

Besides, since we want the default valid lifetime to be well under 2
hours, we really need to update this bit of RFC4862, too.


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