Re: [MMUSIC] RTSP 2.0: Updating HTTP Authentication to RFC7235, RFC7616, and RFC7617

Magnus Westerlund <magnus.westerlund@ericsson.com> Wed, 14 September 2016 14:54 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 307B712B9F7 for <mmusic@ietfa.amsl.com>; Wed, 14 Sep 2016 07:54:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 j4-NYUlWyBkH for <mmusic@ietfa.amsl.com>; Wed, 14 Sep 2016 07:54:02 -0700 (PDT)
Received: from sesbmg23.ericsson.net (sesbmg23.ericsson.net [193.180.251.37]) (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 BFF7A12B9F9 for <mmusic@ietf.org>; Wed, 14 Sep 2016 07:22:22 -0700 (PDT)
X-AuditID: c1b4fb25-15fff7000000793b-2a-57d95d1c3302
Received: from ESESSHC007.ericsson.se (Unknown_Domain [153.88.183.39]) by (Symantec Mail Security) with SMTP id 21.F1.31035.C1D59D75; Wed, 14 Sep 2016 16:22:21 +0200 (CEST)
Received: from [127.0.0.1] (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.41) with Microsoft SMTP Server id 14.3.301.0; Wed, 14 Sep 2016 16:22:19 +0200
To: "mmusic (E-mail)" <mmusic@ietf.org>, "draft-ietf-mmusic-rfc2326bis@tools.ietf.org" <draft-ietf-mmusic-rfc2326bis@tools.ietf.org>, Alissa Cooper <alissa@cooperw.in>
References: <63711049-a3e7-4e62-4bb4-f59560d07296@ericsson.com>
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
Message-ID: <7b86a690-c83d-f7f0-ddbb-596ffaecd804@ericsson.com>
Date: Wed, 14 Sep 2016 16:22:18 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <63711049-a3e7-4e62-4bb4-f59560d07296@ericsson.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrILMWRmVeSWpSXmKPExsUyM2K7uq5s7M1wg5f7+Cymn/nLaHFt9xQm i6nLH7M4MHt8efKSyWPJkp9MHl8uf2YLYI7isklJzcksSy3St0vgyuh6OJ21oFutov3ob+YG xn65LkZODgkBE4lbO04zdjFycQgJrGeUuNP5C8pZzihx5UwfM0iVsEC8xOd7B9hAEiICaxkl Pm1dywaSEBKwl1i2dTsriM0mYCFx80cjWJwXKP55yzpGEJtFQFXiw/MnLF2MHByiAjES6/sS IEoEJU7OBAlzcnAKOEicOH6ZEaSEGaj1wdYykDCzgLxE89bZzBCbtCUamjpYJzDyz0LSPQuh YxaSjgWMzKsYRYtTi5Ny042M9VKLMpOLi/Pz9PJSSzYxAgPy4JbfqjsYL79xPMQowMGoxMP7 IPxmuBBrYllxZe4hRgkOZiUR3o0RQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8/85eDxcSSE8s Sc1OTS1ILYLJMnFwSjUwTki+K/cjK79euLbhuuusnOJe376pwte3x7SndlefyMvbUWsceGdV 1T111foaZq8yBuNXgclWrSp2td8WVhhr830zP7jble1diWJ8wLHe0pyd+otsF6nuYFhqULn7 hcz/CZ4LP01TUNLqyK0079AqOb2zojG1RijLV23iMWcf8ThXuW4/PiWW4oxEQy3mouJEANKs GKBEAgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/2IysRbe-68ixHqMyX8ZWCThbfTI>
Subject: Re: [MMUSIC] RTSP 2.0: Updating HTTP Authentication to RFC7235, RFC7616, and RFC7617
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mmusic/>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Sep 2016 14:54:05 -0000

Hi,

I have implemented this in the specification text after having reviewed 
the new specifications in detail.

So this means that SHA2-256 is the mandatory hashing algorithm, rather 
than MD5. As RTSP 2.0 already requires support of SHA2-256 the extra 
implementation impact is minimal.

I have also chosen to attempt to point even more on the new RFCs 7235, 
7615, 7616, and 7617. This includes also the ABNF of the field values. 
This is so that RTSP 2.0 will use HTTP authentication as defined, and 
not its own variant.

Cheers

Magnus


Den 2016-09-13 kl. 15:31, skrev Magnus Westerlund:
> WG,
>
> In the Authors48 review of
> https://datatracker.ietf.org/doc/draft-ietf-mmusic-rfc2326bis/ I have
> come to look at the authentication mechanisms used in RTSP 2.0. These
> are basically the HTTP mechanism with some clarifications that are based
> on the ones for SIP.
>
> The draft that was approved by IESG more than 2 years ago pointed to RFC
> 2617. However, since then the updated HTTP specification has been
> approved RFC7230 to RFC7235. So part of preparation for publication we
> have updated references to the current specifications.
>
> This has had relative minor impact as all the headers etc are copied and
> authoritatively specified in the RTSP specification. Then there are
> security considerations that are referencing issues and threats and
> remedies that are generally applicable in the new specification. This
> required some work, and even leaving some references to the obsolete one
> as the new one lacks corresponding text. However, this is not protocol
> specifications.
>
> However, the references to RFC2617 they are however protocol details.
> RFC2617 has been changed to consist of a framework document (RFC7235)
> and the basic (RFC7617) and digest (RFC7616) authentication schemes.
> This will have impact on the actual protocol implementations.
>
> To give you some understanding of what has changed I have below included
> the three RFCs changes section. I think using the latest version rather
> than pointing to the obsoleted versions will mean an improvement in
> clarity, and also modern algorithms. I note that the RTSP 2.0
> specification already mandates support of SHA-256 in the
> Accept-Credentials header.
>
> However, if someone has concerns over these changes, please raise them now.
>
> RFC 7235:
> Appendix A.  Changes from RFCs 2616 and 2617
>
>    The framework for HTTP Authentication is now defined by this
>    document, rather than RFC 2617.
>
>    The "realm" parameter is no longer always required on challenges;
>    consequently, the ABNF allows challenges without any auth parameters.
>    (Section 2)
>
>    The "token68" alternative to auth-param lists has been added for
>    consistency with legacy authentication schemes such as "Basic".
>    (Section 2)
>
>    This specification introduces the Authentication Scheme Registry,
>    along with considerations for new authentication schemes.
>    (Section 5.1)
>
>
> RFC 7616:
> Appendix A.  Changes from RFC 2617
>
>    This document introduces the following changes:
>
>    o  Adds support for two new algorithms, SHA2-256 as mandatory and
>       SHA2-512/256 as a backup, and defines the proper algorithm
>       negotiation.  The document keeps the MD5 algorithm support but
>       only for backward compatibility.
>
>    o  Introduces the username hashing capability and the parameter
>       associated with that, mainly for privacy reasons.
>
>    o  Adds various internationalization considerations that impact the
>       A1 calculation and username and password encoding.
>
>    o  Introduces a new IANA registry, "Hash Algorithms for HTTP Digest
>       Authentication", that lists the hash algorithms that can be used
>       in HTTP Digest Authentication.
>
>    o  Deprecates backward compatibility with RFC 2069.
>
>
> RFC 7617:
> Appendix A.  Changes from RFC 2617
>
>    The scheme definition has been rewritten to be consistent with newer
>    specifications such as [RFC7235].
>
>    The new authentication parameter 'charset' has been added.  It is
>    purely advisory, so existing implementations do not need to change,
>    unless they want to take advantage of the additional information that
>    previously wasn't available.
>


-- 

Magnus Westerlund

----------------------------------------------------------------------
Services, Media and Network features, Ericsson Research EAB/TXM
----------------------------------------------------------------------
Ericsson AB                 | Phone  +46 10 7148287
Färögatan 6                 | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------