Re: [rtcweb] BUNDLE: Attempting to resolve security consideration

Eric Rescorla <ekr@rtfm.com> Mon, 06 March 2017 13:49 UTC

Return-Path: <ekr@rtfm.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 C5EC51294DD for <rtcweb@ietfa.amsl.com>; Mon, 6 Mar 2017 05:49:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 CwMaDvttJ_0I for <rtcweb@ietfa.amsl.com>; Mon, 6 Mar 2017 05:49:50 -0800 (PST)
Received: from mail-yw0-x229.google.com (mail-yw0-x229.google.com [IPv6:2607:f8b0:4002:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 924911296E9 for <rtcweb@ietf.org>; Mon, 6 Mar 2017 05:49:50 -0800 (PST)
Received: by mail-yw0-x229.google.com with SMTP id v198so33543454ywc.2 for <rtcweb@ietf.org>; Mon, 06 Mar 2017 05:49:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ziAWIjDEATtQGC4o0cbGkUtILqr5z1MHlvMFTUeHN2M=; b=izHlREigTA+f5kjiazIecCfYE3qwWB2a5RyatUUAYf+hOP2x+zH01Z0PB51Ym9hzJE DrGDXLpNMORIbd8IH0xJpCtcggvmOiLTB97zFTS5SgwcXQGhkpFMMUpFQp3kENXbQPQA IhTUvHJZEepSb4/++xM4dMHYX9mvYZzt2+H11XSFlmkBczcFGDBTpSUtF4cw8rbwiDla At7KLQN3pPo2CGY08YzFc+RiDx/6UPdOtQVDcKji1nectDhm0hHSBACYFuG7VXdvRuMv 7ZIx0+SITBaHCXDrMp3cv3JhfCIg0tbeXwwoyFqlk2qIUEvjEvGXHt9r7zsaYMI9IfDt 3y3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ziAWIjDEATtQGC4o0cbGkUtILqr5z1MHlvMFTUeHN2M=; b=JqCyVx7ydWKjYYZqlY7qVGdfVtUI2FO6um9JEx8tSGY9cXhazBFxImDhkKESUzrKni Nhji7FhPRDjRJdKqDjnGBHQvixTlZ6WrsG2VeIXZN23PHCo9zhSr/4FDT13lT/rtItFM oLL5OwDayFkPJmRBVrqJK1pnCP/PIveSpGogbgcSiC3EAuN5Xx7PSrVrTzCWqD3nqKBh rrjVS/I75YBO+4F1hGlTqt40754AnORwRRi/zfBP0YId2I0XW/WbV/xmSFGrQpQwkk8C YEbt8wQKCp7ZdFEtObI0+OGQsYWQ7A8q+mHuPrVYUl0XWIUyI1ktxnMwm40wxbCJUHvP DzSg==
X-Gm-Message-State: AMke39lNLHXdhdeyTF5vdrLYdSPPyaomGTgnAJ/p2SHg4PJkP7j+ReXUTRKBZbZ/n55POLVDTHyzGqlihg+2lQ==
X-Received: by 10.37.173.82 with SMTP id l18mr11845081ybe.107.1488808189688; Mon, 06 Mar 2017 05:49:49 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.154.210 with HTTP; Mon, 6 Mar 2017 05:49:09 -0800 (PST)
In-Reply-To: <CALiegfmcvqnde21Jur8t58m7wGv+eUBKXPsPkajvDq2Tc5xvjA@mail.gmail.com>
References: <8b2b8754-b10c-6f8e-6262-95cd25374a18@ericsson.com> <CALiegfmcvqnde21Jur8t58m7wGv+eUBKXPsPkajvDq2Tc5xvjA@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 06 Mar 2017 05:49:09 -0800
Message-ID: <CABcZeBMUq-f8xvCXO9YPOD=b43YxD1vESQxz7y1xZ8R4mLEXtQ@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Content-Type: multipart/alternative; boundary="f403045eb8ea4917d3054a102b10"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/ONkl15OmIz3lfCaF5ifdFRS48FY>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>, "mmusic (E-mail)" <mmusic@ietf.org>
Subject: Re: [rtcweb] BUNDLE: Attempting to resolve security consideration
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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: Mon, 06 Mar 2017 13:49:52 -0000

On Mon, Mar 6, 2017 at 5:35 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:

> 2017-03-03 14:24 GMT+01:00 Magnus Westerlund <
> magnus.westerlund@ericsson.com>:
> > When the BUNDLE extension is used, the number of SSRC values within a
> single RTP session increases, which increases the risk of SSRC collision
>
> This is relevant when there are ~100000000 streams within a single RTP
> session. If there are 10 streams, the exact risk is 10 / 2^32 =
> 2.32e-09.
>

This actually isn't quite correct (this is just the usual birthday paradox
math)
Assuming I haven't made a mistake, the correct formula is:

1 - (\prod_{i=0}^{9} 2^{32} - i)


I think we can live without having to mention this "issue" in every
> RTP related specification.
>

I agree with you that this is a relatively small number, but that doesn't
mean we don't
need to consider it. For instance, if SRTP did not use directional keys and
we allowed
each side to choose SSRCs w/o any attempts to suppress collisions, there
would
be a small but non-zero number of calls which used a two-time pad on a
daily basis.

-Ekr


>
> To be clear: stating that "BUNDLE increases the risk of SSRC
> collision" is a no sense IMHO.
>
>
>
>
> --
> Iñaki Baz Castillo
> <ibc@aliax.net>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>