Re: [mpls] LDP Security

Eric Gray <eric.gray@ericsson.com> Wed, 08 November 2017 22:01 UTC

Return-Path: <eric.gray@ericsson.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5A8DB129B52; Wed, 8 Nov 2017 14:01:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 LuczQEMb8Um5; Wed, 8 Nov 2017 14:01:07 -0800 (PST)
Received: from usplmg20.ericsson.net (usplmg20.ericsson.net [198.24.6.45]) (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 8401D1271FD; Wed, 8 Nov 2017 14:01:04 -0800 (PST)
X-AuditID: c618062d-8efff70000004288-2a-5a037e9f33ba
Received: from EUSAAHC003.ericsson.se (Unknown_Domain [147.117.188.81]) by usplmg20.ericsson.net (Symantec Mail Security) with SMTP id 75.07.17032.F9E730A5; Wed, 8 Nov 2017 23:01:04 +0100 (CET)
Received: from EUSAAMB107.ericsson.se ([147.117.188.124]) by EUSAAHC003.ericsson.se ([147.117.188.81]) with mapi id 14.03.0352.000; Wed, 8 Nov 2017 17:01:03 -0500
From: Eric Gray <eric.gray@ericsson.com>
To: Eric Rescorla <ekr@rtfm.com>, Stewart Bryant <stewart.bryant@gmail.com>
CC: "mpls@ietf.org" <mpls@ietf.org>, "pals-chairs@tools.ietf.org" <pals-chairs@tools.ietf.org>, "<rtg-ads@ietf.org>" <rtg-ads@ietf.org>, "mpls-chairs@ietf.org" <mpls-chairs@ietf.org>, "pals@ietf.org" <pals@ietf.org>, "<sec-ads@ietf.org>" <sec-ads@ietf.org>
Thread-Topic: [mpls] LDP Security
Thread-Index: AQHTWLbpcFjTDKhuoEWsKIVkOj1Ru6MLGRoA///qPtA=
Date: Wed, 08 Nov 2017 22:01:02 +0000
Message-ID: <48E1A67CB9CA044EADFEAB87D814BFF64B870140@eusaamb107.ericsson.se>
References: <2da71163-cf29-cba6-df61-d75a2cfc9c43@gmail.com> <d3b28075-d8c0-c677-1f4b-6ad5ee5539ca@gmail.com> <CAA=duU2PzZLymVZk-PR9B94Pj1WMsHe+TTv51Ukef2MaSg-DbA@mail.gmail.com> <5994f353-5306-0fa8-2d2d-024ebdbb10df@gmail.com> <CAA=duU2YLjSg8Q5PDT+u9cxn9u2xsiPu-imBJrnyL3bfkQFW7A@mail.gmail.com> <7ee4fd77-7d8d-0db2-527e-9cf91d87e634@gmail.com> <CAA=duU3nJsS86udidgkH9jhB9ZD+xaRa2A4MniAVL1BpGE78ZQ@mail.gmail.com> <cf0cb5a4-cc21-97e1-1c26-38974bf9c0be@pi.nu> <51b9e5b4-0a44-1449-a4df-91e4f9df5d6b@pi.nu> <CAA=duU2R9kBMWnRdwPPO49LF1Jc1tyrxvwkyTgaE6SC6jsVruw@mail.gmail.com> <02a50f02-779e-bc39-505c-5a51d066b3f0@pi.nu> <CAA=duU1qV-LiU5pR7VtLLVGtb-8nZHrnUqVyOKpST3-6Dr-Xgw@mail.gmail.com> <ce2c75b6-156d-da80-91d7-b7e6ba2059a0@gmail.com> <CAA=duU1xvV0genbR0CBx2rmpOWUkFmRJX3qrMEp21gTd1HOVww@mail.gmail.com> <f0d553da-0ac4-e794-5cd5-d9cc95063dc6@pi.nu> <15335748-e900-280d-554f-24c55c0f3ba5@gmail.com> <CABcZeBOr5x=98nXeBCT8O-wjk90ga1F3EVk2ktMYoAj9Q8tRkg@mail.gmail.com>
In-Reply-To: <CABcZeBOr5x=98nXeBCT8O-wjk90ga1F3EVk2ktMYoAj9Q8tRkg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [147.117.188.10]
Content-Type: multipart/alternative; boundary="_000_48E1A67CB9CA044EADFEAB87D814BFF64B870140eusaamb107erics_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsUyuXRPoO6COuYog++fGS1WvD7HbrHu8ik2 i1tLV7JaPL+ygNFizb91TBYn5/xgtlg//QuLxakHiQ4cHjtn3WX3WLLkJ5PH5MdtzB5fLn9m C2CJ4rJJSc3JLEst0rdL4Mr4eOYuU8GmFYwVH741sTYwflnM2MXIySEhYCJxZOYEIJuLQ0jg CKPEnkfvoJxljBL7Gg6yglSxCWhIHLuzFqxDRMBb4tOdBlaQImaBNiaJyzvmACU4OIQFFCSu /ZOCqFGUuHtlJhtIWETASuJ3kzBImEVARWLi/lNMIDavgK/EupkXwcYLCbxglzj5PRTE5hQI lJh5aBJYnFFATOL7qTVg9cwC4hK3nsxngjhaQGLJnvPMELaoxMvH/1ghbCWJSUvPsULU50t8 a17GDLFLUOLkzCcsExhFZiEZNQtJ2SwkZbOArmYW0JRYv0sfokRRYkr3Q3YIW0Oidc5cdmTx BYzsqxg5SosLcnLTjQw2MQKj8ZgEm+4OxvvTPQ8xCnAwKvHwTkhnjhJiTSwrrsw9xCjBwawk wmudCRTiTUmsrEotyo8vKs1JLT7EKM3BoiTOO+H8hQghgfTEktTs1NSC1CKYLBMHp1QD4zIR wYkhJ9YcXf998dRV+2UOcNXcvPYxn892ekXpMvs7U5MqRV9r2S7nfLrh6yy7Hudr8SePb6hi fb3Pm7dNSHJ6wJQ5fxRmMF2f1NCXGtdsc2CL2ctJrYJXTFbGF805q596O1z55PfAzxWTzx01 nqS+r8I+ZYbjNdX0jx+e8dv8K9tw+yrTNn8lluKMREMt5qLiRABV0LNtwgIAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/urMqvPee_8-pjOS4PdCR4yXjKWQ>
Subject: Re: [mpls] LDP Security
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Nov 2017 22:01:10 -0000

Eric,

                This becomes another argument to follow BGP in resolving the issues.  The push from customers to fix the problem is essentially the same and resolving the problem for BGP will almost certainly resolve it for LDP as well.

--
Eric

From: mpls [mailto:mpls-bounces@ietf.org] On Behalf Of Eric Rescorla
Sent: Wednesday, November 08, 2017 1:00 PM
To: Stewart Bryant <stewart.bryant@gmail.com>
Cc: mpls@ietf.org; pals-chairs@tools.ietf.org; <rtg-ads@ietf.org> <rtg-ads@ietf.org>; mpls-chairs@ietf.org; pals@ietf.org; <sec-ads@ietf.org> <sec-ads@ietf.org>
Subject: Re: [mpls] LDP Security

Hi Stewart

Thanks for your note.

My overall sense of the state of play is, I think much like yours.

TCP-MD5 is inadequate in two major respects:
- It uses weak algorithms
- It has a bad negotiation/setuop story (manual key management)

TCP-AO is intended to be a drop-in replacement for TCP-MD5 and so remedies the algorithm
issue but not the key management issue [0]. We haven't made much progress on the key
management story, and that seems to be a major impediment to deploying either of these
technologies (which I am given to understand don't see a lot of use). We should probably
talk in Singapore about that, but that's not going to get better any time soon.

In the interim, I think the text you have is OK, and "TBD" should read "SHA-256", with
the fallback being SHA-256 -> SHA-1 -> MD5.

-Ekr


[0] Technically It has better support for rollover, but this is not a huge improvement.
[1] tcpcrypt is kind of orthogonal here as it's unauthenticated but opportunistic.  That said,
it would provide defense against attackers who gain access to the link after connection
setup and doesn't require configuration.

On Wed, Nov 8, 2017 at 9:27 AM, Stewart Bryant <stewart.bryant@gmail.com<mailto:stewart.bryant@gmail.com>> wrote:
To the SEC and RTG ADs,

I am sending the following message on behalf of the MPLS and the
PALS WG Chairs.

There is a concern shared among the security community and the working groups that develop the LDP protocol that LDP is no longer adequately secured. LDP currently relies on MD5 for cryptographic security of its messages, but MD5 is a hash function that is no longer considered to meet current security requirements.

In RFC5036 (published 2007) Section 5.1 (Spoofing) , List element 2. Session communication carried by TCP the following statements is made:

"LDP specifies use of the TCP MD5 Signature Option to provide for the authenticity and integrity of session messages.

"[RFC2385] asserts that MD5 authentication is now considered by some to be too weak for this application.  It also points out that a similar TCP option with a stronger hashing algorithm (it cites SHA-1 as an example) could be deployed.  To our knowledge, no such TCP option has been defined and deployed.  However, we note that LDP can use whatever TCP message digest techniques are available, and when one stronger than MD5 is specified and implemented, upgrading LDP to use it would be relatively straightforward."

We note that BGP has already been through this process, and replaced MD5 with TCP-AO in RFC 7454. I would be logical to follow the same approach to secure LDP. However, as far as we are able to ascertain, there is currently no recommended, mandatory to implement, cryptographic function specified. We are concerned that without such a mandatory function, implementations will simply fall back to MD5 and we will be no further forward

We think that the best way forward is to publish a draft similar to RFC 7454 that contains the following requirement:

"Implementations conforming to this RFC MUST implement TCP-AO to secure the TCP sessions carrying LDP in addition to the currently required TCP MD5 Signature Option. Furthermore, the TBD cryptographic mechanism must be implemented and provided to TCP-AO to secure LDP messages. The TBD mechanism is the preferred option, and MD5 is only to be used when TBD is unavailable."

We are not an experts on this part of the stack, but it seems that TCP security negotiation is still work in progress. If we are wrong, then we need to include a requirement that such negotiation is also required. In the absence of a negotiation protocol, however, we need to leave this as a configuration process until such time as the negotiation protocol work is complete. On completion of a suitable negotiation protocol we need to issue a further update requiring its use.

Additionally we should note that no cryptographic mechanism has an indefinite lifetime, and that implementation should note the IETF anticipates updating the default cryptographic mechanism over time.

The TBD default security function will need to be chosen such that it can reasonably be implemented on a typical router route processor, and which will provide adequate security without significantly degrading the convergence time of an LSR. Without a function that does not significantly impact router convergence we simply close one vulnerability and open another.

As experts on the LDP protocol, but not on security mechanisms, we  need to ask the security area for a review of our proposed approach, and help correcting any misunderstanding of the security issues or our misunderstanding of the existing security mechanisms. We also need the recommendations of a suitable security function (TBD in the above text).

Best regards

The MPLS WG Chairs
The PALS WG Chairs