Re: [OAUTH-WG] MAC: Age in nonce

Blaine Cook <romeda@gmail.com> Mon, 21 November 2011 18:59 UTC

Return-Path: <romeda@gmail.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C276B11E80DB for <oauth@ietfa.amsl.com>; Mon, 21 Nov 2011 10:59:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.569
X-Spam-Level:
X-Spam-Status: No, score=-103.569 tagged_above=-999 required=5 tests=[AWL=0.030, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, 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 l9kjyLF8a5Bv for <oauth@ietfa.amsl.com>; Mon, 21 Nov 2011 10:59:50 -0800 (PST)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 8EA1311E80E2 for <oauth@ietf.org>; Mon, 21 Nov 2011 10:59:50 -0800 (PST)
Received: by vcbfy13 with SMTP id fy13so3427715vcb.31 for <oauth@ietf.org>; Mon, 21 Nov 2011 10:59:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=4UX7H0D6zg5SiOZ+s+/jG/Pi07+Q5Efn4XZqN1rUa44=; b=XLZGEjtvzyY+B0O7HuLWh6r64RQeRd5BnoT3h4p2W7XL3awXYdJ9eUtlvIndQWinh1 9n8picldC7NQ6dH8bbXygJvtCO9pXdzCIOXpVvUkul1j4UsRvB+J535cLAmaavFj9/Ny bGZ/Sb1lE32xV2gY20ePM0xh0snDN2KGsSqPc=
Received: by 10.182.74.37 with SMTP id q5mr3255733obv.32.1321901990071; Mon, 21 Nov 2011 10:59:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.182.44.35 with HTTP; Mon, 21 Nov 2011 10:59:29 -0800 (PST)
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E7234526735EDF6@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <90C41DD21FB7C64BB94121FBBC2E7234526735EDF6@P3PW5EX1MB01.EX1.SECURESERVER.NET>
From: Blaine Cook <romeda@gmail.com>
Date: Mon, 21 Nov 2011 18:59:29 +0000
Message-ID: <CAAz=scmJyw+ujNZFa8T3kYA1WbLZjUuQ12OP3SfvsdmES0PzaQ@mail.gmail.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] MAC: Age in nonce
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Nov 2011 18:59:54 -0000

+1. This is good.

On 19 November 2011 16:41, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
> We had a long discussion about what to use for the numerical component of
> the nonce string. I would like to suggest we use:
>
>
>
>    nonce
>
>          REQUIRED.  A unique string generated by the client to allow the
>
>          server to verify that a request has never been made before and
>
>          helps prevent replay attacks when requests are made over an
>
>          insecure channel.  The nonce value MUST be unique across all
>
>          requests with the same MAC key identifier.
>
>
>
>          The nonce value MUST consist of an age, a colon character
>
>          (%x25), and a unique string (typically random).  The age
>
>          portion MUST be a monotonically increasing, but not necessarily
>
>          unique, positive integer value.  The change in the age value
>
>          between requests MUST reflect the number of seconds elapsed.
>
>          For example, the age can be a client timestamp expressed as
>
>          seconds since 01-01-1970 or since the credentials were issued
>
>          to the client.  The value MUST NOT include leading zeros (e.g.
>
>          "000273156").  For example: "273156:di3hvdf8"
>
>
>
>          To avoid the need to retain an infinite number of nonce values
>
>          for future checks, the server MAY choose to restrict the time
>
>          period after which a request with an old age is rejected.  If
>
>          such a restriction is enforced, the server SHOULD allow for a
>
>          sufficiently large window to accommodate network delays.  The
>
>          server SHOULD use the first age value received from the client
>
>          to establish a method for comparing the server time with that
>
>          of the client.  In addition, the server SHOULD accommodate small
>
>          negative changes in age values caused by differences between
>
>          the multiple clocks of a distributed client configuration
>
>          utilizing more than one device.
>
>
>
> This text keeps the age as a seconds count but uses the first request to
> establish a clock sync on the server side instead of mandating one way to
> calculate it.
>
>
>
> Feedback?
>
>
>
> EHL
>
>
>
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>