Re: [rtcweb] STUN for keep-alive

Magnus Westerlund <magnus.westerlund@ericsson.com> Tue, 20 September 2011 08:26 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0920321F8A97 for <rtcweb@ietfa.amsl.com>; Tue, 20 Sep 2011 01:26:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.514
X-Spam-Level:
X-Spam-Status: No, score=-106.514 tagged_above=-999 required=5 tests=[AWL=0.085, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yISFPlVzCtDf for <rtcweb@ietfa.amsl.com>; Tue, 20 Sep 2011 01:26:42 -0700 (PDT)
Received: from mailgw9.se.ericsson.net (mailgw9.se.ericsson.net [193.180.251.57]) by ietfa.amsl.com (Postfix) with ESMTP id DBC2C21F8A7B for <rtcweb@ietf.org>; Tue, 20 Sep 2011 01:26:41 -0700 (PDT)
X-AuditID: c1b4fb39-b7bfdae000005125-e9-4e784ed27a2f
Received: from esessmw0184.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw9.se.ericsson.net (Symantec Mail Security) with SMTP id 37.C8.20773.2DE487E4; Tue, 20 Sep 2011 10:29:06 +0200 (CEST)
Received: from [127.0.0.1] (153.88.115.8) by esessmw0184.eemea.ericsson.se (153.88.115.82) with Microsoft SMTP Server id 8.3.137.0; Tue, 20 Sep 2011 10:29:06 +0200
Message-ID: <4E784ED1.5000502@ericsson.com>
Date: Tue, 20 Sep 2011 10:29:05 +0200
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: Randell Jesup <randell-ietf@jesup.org>
References: <7F2072F1E0DE894DA4B517B93C6A05852233EDB21D@ESESSCMS0356.eemea.ericsson.se> <1D062974A4845E4D8A343C653804920206648CB0@XMB-BGL-414.cisco.com> <7F2072F1E0DE894DA4B517B93C6A05852233EDB264@ESESSCMS0356.eemea.ericsson.se> <1D062974A4845E4D8A343C653804920206648CEB@XMB-BGL-414.cisco.com> <7F2072F1E0DE894DA4B517B93C6A05852233EDB2F0@ESESSCMS0356.eemea.ericsson.se> <1D062974A4845E4D8A343C653804920206648D0F@XMB-BGL-414.cisco.com> <7F2072F1E0DE894DA4B517B93C6A05852233EDB3E5@ESESSCMS0356.eemea.ericsson.se> <4E70D2E6.1000809@alvestrand.no> <CABcZeBORi5NLSsztnMfkwL43p9oKG9mi6e1WWOaiafAO_DpTVg@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A05852233D45FA3@ESESSCMS0356.eemea.ericsson.se> <CABcZeBO9hUSYZhLrcfbaK9HLGXq-q1EvqWOy6-gAN5xom6Z2-A@mail.gmail.com> <092401cc749b$8fd64940$af82dbc0$@com> <CABcZeBPgRD6kb2gg=m9NckSa1wrzwzJS6527nYqFG34b0cjfgQ@mail.gmail.com> <4E77543E.1040704@ericsson.com> <4E777DA0.80201@jesup.org>
In-Reply-To: <4E777DA0.80201@jesup.org>
X-Enigmail-Version: 1.3.1
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: AAAAAA==
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] STUN for keep-alive
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Sep 2011 08:26:43 -0000

On 2011-09-19 19:36, Randell Jesup wrote:
> On 9/19/2011 10:39 AM, Magnus Westerlund wrote:
>> Hi,
>>
>> As an individual I like to provide some analyze of the entropy in
>> RTP/RTCP. Please consider, comment and provide opinion about the number
>> of bits.
> Thanks for the excellent analysis, Magnus.
> 
>> On 2011-09-16 20:30, Eric Rescorla wrote:
>>>> The RTCP receiver reports should be adequate for 'consent freshness', no?
>>>> If I still like receiving the traffic, I'll report that I'm receiving it.
>>>> If I have crashed or disconnected or am not listening on that port, I won't.
>>> I believe so, though I'd have to make sure there's enough entropy. And of course
>>> some implementations may not do RTCP...
>>>
>> So one case of attack is the one when the webserver S uses the connected
>> clients to attack target T by instructing client C to send to target T.
>> So the Server or some server controlled entity A needs to send RTCP to C
>> that makes C believe T is responding, i.e. spoofed source address that
>> are T's plus the content of the RTCP RR. Please note that SRTP will not
>> provide any protection if the webserver knows the key. Thus if security
>> description is allowed, which appear reasonable if supporting legacy is
>> the goal, which is the reason for this whole proposal.
> 
> I would disagree with one aspect of that: I don't know that we need to
> support SDES, and if we do, we only need to support it for "legacy"
> connections, not true webrtc browser-to-browser connections, which I
> assert should always be DTLS.  Of course, non-encrypted RTP to a legacy
> device would have no protection against spoofing of return RTCP at all.

I think this analyze is valid for several different proposals that has
been raised.

1) Consent Freshness, i.e. the verification that a previous verified
destination continues to be present

2) Use RTCP instead of ICE for delivery consent, especially against
legacy which likely doesn't support ICE nor SRTP.

And I would also observe that we have no WG consensus on the security
mechanism. We have no WG document containing an assumption, nor have we
made a consensus call about what mechanism to support. I agree that DTLS
seems to have strong support as default keying mechanism, but also their
has been a fair amount of voices that thinks Security Descriptions
should be supported also to make keying towards legacy SRTP systems much
simpler.

Yes, it is likely time to do the consensus calls on the media security
mechanisms so that will be settled.

> 
> Note that we need to complete a valid ICE exchange with the target
> per the current spec, so T can only be attacked to begin with if the ICE
> exchange can be spoofed.  The original scenario from Eric was about "how
> do I determine if the recipient wants to *continue* to receive data
> after a valid exchange (for example after ending the call or
> rebooting/crashing).  I haven't checked the properties of ICE and the
> ability to spoof it, but before analyzing the entropy required to attack
> the return RTCP 'freshness' state, we need to show that the attack could
> be begun, or state that ICE is not mandatory for some connections.

But, if we want to look at not using ICE with legacy and still establish
consent to receive then RTCP has been discussed and I did want to
provide some indication of how strong this is.

Which I agree is fairly week, that considering that one appear to need
several RRs in sequence that are consistent combined with the reporter
having received SRs to be reasonably sure, which implies 10-30 seconds
before consent is being established as a less than working idea.

Cheers

Magnus Westerlund

----------------------------------------------------------------------
Multimedia Technologies, Ericsson Research EAB/TVM
----------------------------------------------------------------------
Ericsson AB                | Phone  +46 10 7148287
Färögatan 6                | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden| mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------