Re: [OAUTH-WG] OAuth 2.0: client_secret, state

Allen Tom <atom@yahoo-inc.com> Tue, 23 March 2010 18:43 UTC

Return-Path: <atom@yahoo-inc.com>
X-Original-To: oauth@core3.amsl.com
Delivered-To: oauth@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0B3D43A67E3 for <oauth@core3.amsl.com>; Tue, 23 Mar 2010 11:43:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.869
X-Spam-Level:
X-Spam-Status: No, score=-13.869 tagged_above=-999 required=5 tests=[BAYES_50=0.001, DNS_FROM_OPENWHOIS=1.13, USER_IN_DEF_WHITELIST=-15]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qlWKADzdxgGy for <oauth@core3.amsl.com>; Tue, 23 Mar 2010 11:43:47 -0700 (PDT)
Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173]) by core3.amsl.com (Postfix) with ESMTP id A373F3A68CB for <oauth@ietf.org>; Tue, 23 Mar 2010 11:43:46 -0700 (PDT)
Received: from SNV-EXBH01.ds.corp.yahoo.com (snv-exbh01.ds.corp.yahoo.com [207.126.227.249]) by mrout3.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id o2NIgVlf000633; Tue, 23 Mar 2010 11:42:33 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:x-originalarrivaltime; b=CTTO2gjIY7skiy8miV9MKF+UdiRk3/pVgsG5xJQSuUpFvMD6UBk+mhTcFbpS19bB
Received: from SNV-EXVS03.ds.corp.yahoo.com ([207.126.227.235]) by SNV-EXBH01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 23 Mar 2010 11:42:32 -0700
Received: from 10.72.76.10 ([10.72.76.10]) by SNV-EXVS03.ds.corp.yahoo.com ([207.126.227.239]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.59]) with Microsoft Exchange Server HTTP-DAV ; Tue, 23 Mar 2010 18:42:10 +0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Tue, 23 Mar 2010 11:42:09 -0700
From: Allen Tom <atom@yahoo-inc.com>
To: Richard Barnes <rbarnes@bbn.com>, OAuth WG <oauth@ietf.org>
Message-ID: <C7CE5991.280AA%atom@yahoo-inc.com>
Thread-Topic: [OAUTH-WG] OAuth 2.0: client_secret, state
Thread-Index: AcrKuIsZvuJptx3xYUWVGgNbD79+Rw==
In-Reply-To: <8C695FD1-0943-4CD1-BE85-2AF6C3F2947C@bbn.com>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 23 Mar 2010 18:42:32.0120 (UTC) FILETIME=[98E1AB80:01CACAB8]
Subject: Re: [OAUTH-WG] OAuth 2.0: client_secret, state
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Tue, 23 Mar 2010 18:43:49 -0000

Hi Richard,

>From a security perspective, it might be undesirable to distribute the
client secret to all potential protected resources that a client might want
to access.

In many ways, distributing the client secret to all PRs is undesirable in
the same way that it's undesirable to distribute the user's password to all
PRs. Even if the client secret is encrypted into the Access Token, it has to
be extracted by the PR to verify the signature (at least using the current
version of the Oauth 2.0 spec).

If the client secret is distributed to the PR, the PR would be able to
impersonate the client. (Unlike Oauth 1.0, the PR and the AuthZ server are
separate entities)

Admittedly, with Oauth-WRAP, the PR would still have a client's access
token, however, the access token could be scoped to be only valid for the
PR, so a PR might not be able to impersonate the client by replaying the
access token, and also the Access Token has a limited lifetime.

Hope that helps to clarify things,
Allen


On 3/22/10 10:19 PM, "Richard Barnes" <rbarnes@bbn.com> wrote:


> 
> If you make the same two assumptions -- shared keys and structured
> tokens -- then the signing cases can also work via the token: You can
> just encrypt the validation key (MAC key or public key) with the
> shared key and put it in the token.
> 
> So from the perspective of the need for a relationship between AS and
> PR, there is absolutely no difference between the "bearer token" and
> "signing" use cases.
> 
> --Richard
>