Re: [OAUTH-WG] User-agent flow and pre-registered redirect_uri

Dick Hardt <dick.hardt@gmail.com> Tue, 08 June 2010 01:20 UTC

Return-Path: <dick.hardt@gmail.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 3A5453A68BE for <oauth@core3.amsl.com>; Mon, 7 Jun 2010 18:20:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.917
X-Spam-Level:
X-Spam-Status: No, score=-1.917 tagged_above=-999 required=5 tests=[AWL=0.681, BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 hR3Zng2KQeYv for <oauth@core3.amsl.com>; Mon, 7 Jun 2010 18:20:13 -0700 (PDT)
Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by core3.amsl.com (Postfix) with ESMTP id A3B5C3A68E4 for <oauth@ietf.org>; Mon, 7 Jun 2010 18:20:05 -0700 (PDT)
Received: by pxi19 with SMTP id 19so1612214pxi.31 for <oauth@ietf.org>; Mon, 07 Jun 2010 18:20:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:message-id:references:to :x-mailer; bh=tiINb3/Dq2tTRmP/lbXkNAH2oM9lntYQ94zTXOAaMMk=; b=RUYqHGr06I4vXciyR9F+7FcNvlldArN8TtCyoaTOYsA/7tICLoAkg7YBqAdMpCO31l Tv0ZfQatkiVj7XsFJx5edk9DxQcpFnoQVqovD2yxhKF4LImk0lXJCXmmZZwvsJcdECnx 7ccZllzPpwLe3IEV/rWq7mpk+mqWq81p+Ro7E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=CFxXsRx+lYvv31i20Mfbe+M/CGbvoRXaLP2a5RfsERKKhbwLFAQMtrqWdQu7lnfiEq Q+ZUGoTV8/0VWaoQVodVviPxOR74HpgL7ooy6eHd1slpq+dHNnmruDVYXh1Q+aKwsZal 01lWS458G5sof9i8ECjTOrSo2lCrajRyh/Hoc=
Received: by 10.141.101.21 with SMTP id d21mr12605080rvm.95.1275960001399; Mon, 07 Jun 2010 18:20:01 -0700 (PDT)
Received: from [10.0.1.15] (c-24-130-32-55.hsd1.ca.comcast.net [24.130.32.55]) by mx.google.com with ESMTPS id k17sm5216006rvh.17.2010.06.07.18.20.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Jun 2010 18:20:00 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1078)
Content-Type: multipart/alternative; boundary="Apple-Mail-5--847428150"
From: Dick Hardt <dick.hardt@gmail.com>
In-Reply-To: <C832DD61.6AD3%cmortimore@salesforce.com>
Date: Mon, 07 Jun 2010 18:19:58 -0700
Message-Id: <4C32F5FB-5A05-49AD-9A9C-9157B93A815E@gmail.com>
References: <C832DD61.6AD3%cmortimore@salesforce.com>
To: Chuck Mortimore <cmortimore@salesforce.com>
X-Mailer: Apple Mail (2.1078)
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] User-agent flow and pre-registered redirect_uri
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, 08 Jun 2010 01:20:23 -0000

You are pointing out Marius point -- he wants to require registration. If the redirect_uri is not registered, the only party that can detect that it is the right URI is the user. The AS can only show the user the redirect_uri passed over.

-- Dick

On 2010-06-07, at 5:31 PM, Chuck Mortimore wrote:

> Note sure I follow this Marius:
> 
> “What can happen is that exmple.com/back can pretend to be
> example.com/back, but registration does not help in this case.”
> 
> I believe it does help in this case, as the Authorization server can validate the registered redirect_uri vs. the requested redirect_uri.   Hence the server would not issue a token to exmple.com in this case.   Am I missing something?
> 
> -cmort
> 
> 
> On 6/7/10 4:36 PM, "Marius Scurtescu" <mscurtescu@google.com> wrote:
> 
> On Fri, Jun 4, 2010 at 9:49 PM, Andrew Arnott <andrewarnott@gmail.com> wrote:
> > The user agent flow indicates that the redirect_uri SHOULD be preregistered
> > with the auth server for a given client.  I would like to suggest that the
> > SHOULD here be changed to MUST.  Unless I'm missing something, without a
> > preregistered redirect_uri any arbitrary client can obtain an access token
> > under the pretense of being another client, and thereby perhaps altogether
> > skip a user authorization prompt.
> >
> > As there will likely be a few popular client_id's in use, it will actually
> > make it trivially easy to obtain elevated access to private user data as a
> > rogue application.  This danger is unique to the user-agent flow because in
> > this flow the client_secret is not required to obtain the access token,
> > whereas it is for other flows.
> >
> > Thoughts?
> 
> Not sure registration buys you too much.
> 
> An arbitrary client cannot pretend being another client, client in
> this case is the redirect_uri. It is up to the end user to trust this
> redirect_uri.
> 
> For example, bad.example.com/back cannot pretend it is
> good.example.com/back because the redirect with the access token will
> go to good.example.com/back and not to bad.example.com/back.
> 
> What can happen is that exmple.com/back can pretend to be
> example.com/back, but registration does not help in this case.
> 
> The only case where registration really helps is if example.com allows
> people to create their own pages and as a result someone could create
> a JavaScript client at example.com/pages/bad. Since you can have
> several clients under the same domain, the user will be confused. In
> this case if example.com registers its own redirect_uri no one else
> under the same domain could potentially use one. But this is a
> particular case, and up to example.com to enforce. Also, if
> example.com wants to allow clients installed at different paths, then
> again, registration does not help.
> 
> Marius
> 
> 
> > --
> > Andrew Arnott
> > "I [may] not agree with what you have to say, but I'll defend to the death
> > your right to say it." - S. G. Tallentyre
> >
> > _______________________________________________
> > OAuth mailing list
> > OAuth@ietf.org
> > https://www.ietf.org/mailman/listinfo/oauth
> >
> >
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
> 
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth