[MMUSIC] Errata Rejected [Fwd: Re: [Technical Errata Reported] RFC2326 (4199)]

Flemming Andreasen <fandreas@cisco.com> Fri, 15 May 2015 19:48 UTC

Return-Path: <fandreas@cisco.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B5101A8864 for <mmusic@ietfa.amsl.com>; Fri, 15 May 2015 12:48:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 b9D9PHpY5oSu for <mmusic@ietfa.amsl.com>; Fri, 15 May 2015 12:48:54 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F0FDC1A8860 for <mmusic@ietf.org>; Fri, 15 May 2015 12:48:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=24341; q=dns/txt; s=iport; t=1431719334; x=1432928934; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to; bh=yfWKi2UJciEIIx63OpYsDp8/YdsmuVZV8c/jmP68ZwI=; b=lJ0mJQUq2VqnWqlGEb6dmHOtmcoPlrYEjOgcvdTUyN6wRqXWGBOnQsJF XAFOHdYB1Z/axB5cBvRLYsGbvlXpptUGf5nG2b4Ay8Sl2eeHSvVWl6odw pXPM2ARPaGh1mkvX2tF3rp2wmyYllgFLWunzkLYhudS0rzy6cxopVeBvp E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BpBAArTVZV/49dJa1CGoMQVF6yYgEBAQeReQmBNhkBCYUsSgKBNTgUAQEBAQEBAYEKhCIBAQEEAQEBCQ5NBwsOAhwDAQIBCR4HDwIKBgYfCQgGCgMBBQIBAYgTAxINOtFmDYUIAQEBAQEBAQEBAQEBAQEBAQEBAQEBFwSGEoZhgRCBbToRBwaEJwWGZAOEVYEbixCBbYIrgVWBJ4Nlglt+hyOCcS6DWCNhgSYDDQ+BbiIxARKCMwEBAQ
X-IronPort-AV: E=Sophos;i="5.13,436,1427760000"; d="scan'208,217";a="150608165"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by alln-iport-4.cisco.com with ESMTP; 15 May 2015 19:48:32 +0000
Received: from [10.98.149.205] (bxb-fandreas-88112.cisco.com [10.98.149.205]) by rcdn-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id t4FJmUj8023025; Fri, 15 May 2015 19:48:30 GMT
Message-ID: <55564D95.60802@cisco.com>
Date: Fri, 15 May 2015 15:48:37 -0400
From: Flemming Andreasen <fandreas@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: mmusic <mmusic@ietf.org>
References: <54C76A07.1090902@ericsson.com>
In-Reply-To: <54C76A07.1090902@ericsson.com>
X-Forwarded-Message-Id: <54C76A07.1090902@ericsson.com>
Content-Type: multipart/alternative; boundary="------------060602090604010901030901"
Archived-At: <http://mailarchive.ietf.org/arch/msg/mmusic/RANqTlxxnaGnIsZEpC_4SeJFnP0>
Cc: Magnus Westerlund <magnus.westerlund@ericsson.com>, juliusfriedman@gmail.com
Subject: [MMUSIC] Errata Rejected [Fwd: Re: [Technical Errata Reported] RFC2326 (4199)]
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Fri, 15 May 2015 19:48:58 -0000

Greetings MMUSIC

Following up on this old thread, we have not seen any further e-mail 
exchanges that would change Magnus's recommendation to reject the errata 
in question. We plan to inform our ADs and the RFC Editor accordingly by 
Friday May 22nd. If you disagree with this, please let us know before then.

Thanks

-- Flemming (MMUSIC co-chair)


-------- Forwarded Message --------
Subject: 	Re: [MMUSIC] [Technical Errata Reported] RFC2326 (4199)
Date: 	Tue, 27 Jan 2015 11:35:51 +0100
From: 	Magnus Westerlund <magnus.westerlund@ericsson.com>
To: 	rlb@ipv.sx, alissa@cooperw.in, fandreas@cisco.com, 
ari.keranen@ericsson.com
CC: 	juliusfriedman@gmail.com, mmusic@ietf.org



Hi,

