Subject: Re: [rtcweb] Fwd: New Version Notification for draft-uberti-rtcweb-turn-rest-00.txt
From: Martin Thomson <[email-masked]>
To: Justin Uberti <[email-masked]>
Cc: "[email-masked]" <[email-masked]>
Date: Mon, 8 Jul 2013 14:43:35 -0700
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>

On 8 July 2013 13:09, Justin Uberti <[email-masked]> wrote:
> The issue with using short term credentials, without a nonce, is the
> possibility of replay attacks by an eavesdropper.

It is no less vulnerable than having the long term credential set
(username, nonce, realm, and password) overheard.  Assuming that the
lifetime of the password is the same in both cases.  In either case,
the link that the eavesdropper is required to attack is the HTTP link.

> Passing realm and nonce solves this [...]

I was suggesting that since you have spent some very expensive
round-trips getting this information, there are no advantages in
spending yet another round-trip on a challenge.  I don't think that
passing realm and nonce is a good idea in practice - it creates a
tighter coupling between this new thing and the TURN server.

In practice, a master nonce is not quite what you need, you need a
nonce-generator function, or a line to the TURN server whereby you
query for every request you get.  The former imposes too-strong
constraints on implementations, the latter renders much of the
advantages of something like this moot.