Re: [dhcwg] Benjamin Kaduk's Discuss on draft-ietf-dhc-dhcpv6-yang-24: (with DISCUSS and COMMENT)

ianfarrer@gmx.com Thu, 03 March 2022 13:39 UTC

Return-Path: <ianfarrer@gmx.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F192F3A0A69; Thu, 3 Mar 2022 05:39:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.906
X-Spam-Level:
X-Spam-Status: No, score=-6.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 ZoffrHxTpV76; Thu, 3 Mar 2022 05:39:41 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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 2F3AE3A0A6D; Thu, 3 Mar 2022 05:39:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646314776; bh=kTD4ouIjD6JyGFOhnUmm/UBqX8bHKuzyu+csDLE/1M8=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=B2Chbf38JI9aB2PMKwLCsz9CrgRnuwrqMmVBN63i3HLqq7/HtZP8C9B3FwuFV3Yaj 2MUCt3pg5UODwzu3pQAUTLdfY3XE0Hyjm4AdXobw9k/Na8F0e8tJqseGwSU3/XSepX VV89DekQeX8MT5xq8eRu0AtIvhbU4vagcBdGGmQU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from smtpclient.apple ([78.35.209.173]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MLQxN-1ni7mF0WRv-00IXFE; Thu, 03 Mar 2022 14:39:36 +0100
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
From: ianfarrer@gmx.com
In-Reply-To: <20220225221811.GX12881@kduck.mit.edu>
Date: Thu, 03 Mar 2022 14:39:33 +0100
Cc: The IESG <iesg@ietf.org>, draft-ietf-dhc-dhcpv6-yang@ietf.org, dhc-chairs@ietf.org, dhcwg <dhcwg@ietf.org>, Timothy Winters <tim@qacafe.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <D06419E8-2A37-4941-88EF-52CE182E8B2A@gmx.com>
References: <163952685584.6395.6879611267419166159@ietfa.amsl.com> <F7517675-B8E0-4777-AB7D-A7A8A6283D75@gmx.com> <20220225221811.GX12881@kduck.mit.edu>
To: Benjamin Kaduk <kaduk@mit.edu>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
X-Provags-ID: V03:K1:jZnlPc9A5HlE9lCo0T3mL3d5amvIzMPT9OfHliiAoE+DzlhG7Ay nt/n0FljfijpPHfcOy8pyOj1alT/exykAtZ9h4Ye9Tc5NA/XiDsKBbW/bHAbg+nL/69BN6P DJa2EZP05BQx/Z7NWYO2sH1uLvB2Lpsk3s9NftX5qjWyYDt1t84giLsV1FS/QsE+sJv0/ZA K3xj4v0pVf8CrM9arsrPA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:apfoNbwrHes=:FLYwLpKWocuEcs3NVpXNfX r0ORd7WRDGBxvHApelHN5vyfzysEzYgJ0MzV9EzbVbSMqG3SKbYdl/VuvJd70vib1Tl7JWx6a wue99JNexHRD/I6E34283ThoDlFiS0GYFHRHttYnPE1azlfKoyVHJAMV1tEUnsVHKX04aMyiB aimapNAlNDrj6OLA/i0lAaAvtVsExn5yeYeYKmHd+dATSotS8pZ/p/dFcLUuKMqAkU2/d9KpE 7kOzBfUVH09GL7SnrYxAvt/Qi+/NhMFj6bZ8wwnjfBVry75T+WkRv9QDM9BmnQoQRwyc3x2/i l+GeuNAht6cq/zQ+JOZTgzf0BpHc+sOmVdOUarxJjTasjNAlzg9Q8dXd/4ouVWkeuTJ9laJZa xYAJjcZBfUIiNHsD/oe+sBFJ2LqlgUmzRaaH0ZjVaI5LioTeL4ZwCQ5TZgY3s98t2YMugyDkg VP5zCwf4MSE5FXYsK/wqsC3LETRHiWgGM6jUcSfpRgWrgVba2Eio/3Cz1xywOuQAHJXVoVbdM GE1/npza7pOWiVSmQHiLk7p1XgdZ1+tQ4JGGLK+i3eCLcCxubFHaGWmaYRLiG7F6XIV2B8QwW xKBjPbxef440n7e8+kPzq0J20xYQGRVtsgcHkEWz8qVwt3AP/ud1/OHGrjhLuJtEXo/aOyIIj Ygt26ppUg1x0YiyPgZhRbvKbLRUp5SZawWUJX28gnk6mLn7D8Y3t74wvd8AShRgE1hkRrGsKI qP5G0SczJiW1YSsl9TERTTQPEL4p1g3zHIcEtX2mPCVSkmLHR3F8LZ4TS9UKxvHKzKRjS89gv Pp6VyGxPf6urvBzBcfTNQchM9sFWV+DpVejyoIYGR5zOmQzZmg=
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/xcm1dj1Cgx0bjeIQ5Lwd1LJZRpo>
Subject: Re: [dhcwg] Benjamin Kaduk's Discuss on draft-ietf-dhc-dhcpv6-yang-24: (with DISCUSS and COMMENT)
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Dynamic Host Configuration <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Mar 2022 13:39:46 -0000

Hi Benjamin,

Thanks for your comments. Please see inline below.

BR,
Ian

> On 25. Feb 2022, at 23:18, Benjamin Kaduk <kaduk@mit.edu> wrote:
> 
> Hi Ian,
> 
> As promised in my reply on the DISCUSS thread, a few remaining comments
> interspersed here.  I'll trim heavily since the information density would
> be quite low otherwise.
> 
> On Mon, Jan 17, 2022 at 06:39:56PM +0100, ianfarrer@gmx.com wrote:
>> 
>>> On 15. Dec 2021, at 01:07, Benjamin Kaduk via Datatracker <noreply@ietf.org> wrote:
>>> 
>>> 
>>>              leaf pool-prefix {
>>>                type inet:ipv6-prefix;
>>>                mandatory true;
>>>                description
>>>                  "IPv6 prefix for the pool.";
>>> 
>>> Does this prefix need to be contained within the overall
>>> "network-prefix"?  (Same question for prefix-pools' pool-prefix.)
>> 
>> [if - With the DHCP server implementations that I am familiar with, yes it would
>> need to be contained, but I guess other implementations may not. I’m not aware 
>> of any way of enforcing this in the YANG.]
> 
> I'm not aware of any way to enforce it via YANG either, but perhaps we
> could put a few more words in the description string that covers the
> expected relationship in prose.

[if - I’ve changed the prefix-pool description (for addresses and prefixes) to:
                                         
                "IPv6 prefix for the pool. Should be contained within   
                the network-prefix, if configured.”;
]     

> 
>>> 
>>>                list active-lease {
>>>                  key leased-prefix;
>>>                  description
>>>                    "List of active prefix leases.";
>>>                  leaf leased-prefix {
>>>                    type inet:ipv6-prefix;
>>>                    description
>>>                      "Active leased prefix entry.";
>>> 
>>> Is the prefix length available from some other information in the tree?
>>> If not, should it be listed here?
>> 
>> [if I’m not sure I understand the comment. The prefix pool has the 
>> ‘Client-prefix-length’ leaf which defines the length of prefixes that
>> are offered for the pd-pool.
> 
> I think the "client-prefix-length" leaf is what I was looking for, thanks.
> 
>>> Section 5
>>> 
>>> It's probably worth mentioning the risk of notifications turning into a
>>> DoS vector (absent rate-limiting) here.
>> 
>> [if - This is surely a problem with Netconf notifications overall, rather than specifically
>> For the DHCP modules? I’ve checked through RFC5277 (Netconf event notifications) and
>> There is nothing on rate-limiting messages or in the Security Considerations section
>> on this subject.]
> 
> It would be nice if 5277 had said more on this topic, sure.
> I think what's interesting to me here, specifically, is that there is a
> layer of separation between where the (hypothetical) attacker sits and the
> DoS-via-notifications channel.  That is, because this module exists,
> there's potential for an attacker that can only send DHCPv6 traffic to
> induce new traffic to be generated (as YANG notifications) fromm the DHCPv6
> server to the recipient of the notifications.  In the scenario in question,
> the frequency of notification traffic is controlled by the attacker's
> DHCPv6 traffic rather than by the DHCPv6 server itself.  The new security
> consideration is the leverage for turning DHCPv6 traffic into a different
> kind of traffic.  Does that make sense?  I don't really expect this to be a
> useful DoS vector in practice, but I've been wrong before, and the cost of
> documenting the risk seems pretty low.

[if - I have added the following paragraph to the Security Considerations:

        An attacker sending DHCPv6 messages which cause the server to   
        generate 'invalid-client-detected' and 'decline-received'       
        notifications could be used as a DoS attack. Such an attack     
        could be mitigated by the NETCONF client unsubscribing          
        from the affected notifications.
]

> 
>>> 
>>>  [RFC7824] covers privacy considerations for DHCPv6 and is applicable
>>>  here.
>>> 
>>> I'd suggest mentioning the RFC 7844 privacy profile as a partial
>>> mitigation that is sometimes applicable.
>> 
>> [if - Do you mean that RFC7844 can provide partial mitigation of the server
>> Privacy issues in RFC7824?]
> 
> On closer look, it doesn't look to actually be the case that RFC7844
> provides any means for mitigating server privacy issues, just client
> privacy issues.  But since we provide YANG models for DHCPv6 client
> behavior here, wouldn't even that limited functionality still be relevant?

[if - I’ve added the following text to the Security Considerations:

        [RFC7844] describes anonyimty profiles for      
        DHCP clients. These can be used to prevent client tracking      
        on a visited network. Support for this can be enabled by        
        implementing the 'anon-profile' feature in the client           
        module.
]

> 
> [now in the "NITS" portion]
>>>            case mysql {
>>>              leaf mysql-name {
>>>                type string;
>>>                description
>>>                  "Name of the database.";
>>>              }
>>>              [...]
>>> 
>>> This seems to not have provision for configuring mandatory TLS usage for
>>> connection to the mysql server.
>>> (Same for the postgres case.)
>> 
>> [if - I’ve just found draft-ietf-netconf-tls-client-server-26 which covers this and
>> Would seem to be the right way to do this.
>> 
>> However, importing this module and its dependencies and using the tis-client-grouping for 
>> Mysql and Postgres results in the tree diagram growing from 49 lines to
>> 401 with the TLS configuration, which somewhat detracts from the point of the example.
>> 
>> Given that this is provided as an example module for a theoretical implementation,
>> Would it make more sense to remove the mysql-host choice and add text in
>> The mysql-host configuration description to say that the database must be running
>> On the localhost? This could be noted in the Appendix descriptive text as well.]
> 
> That seems like a reasonable way to keep the example focused (please note
> that as far as I know, the situation for postgres and mysql is equivalent
> in this regard).
> In the general case, even running only on localhost is not always
> sufficient protection such that TLS is not needed, so I'd advise covering
> that in the Appendix descriptive text as well.  Brainstorming (please do
> adjust as appropriate), that might resemble:
> 
> This exmaple aims to illustrate the extension of the server YANG module
> with configuration such as a lease storage database.  For simplicity and to
> maintain focus on that goal, it assumes that the actual database server is
> colocated and can serve traffic securely on localhost without additional
> cryptographic protection.  A production service would likely not be
> colocated and thus use TLS to secure the database connection between DHCPv6
> server and database server; the TLS configuration would require additional
> configuration, as might be modeled using
> [draft-ietf-netconf-tls-client-server].

[if - I’ve removed the mysql-host and Postgresql-host choices from the model and updated
the descriptions to read:

        Name of the MySQL database, running on the localhost.

In the relevant appendix text, I’ve added the following paragraph:

        For simplicity, this example module assumes that the DHCPv6    
        server is colocated with the MySQL or PostgreSQL database        
        server and can serve traffic securely on the localhost without  
        additional cryptographic protection.  In a production           
        deployment, these functions would likely not be colocated       
        and thus use TLS to secure the database connection between      
        the DHCPv6 server and database server. A YANG module for        
        configuring TLS is defined in [draft-ietf-netconf-tls-client-server].  
]

> 
> 
> Many thanks for all the updates that I trimmed -- there was a lot of good
> stuff in there and it's great to see that.
> 
> -Ben