Regarding this errata I recommend that it is being rejected. The reason
is that is is technical change that can cause compatibility issues, and
further does not resolve the issue as it is missing the required
escaping definitions (another technical change). In addition we know
that RFC 2326 is quite buggy and attempting to fix it with Errata does
not work.

However, as this issue is retained in RTSP 2.0 I like to comment on it
in that context. Thus, the question becomes should we fix this in RTSP 2.0?

Both version of RTSP allows binary non-escaped data in two places. The
message-body as well as the data portion of the Embedded binary data.
These parts can clearly contain a octet value of decimal 36 ("$"). Thus
these must be skipped by any parser using the provided length fields.
Thus, a very simple parser based on just looking for $ in a byte stream
will not work anyway. The parser must know what part of the message
structures it is in to be able to correctly parse and consume incoming
bytes over the RTSP connection.

Thus a parser must work on message basis. Which means that requests,
responses and embedded data must be possible to separate. This must be
done on the beggining of each chunk. Response starts with RTSP/2.0 and
can't contain $. Requests starts with the method name. Unfortunately the
ABNF is not explicit on forbidding a method name to start with a $.
However, the text in Section 13 is. We should clearly consider fixing
the ABNF so that it is explicit also in the ABNF.

However, taking the proposed step and moving $ into the reserved
category of characters will have much more significant impact. For
example, it will result in an URI format that is more restricted than
the general one. I haven't analysed the full impact of this. Nor have I
looked through all the headers which may contain values to see what
impact this has.

However, the current specification does not prevent correct separation
of RTSP messages from interleaved. It does require a message aware
parser and that parser could be tripped by malformed messages. If this
issue had been raised early in the RTSP 2.0 work, we could have resolved
it to a much greater satisfaction and been able to make the protocol
more robust.


Cheers

Magnus


