Re: [babel] WG Last Call on draft-ietf-babel-rfc6126bis-04.txt (10/29 - 11/17)

David Schinazi <dschinazi@apple.com> Fri, 03 November 2017 16:35 UTC

Return-Path: <dschinazi@apple.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9A9BE13FED7 for <babel@ietfa.amsl.com>; Fri, 3 Nov 2017 09:35:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.3
X-Spam-Level:
X-Spam-Status: No, score=-4.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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=apple.com
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 qwqoN61_EpWm for <babel@ietfa.amsl.com>; Fri, 3 Nov 2017 09:35:22 -0700 (PDT)
Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (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 0C51613FEE9 for <babel@ietf.org>; Fri, 3 Nov 2017 09:35:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1509726921; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hX5wMCklgOZE7irT7iKk0NaqFR2zTug6YKzxJFdg0GI=; b=mz8OpEoa0MvPMMbm1SsIOj1znNy0O2AtlWYPJu84NN81dPRcyCgyt7+t96yE7vIc cAwMe1NLCF4C0DsjLJDc8W71NUR3J2y17aha6dFc2J8cW7CHsRwVNytebOWSqQN4 xRdA3jQcQ/HM5VuPVbcoUl2UdwSuCG54XLg9X7998Ff/ZdDw/9kMKsJBsELQfRE6 eF4En7VFLAlLPbtkV0716nJ9+EVCFgTeJoXhQGyQvEUWeSxfGUkgRGCJkQuTvWPM GRcVugt1Vkhm3eH/K4yVZTKpCAJ7Mr/sCYxk8IR4dSSlpBtTLKAAvqktuCbZQPcE LNenYwXZN43ie6LgRQREMw==;
Received: from relay4.apple.com (relay4.apple.com [17.128.113.87]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id 6D.2E.08732.9CA9CF95; Fri, 3 Nov 2017 09:35:21 -0700 (PDT)
X-AuditID: 11973e16-7b5ff7000000221c-af-59fc9ac9ad33
Received: from kencur.apple.com (kencur.apple.com [17.151.62.38]) by relay4.apple.com (Apple SCV relay) with SMTP id 63.74.31187.9CA9CF95; Fri, 3 Nov 2017 09:35:21 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from [17.114.154.153] (unknown [17.114.154.153]) by kencur.apple.com (Oracle Communications Messaging Server 8.0.1.3.20170825 64bit (built Aug 25 2017)) with ESMTPSA id <0OYU00BRKOQXXZ10@kencur.apple.com>; Fri, 03 Nov 2017 09:35:21 -0700 (PDT)
Sender: dschinazi@apple.com
From: David Schinazi <dschinazi@apple.com>
X-Priority: Medium
In-reply-to: <15f813c4ae0.bf34facf71994.5709848424063476610@ovsienko.info>
Date: Fri, 03 Nov 2017 09:35:20 -0700
Cc: babel@ietf.org
Message-id: <A304AE55-4E50-4069-96E2-3209B90D65E7@apple.com>
References: <15f813c4ae0.bf34facf71994.5709848424063476610@ovsienko.info>
To: Denis Ovsienko <denis@ovsienko.info>
X-Mailer: Apple Mail (2.3445.1.6)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsUi2FAYrnty1p9Ig3t3TSy2LOpmsZhz6zuL A5PHkiU/mTxWnNzIFsAUxWWTkpqTWZZapG+XwJXx7dtTpoJ9ahXbvy9ibWA8JtfFyMEhIWAi seirRBcjF4eQwGomia5rf5lh4pv2FELENzFKfG5uBIpzcvAKCEr8mHyPBaSGWUBe4uB5WZAw s4CWxPdHrSwQ9a1MEgsPXWAHSQgLSEt0XbjLCmFHSsye0MYG0ssG1HBgjRFIWEJASGLLjrmM IDangJfE5rZVYOUsAqoSr5feYYGYLyRx5toMFogTbCTmfngMNl5IwFPid8NHsHoRAQ2JL1vm MUPMVJQ4MnMOM8g9EgIT2CTmbjnMPoFRZBaSF2YhvDALyQsLGJlXMQrlJmbm6GbmmeslFhTk pOol5+duYgQF+3Q7sR2MD1dZHWIU4GBU4uHlmPw7Uog1say4MvcQozQHi5I4r95WoJBAemJJ anZqakFqUXxRaU5q8SFGJg5OqQbGDTd15BOfzJtw+uAKr5papUo98/z5hj2CwZ2/ZvmtFT4X tk2r+dhbw4/TV8rmzXpzvfch12fLjJB4vmPPT71M2G4x+cS1tCiT9X8NhYPqG8UOrXrHJLJj iZKE1HvrDr3/C/c+eSp584DNrZz7N5Z5tpr1tV32cTDRZnX8l/jPtqqFrfbH6txzSizFGYmG WsxFxYkAH1xD5FcCAAA=
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBLMWRmVeSWpSXmKPExsUiON1OTffkrD+RBk8/G1psWdTNYjHn1ncW ByaPJUt+MnmsOLmRLYApissmJTUnsyy1SN8ugSvj27enTAX71Cq2f1/E2sB4TK6LkYNDQsBE YtOewi5GLg4hgU2MEp+bG5m7GDk5eAUEJX5MvscCUsMsIC9x8LwsSJhZQEvi+6NWFoj6ViaJ hYcusIMkhAWkJbou3GWFsCMlZk9oYwPpZQNqOLDGCCQsISAksWXHXEYQm1PAS2Jz2yqwchYB VYnXS++wQMwXkjhzbQYLxAk2EnM/PAYbLyTgKfG74SNYvYiAhsSXLfOYIWYqShyZOYd5AqPg LCRXz0K4ehaSqxcwMq9iFChKzUmsNNFLLCjISdVLzs/dxAgKz4bC8B2M/5ZZHWIU4GBU4uHd MOF3pBBrYllxZe4hRgkOZiUR3pdFfyKFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8xbM/xEpJJCe WJKanZpakFoEk2Xi4JRqYHQpU/2W4RjEJ7Ga5WnXId3SGxk88yvOSLzQC0ywW60ovFwsT0/+ tO0ODYf8gn3L1tbYdi9fHt41b8/CFzPtyyZ62ORo/Tq7e1eoOtfeN/ERM/Y+d338WWJZ/E61 1jMJwpsuWWxat9u9x9Zv/g+Jgr3H9nkYGBUmNBreC7zfUea1uC8lROC3nxJLcUaioRZzUXEi ANVbdEZLAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/zRzxRbP91BIH2-s3Zx11dw_5z_g>
Subject: Re: [babel] WG Last Call on draft-ietf-babel-rfc6126bis-04.txt (10/29 - 11/17)
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Nov 2017 16:35:25 -0000

Hi Denis,

If we added a paragraph to the security considerations section that clearly explains
this issue and explicitly states that any extension that secures Babel should take
this into account, would that work for you?

Thanks,
David


> On Nov 3, 2017, at 02:35, Denis Ovsienko <denis@ovsienko.info> wrote:
> 
> ---- On Tue, 31 Oct 2017 19:02:15 +0000 Juliusz Chroboczek wrote ---- 
>>> The way Babel is currently specified allows a protocol instance think it 
>>> has a 2-way exchange with a neighbour, whereas in reality it can be just 
>>> fed with replayed old packets. 
>> 
>> Correct. Without any extra security protocol, Babel is vulnerable to 
>> spoofed or replayed packets. It is expected that it is layered over 
>> a security protocol that protects against spoofed and replayed packets 
>> (be it DTLS, IPsec, WPA2 or 7298bis). 
>> 
>> I've tried to make that clear in the Security Considerations section. 
> 
> Hello all.
> 
> I confirm the text says that and I understand what it means and it was an OK statement for RFC 6126 but for 6126-bis we had the security requirement upfront. 
> 
> The base specification has a bit to do with that requirement because the "security is not my problem" mindset tends to result in issues like DDoS amplification -- difficult or impossible to fix afterwards if was not considered early. 
> 
> In this case, for instance, if a random network device starts to repeat continuously the packets it has seen before, such failure should not mangle the routing topology, that would be a clear failure to fail. The correct behaviour would be to fail the affected neighbour(s) out and let the topology do its work. 
> 
>>> That's the way the protocol is literally specified, no matter what was 
>>> originally meant and what comments were made on the mailing list or in 
>>> person. 
>> 
>> That is the way the protocol is specified, and that is the intent. 
> 
> Even in that case the document must explain it better. I had read RFC 6126 several times and still missed this point until years later, none of RFC 7298 reviewers noticed it either. Letting future readers of RFC 6126-bis have the same problem would be wrong.
> 
>>> The way it is commonly specified for other protocols involves a nonce or 
>>> another proof of freshness. 
>> 
>> This is simply not true, Denis. To take an example that you quote 
>> (incorrectly) in your previous mail, OSPF does not use a stateful 
>> handshake (see Section A.3.2 of RFC 2328). Yet, Section 7.1 of RFC 2328 
>> says this: 
>> 
>> The Hello Protocol is responsible for establishing and 
>> maintaining neighbor relationships. It also ensures that 
>> communication between neighbors is bidirectional. 
>> 
>> [...] 
>> 
>> After a neighbor has been discovered, bidirectional 
>> communication ensured... 
>> 
>> In other words, RFC 2328 uses "bidirectional communication" to mean 
>> exactly the same property that Babel calls "bidirectional reachability". 
> 
> Let me point out that in this OSPF example I refer to the "DD sequence number", which is a field in the Database Description packet, and you respond discussing Hello packets. This very argument exchange itself follows the protocol exchange we are supposedly discussing: one speaker sends a message with a nonce, another speaker returns a packet with a different nonce, so the first speaker concludes there is no two-way communication with the second one. Does the irony of this situation help to make anything across?
> 
> Back to OSPF, you are right -- it didn't get Hello right, but it tried to get DBDesc right, and made enough steps in the right direction to be one of the good examples. 
> 
>> Denis, I'll remind you what you said at IETF-97: 
>> 
>> The base protocol specification defines no means 
>> to relate a received IHU TLV to any of the recently 
>> sent Hello TLVs. The authentication mechanism 
>> design did not account for this property at the time 
>> and hence did not include its own measures to 
>> address it. 
>> 
>> On the bright side is that now the time would be 
>> good to solve this in either the base protocol or 
>> the authentication mechanism or both. 
>> 
>> I'd like to understand why your position has changed so radically since 
>> then, and why you now believe that this must absolutely be solved in the 
>> base protocol. 
> 
> Excuse me, but to the best of my understanding my position did not change and what I have stated stands as before, even though we are 3 months behind the schedule. 
> 
> As a working group member I never intended to rush publications "no matter what". If a document makes it through, it must be accurate and it should be useful. 
> 
> -- 
> Denis Ovsienko 
> 
> 
> 
> 
> _______________________________________________
> babel mailing list
> babel@ietf.org
> https://www.ietf.org/mailman/listinfo/babel