Re: [babel] DTLS and handshake failure
David Schinazi <dschinazi@apple.com> Sat, 24 February 2018 00:51 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 97E1E126C26 for <babel@ietfa.amsl.com>; Fri, 23 Feb 2018 16:51:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.31
X-Spam-Level:
X-Spam-Status: No, score=-4.31 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, T_RP_MATCHES_RCVD=-0.01, 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 6q_m-X0Opy_g for <babel@ietfa.amsl.com>; Fri, 23 Feb 2018 16:51:55 -0800 (PST)
Received: from mail-in24.apple.com (mail-out24.apple.com [17.171.2.34]) (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 6D14512420B for <babel@ietf.org>; Fri, 23 Feb 2018 16:51:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1519433514; x=2383347114; 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=Yse/vybNB4l+qSNcTO1FUsG9+htq2GRqqqYgjmV3GVQ=; b=tqi2LOuZs3Di0H/HREw62TX4WyUGtbXpxzhESJT6VAZlURaExrtkLo644RU98Gvh DxXHuv6djpCZFEX16uxR1mVeZqR3y28QvUcxs0wWfZB3aJTxRQENxkwI5aGlAkQB ucGX8OUaAX3dTTwM3KXWYeEzurvWsC9qHo9av4QaFsiXLjPJWzpshIRis6Sr+Sth BFk46hnlUvaigW1kDVNhkuaV1/FHHXha29tDqtMA9xpOES1IS0xaXcWb419lXpHC SiUjNC2OPaakbtV9LQR5H8Wl2GfkIshzwh5HJkjoFnsDU3SpMe1wc4F5hYQkyGX3 ve8XVjH3m/cvAq2N5lysAA==;
Received: from relay3.apple.com (relay3.apple.com [17.128.113.83]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in24.apple.com (Apple Secure Mail Relay) with SMTP id EB.11.10828.A27B09A5; Fri, 23 Feb 2018 16:51:54 -0800 (PST)
X-AuditID: 11ab0218-260a89e000002a4c-40-5a90b72acfaa
Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by relay3.apple.com (Apple SCV relay) with SMTP id 6D.E7.18185.927B09A5; Fri, 23 Feb 2018 16:51:53 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from [17.234.44.53] (unknown [17.234.44.53]) by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.2.20180130 64bit (built Jan 30 2018)) with ESMTPSA id <0P4M00IDHQEHO300@nwk-mmpp-sz10.apple.com>; Fri, 23 Feb 2018 16:51:53 -0800 (PST)
Sender: dschinazi@apple.com
From: David Schinazi <dschinazi@apple.com>
In-reply-to: <87a7vz1d24.wl-jch@irif.fr>
Date: Fri, 23 Feb 2018 16:51:52 -0800
Cc: Markus Stenberg <markus.stenberg@iki.fi>, Antonin Décimo <antonin.decimo@gmail.com>, babel@ietf.org
Message-id: <8B753728-5D16-497C-BDBB-72B1A2B136DE@apple.com>
References: <87lgfjy30o.wl-jch@irif.fr> <E395E392-6D25-4315-A94F-85FC6B783F91@iki.fi> <87a7vz1d24.wl-jch@irif.fr>
To: Juliusz Chroboczek <jch@irif.fr>
X-Mailer: Apple Mail (2.3445.5.20)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsUi2FAYrKu1fUKUQV+HhMWRLdcYLbYs6max mN+6jM1i79wVLA4sHjtn3WX3WLLkJ5PH4a8LWTwWb3nLGMASxWWTkpqTWZZapG+XwJVxa8Ns 1oK1IhU35rWwNTCuEehi5OSQEDCReP9nB0sXIxeHkMAaJolXZ2aywyRWPP3CBpE4xCjxdtkV sASvgKDEj8n3gDo4OJgF5CUOnpcFCTMLaEl8f9QKNaifSWLyxBlg9cIC0hJdF+6yQtj6EvsO 72EH6WUDajiwxggkzCmgIXH94kcWEJtFQFVi/7XtUOOrJF6cCIPYaiPxfeMdVpCwkECxxLnj WSBhEQEVieXTnkFdrCQx/fttsIslBOawSaxacYxpAqPwLCRHz0I4ehaSoxcwMq9iFM5NzMzR zcwzMtFLLCjISdVLzs/dxAgK/9VMEjsYv7w2PMQowMGoxMPLIDohSog1say4MvcQozQHi5I4 79XnjVFCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGJd2l7Y92S7+fnHQ+XvrQpnmhh+rtGJf ySW/7xWftbNi4Msr5w/cFDvPnVJ98nhrqoNm0yxr/sY5SxsW/bo15+OHHV7Cq3z3bq28psly 5Qdfgz//la0XXBl/Cif8/3tzrtZi/5mJXKwrwivKHb7WvGuLZGznzQ/oC5FcffHJg8SpMgt5 diVyrFNiKc5INNRiLipOBADdA8ReYAIAAA==
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsUi2FBcpau5fUKUwYULlhZHtlxjtNiyqJvF Yn7rMjaLvXNXsDiweOycdZfdY8mSn0weh78uZPFYvOUtYwBLFJdNSmpOZllqkb5dAlfGrQ2z WQvWilTcmNfC1sC4RqCLkZNDQsBEYsXTL2xdjFwcQgKHGCXeLrvCDpLgFRCU+DH5HksXIwcH s4C8xMHzsiBhZgEtie+PWlkg6vuZJCZPnAFWLywgLdF14S4rhK0vse/wHnaQXjaghgNrjEDC nAIaEtcvfmQBsVkEVCX2X9sONb5K4sWJMIitNhLfN95hBQkLCRRLnDueBRIWEVCRWD7tGTvE xUoS07/fZpvAKDALyZ2zEO6cheTOBYzMqxgFilJzEiuN9RILCnJS9ZLzczcxgoO1MHgH459l VocYBTgYlXh4I8QnRAmxJpYVV+YCA4KDWUmEd14HUIg3JbGyKrUoP76oNCe1+BCjNAeLkjhv o0dvlJBAemJJanZqakFqEUyWiYNTqoGx9sWOTM/jG4zcqxi335r54QHD37l3t8f27H5VILY2 u39/lfo5rpmS5idMc+Rv7ZO/k7PqrsJX68/Tck/P+umTs4Nf44XLEvPnk/5df3+4auIKm+Bj 58R3+exPOy0wq0qqPvDb41deNgXMv7QeGye1rrgw00VzhcXPeXKsXfPfP7U23GO76+ucZ0os xRmJhlrMRcWJAEDdNqdSAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/FsD6WHVL6rUMG3AVtb1FmErJbUY>
Subject: Re: [babel] DTLS and handshake failure
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: Sat, 24 Feb 2018 00:51:57 -0000
If I understand this correctly, the only benefit of sending TLVs in the clear is to interoperate with devices that have not been configured with the proper authentication. However that won't work, since because they do not have a way to authenticate, all their TLVs will be unauthenticated so we will drop of all them (except Hellos) so we will drop their IHU, so we will never establish bidirectional reachability. That said, by design we do not want to interoperate with nodes that do not have the proper authentication, so sending these TLVs in the clear leaks information without providing benefit. Having each Hello trigger a handshake attempt would work but can generate useless traffic. Blacklisting the device for a given period of time sounds like the best way to limit this traffic. I would argue that such blacklisting is a local implementation matter, but that it perhaps should have an upper bound such as 10 minutes to allow a device to recover when it's provisioned with new authentication credentials. David > On Feb 23, 2018, at 15:49, Juliusz Chroboczek <jch@irif.fr> wrote: > >> This is a matter of policy, but if third party can force DTLS handshake >> failure, switch to unauthenticated operation basically means you can >> (potentially) always force unathenticated mode. > > I'm not a specialist, but I don't think we're vulnerable. > > There's two different policies: what you do on reception, and what you do > on emission. > > What you do on reception is clear: if an interface has been configured to > requre authentication, we ignore all unauthenticated TLVs except Hellos. > No exceptions of any kind. > > The question is -- what do we send. If the DTLS handshake succeeded, we > send all unicast TLVs authenticated except for Hellos. If the DTLS > handshake failed, we can: > > - send all TLVs in clear, in case the peer is configured without auth; > - drop the neighbour association, which will cause the next Hello to > trigger a new handshake attempt; > - blacklist the neighbour, so that another Hello will not trigger a new > handshake attempt. > > As far as I can tell, the three options are equivalent from a security > perspective when all routers are configured correctly, since we still > ignore any unauthentified TLVs. They do differ when some routers are > mis-configured, and they don't generate the same amount of traffic. > > -- Juliusz > > _______________________________________________ > babel mailing list > babel@ietf.org > https://www.ietf.org/mailman/listinfo/babel
- [babel] DTLS and handshake failure Juliusz Chroboczek
- Re: [babel] DTLS and handshake failure David Schinazi
- Re: [babel] DTLS and handshake failure Markus Stenberg
- Re: [babel] DTLS and handshake failure Juliusz Chroboczek
- Re: [babel] DTLS and handshake failure David Schinazi
- Re: [babel] DTLS and handshake failure Ted Lemon
- Re: [babel] DTLS and handshake failure David Schinazi
- Re: [babel] DTLS and handshake failure Ted Lemon
- Re: [babel] DTLS and handshake failure Juliusz Chroboczek
- Re: [babel] DTLS and handshake failure Juliusz Chroboczek
- Re: [babel] DTLS and handshake failure Toke Høiland-Jørgensen
- Re: [babel] DTLS and handshake failure Ted Lemon
- Re: [babel] DTLS and handshake failure Markus Stenberg