Re: [babel] Paul Wouters' Discuss on draft-ietf-babel-rtt-extension-05: (with DISCUSS and COMMENT)

Paul Wouters <paul.wouters@aiven.io> Tue, 13 February 2024 22:05 UTC

Return-Path: <paul.wouters@aiven.io>
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 8D51AC151527 for <babel@ietfa.amsl.com>; Tue, 13 Feb 2024 14:05:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=aiven.io
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RsmCWkGkYSxM for <babel@ietfa.amsl.com>; Tue, 13 Feb 2024 14:05:06 -0800 (PST)
Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BFC3EC151535 for <babel@ietf.org>; Tue, 13 Feb 2024 14:05:06 -0800 (PST)
Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-5118d65cf9cso3313880e87.0 for <babel@ietf.org>; Tue, 13 Feb 2024 14:05:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=google; t=1707861904; x=1708466704; darn=ietf.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=j0POQVyxTgeffGSwJAt20FWeMWCm4TqexFWMkZfO4Ok=; b=ZlIZgPEdF3UTQiPN7HzkCOoWtmh9KfJTVbc4dcxPlHUJw9Lj71pn7QyfZBeaL6e1RD /ioNAeUlwaqvXagRkz8cKsBvJQaueN7gRpaNTtZwvDOjZHXBjOoTFmQUHrZTmaZMjf4f qjwI338qv5VNKBy/+5TqDZRZquoBdLhjX66RU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707861904; x=1708466704; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j0POQVyxTgeffGSwJAt20FWeMWCm4TqexFWMkZfO4Ok=; b=PmMzHHiYXuedhGkUIrel2e9PnRcE+ZrW1TqQBPi5me295S0VvxiJPOLUMK2jSjU8Xm tLxr9NN0EnlMXAoeK8QHUkxv5KFW55BGJmchja5EdDdCgBGBXyqaOcp1TA6+Hkmv+F9v O60awYMdms2K9FQYPX8HHV2tCUmfpMHAEICxFqzOD9Ubz7SyICr88VoQWNEQFZ8Tz+si OfZuyIZDubHOVNv9Wj5puHF7qaAuNViZAR+FSMbAahuzLWP2vZ4ELY2z76Myh+ru8ve9 tvFqnjlhKx95zPn5aylnckOZzQGXIyu+3C74+r2YYSpE8v5MySsAWuR8lu1WybM3lAwK 7mJg==
X-Forwarded-Encrypted: i=1; AJvYcCXC1HBxEzJQV2nSPtTe+aaY7ZMHvqB+Ofybz0fzp/lOWMHy14BJqaYK68KufZX5Pax/MwcKSUJ78RQchZp7Ww==
X-Gm-Message-State: AOJu0YxN7q8IQ0m6Cgd2CXeNPBFVpEPLyv0Xu2CFIAPDrX3HveZbXHIQ 32k9YIjyyKfJTwic751GDHUfVH/sMSnJoRah8wUcbT6T165uSpYUHw21MAKl01U=
X-Google-Smtp-Source: AGHT+IGSejwxF2payu5gyTTMl80kusZTh81CgqjQQntWSc6eMqoE+tHI/41tNXX1jIFtEyw9WcLuiQ==
X-Received: by 2002:ac2:5186:0:b0:511:3ee1:4edf with SMTP id u6-20020ac25186000000b005113ee14edfmr456539lfi.68.1707861904416; Tue, 13 Feb 2024 14:05:04 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCUcFX0kznDM0Iemgu1rVZwccoutEoe8A1KhoHogAMxmILU6z3HuBLlXslta++irFUol7tFizD4YbiT39u8E+OjvnhDfYG21OVA3CeQKQ7PTZUm2FwDLLNq5e4u9Whm2inKfQccyaEMvnGJgdnbWBEjhbzlW+LHcZ+IO2jZT/u8C+GsykDfXcCUMfayv02EsNHk=
Received: from smtpclient.apple ([74.122.52.94]) by smtp.gmail.com with ESMTPSA id k41-20020a0565123da900b00511898ee422sm1121067lfv.141.2024.02.13.14.05.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Feb 2024 14:05:04 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: Paul Wouters <paul.wouters@aiven.io>
Mime-Version: 1.0 (1.0)
Date: Tue, 13 Feb 2024 17:04:52 -0500
Message-Id: <45C3A0C1-1AC6-4F9A-8D3E-E0CF8A0A11F0@aiven.io>
References: <87frxwdwa9.wl-jch@irif.fr>
Cc: The IESG <iesg@ietf.org>, draft-ietf-babel-rtt-extension@ietf.org, babel-chairs@ietf.org, babel@ietf.org, Donald Eastlake <d3e3e3@gmail.com>
In-Reply-To: <87frxwdwa9.wl-jch@irif.fr>
To: Juliusz Chroboczek <jch@irif.fr>
X-Mailer: iPhone Mail (21D61)
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/pXrqbF7X76k0E80Oi6sHYyKBci4>
Subject: Re: [babel] Paul Wouters' Discuss on draft-ietf-babel-rtt-extension-05: (with DISCUSS and COMMENT)
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 13 Feb 2024 22:05:10 -0000

On Feb 13, 2024, at 14:00, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
> 
>> 
>> I agree with Shivan's concern about privacy here. Perhaps something more can be
>> said in the document? Maybe a Privacy Considerations section? Should a client
>> using a VPN add some random range delay for privacy? Should it just say/act
>> with something very slow to "opt out" of this entirely
> 
> A router can opt out of the mechanism entirely, simply by not sending the
> timestamp sub-TLV in its Hello and IHU TLVs.  This will cause neighbouring
> routers will fall back to RFC 8966 operation for route selection.
> A router may even switch at any time from sending timestamps to omitting
> them, for example if a previously stationary router becomes mobile and
> therefore wishes to conceal its location.
> 
> The current implementations are not vulnerable to the attack, since they
> use RTT information in order to penalise participating routers: RTT
> information is used to identify far-away routers, in order to avoid
> sending traffic through them.  In ten years, we have not come across
> a network topology where we would want to do the opposite.
> 
> The Security Consideration currently says:
> 
>    However, having access to accurate timestamps could allow an attacker
>    to determine the physical location of a node, which might be
>    undesirable in some deployments.
> 
> If you wand us to be more explicit, I can replace it with the following:
> 
>    However, having access to accurate timestamps could allow an attacker
>    to determine the physical location of a node, which might be
>    considered confidential in some deployments.  Such nodes might avoid
>    disclosure of location information by not including timestamp sub-TLVs
>    in the TLVs that they send.
> 
> Would that satisfy you?

Yes, thanks.

> 
>> I'm also worried about malicious clients sending pre-emptive IHUs and lying
>> about the RTT, and thus making themselves the preferred gateway.
> 
> There are easier ways to achieve that in the Babel protocol, please see
> Section 6 of RFC 8966.

Okay so this isn’t a great concern then.

Thanks,

Paul

> 
>> This could be avoided by adding a random COOKIE in the RTT timer
>> request. Is there a reason why not to take this extra security step?
> 
> A malicious router has much easier ways to redirect traffic to itself.
> That's why we recommend using RFC 8968, which uses random nonces and
> cryptographic signatures, and that has been proved safe.  (Full
> disclosure: pen and paper proof, not automated verification.)
> 
> -- Juliusz