Re: [rtcweb] SRTP not mandatory-to-use

Randell Jesup <randell-ietf@jesup.org> Thu, 05 January 2012 04:46 UTC

Return-Path: <randell-ietf@jesup.org>
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 52D7F5E8001 for <rtcweb@ietfa.amsl.com>; Wed, 4 Jan 2012 20:46:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.251
X-Spam-Level:
X-Spam-Status: No, score=-2.251 tagged_above=-999 required=5 tests=[AWL=0.348, BAYES_00=-2.599]
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 UVbzUgh+ouJy for <rtcweb@ietfa.amsl.com>; Wed, 4 Jan 2012 20:46:17 -0800 (PST)
Received: from r2-chicago.webserversystems.com (r2-chicago.webserversystems.com [173.236.101.58]) by ietfa.amsl.com (Postfix) with ESMTP id 33C9F11E808E for <rtcweb@ietf.org>; Wed, 4 Jan 2012 20:46:17 -0800 (PST)
Received: from pool-173-49-135-74.phlapa.fios.verizon.net ([173.49.135.74] helo=[192.168.1.12]) by r2-chicago.webserversystems.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <randell-ietf@jesup.org>) id 1RifDT-0006yf-Jy for rtcweb@ietf.org; Wed, 04 Jan 2012 22:46:15 -0600
Message-ID: <4F052B03.8090101@jesup.org>
Date: Wed, 04 Jan 2012 23:45:55 -0500
From: Randell Jesup <randell-ietf@jesup.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <CAErhfrwu322=HTS0JZhum9EGfb73KmYS6CU_KMESyzEWhtvg2w@mail.gmail.com> <CABcZeBOeg-O+6===5tk0haxC8nLxUQyEUFRES2FAoFEf00fKng@mail.gmail.com> <CAErhfrxTKdo7Z+61x5ZcDt5ZM7C7ob5LNxMzwng_kk3Uqrp2_Q@mail.gmail.com> <4F01A790.4060704@alvestrand.no> <4F02A061.60905@jesup.org> <E44893DD4E290745BB608EB23FDDB762141EF8@008-AM1MPN1-042.mgdnok.nokia.com> <4F035DD5.3050305@jesup.org> <CAOJ7v-1dziaA_ePCuMxjn6uhBgOH=ZVybUmLBwQi5qiuyOzDMA@mail.gmail.com> <BLU152-W469B2EB104C104547FC42393960@phx.gbl> <CAD5OKxuE0VhSsjKggj1mLOseLeDXarujvAG44yHkuZttagJggw@mail.gmail.com> <CAKhHsXHnT2p7yncha5-BQ=-Lzk3-N+tuijM-UqwfP1mPUi173A@mail.gmail.com> <CAD5OKxuH4v2Cs4Wx2SermhqX0SdH_rXUYgMms1UV3xo1_EsN-Q@mail.gmail.com> <CA+9kkMCXACEo0QOLR-pw0AHuRJzKuKEiL7E5Oh8va9wWuFmbow@mail.gmail.com> <BLU152-W587F56E976F80F9BA6308493940@phx.gbl> <CAD5OKxtkKxUC2RNibk-9+R8LqVdsaY_19DCgB=rFDjpxQVGCnQ@mail.gmail.com>
In-Reply-To: <CAD5OKxtkKxUC2RNibk-9+R8LqVdsaY_19DCgB=rFDjpxQVGCnQ@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - r2-chicago.webserversystems.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jesup.org
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [rtcweb] SRTP not mandatory-to-use
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: Thu, 05 Jan 2012 04:46:18 -0000

On 1/4/2012 10:25 PM, Roman Shpount wrote:
>
> On Wed, Jan 4, 2012 at 8:35 PM, Bernard Aboba <bernard_aboba@hotmail.com
> <mailto:bernard_aboba@hotmail.com>> wrote:
>
>     [BA] An alternative is to force an initial offer preferring
>     RTP/SAVP(F).
>     That way, if both endpoints support SRTP and the offered key management
>     scheme, it is guaranteed to be negotiated.  Only if the preferred
>     option is
>     not mutually supported could an alternative be selected.
>
>
> I would actually prefer a situation where a deliberate decision by
> application developer is required to allow RTP. By default, SRTP only
> connection should be accepted with no option to bid down (ie offer with
> RTP/SAVP(F) only and no null codec). If developer specifies that
> non-secure connections are allowed, only then RTP/AVP should be present
> in the offer or accepted in the answer (with crypto attributes or some
> other way to specify that AVPS is also supported). This way there no
> "accidental" RTP connections.

As Eric R. would probably tell you, you not only have to worry about 
bid-down attacks (and they're important), but also the "threat model" 
for rtcweb is that we don't trust:
a) the JS application
b) the service provider/website
to maintain security and privacy for our conversation.  The JS 
application may be malicious or may have been subverted without 
knowledge of the provider, or the provider may have been compromised (by 
an attacker or by legal force) even if they're not actively evil.

If you mandate SRTP (and use DTLS-SRTP), then the application and the 
website never have access to the keys, and you have end-to-end security 
(modulo gateways).  If you combine that with the identity mechanisms 
from ekr's draft/presentation at Taipei, and you have verified, no MITM, 
end-to-end encryption.  (Without identity info, we have no way to detect 
a MITM attack, especially if brokered by the service provider.)
Side note: SDES generally has the same problem; the JS app and service 
provider/website have access to the keys.  (With some pain we might be 
able to encrypt the SDES keys themselves, but I'm not sure that's 
practical.)

The "interop with legacy needs no SRTP or optional SRTP" argument fails 
if we have to go through a gateway to get to legacy equipment anyways. 
And though I've tried hard to find a practical way around it, the 
'consent' requirements handled by using ICE/etc end up requiring us to 
use a gateway. If you're using a gateway to talk to legacy devices 
and/or PSTN gateways, you can include SRTP in the gateway for the webrtc 
side.


-- 
Randell Jesup
randell-ietf@jesup.org