Re: [Add] I-D Action: draft-ietf-add-resolver-info-08.txt

tirumal reddy <kondtir@gmail.com> Wed, 13 December 2023 09:12 UTC

Return-Path: <kondtir@gmail.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 00AD2C14F5E5 for <add@ietfa.amsl.com>; Wed, 13 Dec 2023 01:12:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 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, FREEMAIL_FROM=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, 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=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 id6fHJmHbqh8 for <add@ietfa.amsl.com>; Wed, 13 Dec 2023 01:12:52 -0800 (PST)
Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 CCA1DC14F5F0 for <add@ietf.org>; Wed, 13 Dec 2023 01:12:51 -0800 (PST)
Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a1b6524f24fso208530366b.0 for <add@ietf.org>; Wed, 13 Dec 2023 01:12:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702458770; x=1703063570; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1UNlofFNI+00HKyBbFIpwR6cFqx+oSK8s0JJiHMlmOA=; b=ePQ71fCBuYlM62kb5LGGHzmrfOWS0zBH3lwW/1HzwO7rgh2QQIlL7DKfSBblEpJL9J h2xS1jDyUSUsyvIsZ0/sqyPKmdbHdvcxAMLl3VOanyCGAmrZf/zpEv/1W69mXy82nCip sMh8PM5bUxMhGHGj/iXYeunU6qYfIZ+GkiKIuE6BMqpEwzlqG1Nwj7bx+6r2DDiTppHU ocgTfvmDejuYEKpJmJ6rNletVQv+wMedfFLyUzqT3LaJCsYx2SubycT75zBAgf/PAjn6 Q1eAr0YAWMJz3U91hY+T1e7rrFH4AgV5biIlAkVXoqO6qOrBPe4+rPg2CgRiuU1QTgQc UP5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702458770; x=1703063570; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1UNlofFNI+00HKyBbFIpwR6cFqx+oSK8s0JJiHMlmOA=; b=BjeAGxU/V4Zn7qdIyQMEegPCupBEpzpiIUI8pFvAWebG4FrArPxtKaIkny6EjE7aS+ 5mBOMSr/O3h2tl/Eoymzjv/vZg/Dnw34n9YpHK9tYVpIFjrJlAwu3O3Fp+DKNA9ldRUJ kMI7pHb3NAr6O2Uav2Ehprr8O8V+kh2KTlrJPzfnxGGGtujwWSbi3Jp44apM/9SdTJIt V5SgfsRhbSRG6ATKFpkjATJGxpzIucMdqNNiN95P/gXGRsL/upHd2ENACR4zxs8seRRI FbVG0Z1tiwwMg3pN4FqT0cjNJOkkdTdLh/+l57K/7EoTYE4Mv3SfQwsBUCu8XuDfahB1 Fqrw==
X-Gm-Message-State: AOJu0YxzFT/47G2FLaZF1pBFQoL5MVp2Mi398RkzhOou5f5TBhP0j8ac 2ejbOOWAT5BjDkrOBTolBXblfkRoDrhYC/wMiengbmi+NnA=
X-Google-Smtp-Source: AGHT+IFOlDF4qkivCvctT9SgaJmNK8xBt0Nda89NnZl604nPk58MbChhXbDvY9EtrHwb64jpr+OC2oQd0+pQ3z+9m2k=
X-Received: by 2002:a17:906:99cf:b0:a1c:5944:29bb with SMTP id s15-20020a17090699cf00b00a1c594429bbmr8190424ejn.7.1702458769837; Wed, 13 Dec 2023 01:12:49 -0800 (PST)
MIME-Version: 1.0
References: <170081382418.6627.11212053139133230296@ietfa.amsl.com> <CAFpG3geefWGUZOx_4OkL=g_Oj0Lw+vDehdimkX8ckH5OfMpOgg@mail.gmail.com> <BN8PR15MB32817DF02BCA15535651F07BB38AA@BN8PR15MB3281.namprd15.prod.outlook.com>
In-Reply-To: <BN8PR15MB32817DF02BCA15535651F07BB38AA@BN8PR15MB3281.namprd15.prod.outlook.com>
From: tirumal reddy <kondtir@gmail.com>
Date: Wed, 13 Dec 2023 14:42:13 +0530
Message-ID: <CAFpG3gfyD_dhDk5nGUeWSajGP+4nBKuocdy_Ra8jEtx4HntVNw@mail.gmail.com>
To: Ben Schwartz <bemasc@meta.com>
Cc: "add@ietf.org" <add@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003890fb060c609233"
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/on-GHsd3-Ac8VTmweOB8ixflxes>
Subject: Re: [Add] I-D Action: draft-ietf-add-resolver-info-08.txt
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Dec 2023 09:12:56 -0000

Hi Ben,

Please see inline

On Sat, 9 Dec 2023 at 03:22, Ben Schwartz <bemasc@meta.com> wrote:

