Re: [BEHAVE] errata 4933: RFC 5766 prevent spoofed refresh requests when using short-term credentials

Justin Uberti <juberti@google.com> Fri, 17 January 2020 18:01 UTC

Return-Path: <juberti@google.com>
X-Original-To: behave@ietfa.amsl.com
Delivered-To: behave@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 17598120043 for <behave@ietfa.amsl.com>; Fri, 17 Jan 2020 10:01:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.499
X-Spam-Level:
X-Spam-Status: No, score=-17.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 Nx9ISMcfLMzy for <behave@ietfa.amsl.com>; Fri, 17 Jan 2020 10:01:02 -0800 (PST)
Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) (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 25FC4120074 for <behave@ietf.org>; Fri, 17 Jan 2020 10:01:02 -0800 (PST)
Received: by mail-vs1-xe43.google.com with SMTP id g15so15387512vsf.1 for <behave@ietf.org>; Fri, 17 Jan 2020 10:01:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AH4PcVDJXEBO80p7U9/qJUawaF/cZHM8sH8rjVksWys=; b=oj6RkPhmQX8WquxSkyGLbN2UG1CeI78ZhVUTFD168Rp2ijhBTubg2Aud/6bLwhi8ep muA6thPc6Bmn+uDrmF9XLXWEEPvmJTyJWsbJ0dgHf5eKTGo64DRo8Alq395Gk6eBvcCB 8MbLb8sV5IYE4XTK6E27LdSvU+0ArtIvtU41izP0jhyYUnWO4LyPlDbjqFNvUbVtwdvU cBC8ty2EMEJJbtQ7Tg5O9vXIvXb5INqK0RDZSOfzjMsiWlBrSAYbO2sGIt/H+JWevU84 GNyQWSDzqjWPydZYY+Q13q25TyNKezLc6DTR+HjaoZBF+zhIUFS3+LMDTIzB7qs4xb+3 g1Yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AH4PcVDJXEBO80p7U9/qJUawaF/cZHM8sH8rjVksWys=; b=Ro3f6z4q2rQHVHoCaBTs/yzNyseWKeY140fx0M0AtT4Fu7R4+aKSkTbJVdabvBUymW g4MS7X/mNGwjC2fX4xyXR2aZYpERd+byEJQC9ubE3Il/hXAEwLjbbTJliAWqJddlC4zh di03YNUlftMS/zZ6bFHSBMfUY72Zw1xtL9y88cyleYTCZCKVDF+ykmKgYjUYvTsy4lZp hkrF7dIcUPe5Av6CrOfD5+tfbpkf8DrmWLA35oCDWmxDNhJL/XOAqXDi9Xaza6hPZrhg Ocnll+b8jv39OKTUcNiIMAUjW698BaepYeutbgFa30Q5D3KhdFJiQjuV65hpT6+yHyYa EHEw==
X-Gm-Message-State: APjAAAWjPR/jQjwADKXzvGI23bwmsLZ0iwJsn7vnoCniX0rOiCQOcAFl JZrHsoWV46e0TS9UXmX75gH5emGfjpAR+IJB5HKxUmND
X-Google-Smtp-Source: APXvYqxiHzRRsr8t+8Je591l1H1vZI+En5qudE8vL9szAn4ICyG0A3Fbnl81nbwAalCSlTyIW32+HFxlLNINEttnarI=
X-Received: by 2002:a67:8716:: with SMTP id j22mr5784667vsd.177.1579284060750; Fri, 17 Jan 2020 10:01:00 -0800 (PST)
MIME-Version: 1.0
References: <DB7PR07MB4572708BEAC771375AC2AF5395380@DB7PR07MB4572.eurprd07.prod.outlook.com> <20200110123841.GD8801@faui48f.informatik.uni-erlangen.de> <29758.1578671195@localhost> <eb6effe49c65b90cf4e6af45b9b701b4f86db608.camel@ericsson.com> <11345.1579216274@localhost> <12509.1579224412@localhost>
In-Reply-To: <12509.1579224412@localhost>
From: Justin Uberti <juberti@google.com>
Date: Fri, 17 Jan 2020 10:00:48 -0800
Message-ID: <CAOJ7v-36tMpjKzoQc+rys1g4pGiw01XG551RDWJ+_cjj5xxk2w@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: tram@ietf.org, behave <behave@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000711d28059c59b9ea"
Archived-At: <https://mailarchive.ietf.org/arch/msg/behave/N_B3y_lEM7xCL3TjublQKmt7Iys>
Subject: Re: [BEHAVE] errata 4933: RFC 5766 prevent spoofed refresh requests when using short-term credentials
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/behave/>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Jan 2020 18:01:07 -0000

Both a/b seem sensible to me.

On Thu, Jan 16, 2020 at 5:27 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
> https://www.rfc-editor.org/errata_search.php?eid=4933
>
>     4933> Section 17.3.3 says:
>
>     4933> An attacker might attempt to disrupt service to other users of
> the
>     4933> TURN server by sending Refresh requests or CreatePermission
> requests
>     4933> that (through source address spoofing) appear to be coming from
>     4933> another user of the TURN server.  TURN prevents this by requiring
>     4933> that the credentials used in CreatePermission, Refresh, and
>     4933> ChannelBind messages match those used to create the initial
>     4933> allocation.  Thus, the fake requests from the attacker will be
>     4933> rejected.
>     4933> Notes:
>
>     4933> When using short-term, credentials expire after a specific
> amount of time
>     4933> (such as 5
>     4933> minutes) and clients get new credentials. The restriction
> imposed at section
>     4933> 17.3.3
>     4933> prevents from refreshing allocation or permission using the new
> credentials.
>
>     4933> This RFC approves RFC 5389. So one can use short-term
> credentials. But
>     4933> short-term credentials are useless if it can not be used to
> refresh
>     4933> allocation or permission.
>
>     4933> The goal of 17.3.3 can be achieved by sending 438 with the new
> nonce.
>
> a) I think we should accept this as verified.
> b) It seems that sending with the new nonce will work.  This requires some
>    text changes, and we can now perhaps use the errata patcher with XML.
>    I've asked for the XML (if there is any), and I'll suggest some changes
> to
>    the text.
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>
>
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>
>
>
> _______________________________________________
> Behave mailing list
> Behave@ietf.org
> https://www.ietf.org/mailman/listinfo/behave
>