On 2014-12-12 00:48, RFC Errata System wrote:
> The following errata report has been submitted for RFC2326, "Real
> Time Streaming Protocol (RTSP)".
>
> -------------------------------------- You may review the report
> below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=2326&eid=4199
>
> -------------------------------------- Type: Technical Reported by:
> Julius Friedman <juliusfriedman@gmail.com>
>
> Section: 4
>
> Original Text ------------- 4 RTSP Message
>
> RTSP is a text-based protocol and uses the ISO 10646 character set
> in UTF-8 encoding (RFC 2279 [21]). Lines are terminated by CRLF, but
> receivers should be prepared to also interpret CR and LF by
> themselves as line terminators.
>
> Text-based protocols make it easier to add optional parameters in a
> self-describing manner. Since the number of parameters and the
> frequency of commands is low, processing efficiency is not a concern.
> Text-based protocols, if done carefully, also allow easy
> implementation of research prototypes in scripting languages such as
> Tcl, Visual Basic and Perl.
>
> The 10646 character set avoids tricky character set switching, but is
> invisible to the application as long as US-ASCII is being used. This
> is also the encoding used for RTCP. ISO 8859-1 translates directly
> into Unicode with a high-order octet of zero. ISO 8859-1 characters
> with the most-significant bit set are represented as 1100001x
> 10xxxxxx. (See RFC 2279 [21])
>
> RTSP messages can be carried over any lower-layer transport protocol
> that is 8-bit clean.
>
> Requests contain methods, the object the method is operating upon
> and parameters to further describe the method. Methods are
> idempotent, unless otherwise noted. Methods are also designed to
> require little or no state maintenance at the media server.
>
> Corrected Text --------------
>
>
> 4 RTSP Message
>
> RTSP is a text-based protocol and uses the ISO 10646 character set
> in UTF-8 encoding (RFC 2279 [21]). Lines are terminated by CRLF, but
> receivers should be prepared to also interpret CR and LF by
> themselves as line terminators.
>
> Text-based protocols make it easier to add optional parameters in a
> self-describing manner. Since the number of parameters and the
> frequency of commands is low, processing efficiency is not a concern.
> Text-based protocols, if done carefully, also allow easy
> implementation of research prototypes in scripting languages such as
> Tcl, Visual Basic and Perl.
>
> The 10646 character set avoids tricky character set switching, but is
> invisible to the application as long as US-ASCII is being used. This
> is also the encoding used for RTCP. ISO 8859-1 translates directly
> into Unicode with a high-order octet of zero. ISO 8859-1 characters
> with the most-significant bit set are represented as 1100001x
> 10xxxxxx. (See RFC 2279 [21])
>
> RTSP messages can be carried over any lower-layer transport protocol
> that is 8-bit clean.
>
> Requests contain methods, the object the method is operating upon
> and parameters to further describe the method. Methods are
> idempotent, unless otherwise noted. Methods are also designed to
> require little or no state maintenance at the media server.
>
> *Please note the hexadecimal octet 0x36 should not be included in any
>  part of a RTSP message, if present it should be replaced with binary
>  escaped sequence as defined in: <consensus>*.
>
> Notes ----- Section [15.1 Base Syntax] makes the following
> definitions: .. safe               =  "$" | "-" | "_" | "." | "+" ..
> reserved           =  ";" | "/" | "?" | ":" | "@" | "&" | "=" extra
> =  "!" | "*" | "$'$" | "(" | ")" | "," unreserved         =  alpha |
> digit | safe | extra xchar              =  unreserved | reserved |
> escape
>
> However it doesn't explicitly state the association of "$"
> [hexadecimal 0x24]
>
> Section [10.12 Embedded (Interleaved) Binary Data] specified a
> mechanism of transferring RTSP messages over a TCP connection with a
> application layer header consisting of the hexadecimal octet 0x24;
> followed by a single octet channel identifier and the RFC4571 length
> specifier of the frame.
>
> Due to the fact 0x24 violates section 4's requirements based on the
> fact it cannot be masked with the octet (AND 0xc3) to ensure it is a
> valid character I am filing this errata.
>
> The chosen octet may also be present, specifically in the types of
> RTSP messages which are interleaved during playback such as ANNOUNCE.
> E.g. 0x24 could be a part of the configuration specifying the bits
> per pixel or audio bit depth as part of the SDP inter alia.
>
> In such cases the underlying parser would interpret this octet as the
> start of the defined application header and cause framing errors
> which could cause data loss as allow for buffer overflow attacks of
> carefully crafted binary data.
>
> There are also definitions which need to be made in the stadard for
> what to do when less then the amount of bytes indicated by the
> application layer frame header are or are not present. (e.g. more or
> less bytes are required then are present during reception of the
> given the [$CXX] application header sequence).
>
> It is based on these considerations among others that I recommend
> that "$" [hexadecimal octet 0x24] be added to the reserved list and
> if necessary an escaping mechanism be defined where it is replaced
> with an escaped sequence which is agreed upon after consensus.
>
> Due to the fact that drafts also specify that RTSP can be extended
> with any type of message so long as the data is not "$" the first
> character it is ambiguous may also appear elsewhere in the status
> line.
>
> There are also issues with the ambiguous definition of pdu
> fragmentation defined in the latest draft, e.g. the mechanism defined
> as possibly required when pdu's larger then 65535 bytes are used
> however it specified no way to convey how this occurs or why.
>
> The same can also be said for "sink" and "source" however I will
> address those definitions et al when appropriate.
>
> Thank you for your time!
>
> Instructions: ------------- This erratum is currently posted as
> "Reported". If necessary, please use "Reply All" to discuss whether
> it should be verified or rejected. When a decision is reached, the
> verifying party (IESG) can log in to change the status and edit the
> report, if necessary.
>
> -------------------------------------- RFC2326 (no draft string
> recorded) -------------------------------------- Title
> : Real Time Streaming Protocol (RTSP) Publication Date    : April
> 1998 Author(s)           : H. Schulzrinne, A. Rao, R. Lanphier
> Category            : PROPOSED STANDARD Source              :
> Multiparty Multimedia Session Control Area                : Real-time
> Applications and Infrastructure Stream              : IETF Verifying
> Party     : IESG
>
> _______________________________________________ mmusic mailing list
> mmusic@ietf.org https://www.ietf.org/mailman/listinfo/mmusic
>


-- 

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
----------------------------------------------------------------------

.