> In my view, this revision continues to make incorrect security
> recommendations, resulting in unnecessary obstacles to deployment by
> servers and notable vulnerabilities for clients.  I also think it has some
> other issues of clarity and correctness.
>
> As I've noted previously, I think there are various straightforward
> solutions that would render the draft both simpler and more secure.
> Perhaps the simplest would be to move RESINFO to the name "resolver.arpa"
> and require it to be returned in the Authority section, reflecting the fact
> that it is a property of the resolver (not the resolver's name) and is not
> subject to recursive resolution.
>

I am uncertain about how moving the RESINFO to the authority section
addresses the issue of a resolver not supporting RESINFO. In such a case,
the resolver will forward the query upstream, and the client could
potentially receive a positive RESINFO response either from a legitimate
upstream DNS resolver or an attacker.


>
> Detailed notes:
>
> Section 3:
>
> "By using the DNS server's domain name from the DDR SVCB response to issue
> the RESINFO query, a client accepts the risk that a resolver supports DDR
> but does not support RESINFO."
> -> The "server's domain name for the DDR SVCB response" is not a defined
> value.  Maybe you mean "The SVCB TargetName"?
>

Yes, we will update the draft to use "SVCB TargetName".


> Regardless, this is contradictory to the previous paragraph, which says
> that the RESINFO QNAME is the ADN.
>

The preceding paragraph pertains to a scenario where the resolver is
identified by a name (e.g., DDR, IKEv2). We will update the draft to
improve clarity.


>
> "clients wishing to retrieve resolver information from resolvers
> discovered when performing DDR discovery using resolver IP address (Section
> 4 of [RFC9462]) MUST ensure during the TLS handshake that the TLS
> certificate presented by the resolver contains in its SubjectAltName (SAN)
> the domain name in the TargetName of the DDR SVCB response"
> -> This rules out the use of RESINFO in Opportunistic DDR scenarios, which
> seems like a serious loss for debugging small networks.  It also interferes
> with the usual interpretation of SVCB TargetName and renders RESINFO
> incompatible with DANE.  It also fails to accomplish the desired
> authentication: if the name is unsigned or the resolver is non-validating,
> an upstream attacker could still have injected an arbitrary RESINFO
> response despite this attempted protection.
>

In the case of debugging, the validation rule discussed in the draft can be
disabled using a configuration knob. However, I am uncertain about how
RESINFO is incompatible with DANE. Could you please elaborate ?


>
> Section 6:
>
> "If the client cannot validate the attributes received from the resolver,
> which will be used for resolver selection or display to the end-user, the
> client should process those attributes only if the encrypted resolver has
> sufficient reputation according to local policy"
> -> As above, this does not accomplish the desired authentication unless
> the reputation assessment specifically requires that the resolver is
> "RESINFO-aware" (which would be false of all resolvers today, regardless of
> reputation).
>

I don't see a problem. In cases where the trusted resolver does not support
RESINFO, the client can identify a spoofed DNS response. When RESINFO is
provided by the trusted resolver, the client can process the attributes.

-Tiru


> ------------------------------
> *From:* Add <add-bounces@ietf.org> on behalf of tirumal reddy <
> kondtir@gmail.com>
> *Sent:* Friday, December 1, 2023 7:42 AM
> *To:* add@ietf.org <add@ietf.org>
> *Subject:* Re: [Add] I-D Action: draft-ietf-add-resolver-info-08.txt
>
> This revision of the draft https: //www. ietf.
> org/archive/id/draft-ietf-add-resolver-info-08. html has been updated based
> on discussions during the presentation at IETF-118. Special thanks to Tommy
> Jensen for contributing text to this revision.
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
>
> ZjQcmQRYFpfptBannerEnd
> This revision of the draft https://www.ietf.org/archive/id/draft-ietf-add-
> resolver-info-08.html has been updated based on discussions during the
> presentation at IETF-118. Special thanks to Tommy Jensen for contributing
> text to this revision. The draft is now ready for progression to the next
> stage.
>
> Cheers,
> -Tiru
>
> On Fri, 24 Nov 2023 at 13:47, <internet-drafts@ietf.org> wrote:
>
> Internet-Draft draft-ietf-add-resolver-info-08.txt is now available. It is
> a
> work item of the Adaptive DNS Discovery (ADD) WG of the IETF.
>
>    Title:   DNS Resolver Information
>    Authors: Tirumaleswar Reddy
>             Mohamed Boucadair
>    Name:    draft-ietf-add-resolver-info-08.txt
>    Pages:   9
>    Dates:   2023-11-24
>
> Abstract:
>
>    This document specifies a method for DNS resolvers to publish
>    information about themselves.  DNS clients can use the resolver
>    information to identify the capabilities of DNS resolvers.  How such
>    an information is then used by DNS clients is out of the scope of the
>    document.
>
> The IETF datatracker status page for this Internet-Draft is:
> https://datatracker.ietf.org/doc/draft-ietf-add-resolver-info/
>
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-add-resolver-info-08.html
>
> A diff from the previous version is available at:
> https://author-tools.ietf.org/iddiff?url2=draft-ietf-add-resolver-info-08
>
> Internet-Drafts are also available by rsync at:
> rsync.ietf.org::internet-drafts
>
>
> --
> Add mailing list
> Add@ietf.org
> https://www.ietf.org/mailman/listinfo/add
>
>