Re: [OAUTH-WG] Quick survey: fragment vs. query

Brian Eaton <beaton@google.com> Wed, 11 August 2010 18:02 UTC

Return-Path: <beaton@google.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 E60753A684B for <oauth@core3.amsl.com>; Wed, 11 Aug 2010 11:02:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.961
X-Spam-Level:
X-Spam-Status: No, score=-103.961 tagged_above=-999 required=5 tests=[AWL=2.016, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 FPDvxUR0s9QF for <oauth@core3.amsl.com>; Wed, 11 Aug 2010 11:02:44 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id AE3B13A67EC for <oauth@ietf.org>; Wed, 11 Aug 2010 11:02:43 -0700 (PDT)
Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id o7BI3IXY005107 for <oauth@ietf.org>; Wed, 11 Aug 2010 11:03:19 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281549799; bh=Vtua++FcmszxueFd8FNd+eMQUHo=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=GE4ci2sEQ219xVvpLG3egBdvGKP1dIPPM8Jd3wic9Mz3B+zcl+pZmhEpks9bJYQwO lz64QjFuiK+yVItaO8m5w==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=Fl9p+mguxnCfPhoCnNLTEgJOCmXlbowzZdQpDFHATpin56450Mwwcsqkeyhr9rZ5f ApK4bxbdYzCOl9uV28tiQ==
Received: from pzk33 (pzk33.prod.google.com [10.243.19.161]) by kpbe14.cbf.corp.google.com with ESMTP id o7BI353j009195 for <oauth@ietf.org>; Wed, 11 Aug 2010 11:03:12 -0700
Received: by pzk33 with SMTP id 33so188859pzk.28 for <oauth@ietf.org>; Wed, 11 Aug 2010 11:03:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.238.2 with SMTP id l2mr14957060wfh.164.1281549792265; Wed, 11 Aug 2010 11:03:12 -0700 (PDT)
Received: by 10.143.46.3 with HTTP; Wed, 11 Aug 2010 11:03:12 -0700 (PDT)
In-Reply-To: <917905.1164.qm@web37601.mail.mud.yahoo.com>
References: <C862F736.37253%eran@hueniverse.com> <AANLkTil_MQ1-JxNC-5S3bLDo6-WhG0GMBHVXQvvN-jdv@mail.gmail.com> <AANLkTi=A+ztAH8vbR-O8vYUxiE2cGjn-KHCpM05NE3fL@mail.gmail.com> <8F6F3A55-274C-4F38-84C8-C956D74504AE@lodderstedt.net> <837544.77407.qm@web37602.mail.mud.yahoo.com> <F4265A73-F743-4E5F-BE16-5A7D31308B5A@facebook.com> <917905.1164.qm@web37601.mail.mud.yahoo.com>
Date: Wed, 11 Aug 2010 11:03:12 -0700
Message-ID: <AANLkTikrLCnFyn-03QvBwRC6cuf_XW9xgb=RnoxpPyWk@mail.gmail.com>
From: Brian Eaton <beaton@google.com>
To: Oleg Gryb <oleg@gryb.info>
Content-Type: text/plain; charset="ISO-8859-1"
X-System-Of-Record: true
Cc: Naitik Shah <naitik@facebook.com>, OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query
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: Wed, 11 Aug 2010 18:02:45 -0000

On Tue, Aug 10, 2010 at 11:00 AM, Oleg Gryb <oleg_gryb@yahoo.com> wrote:
> The thing is that each time when a web app with sensitive info can be run in
> a frame, security people would advice to break that
> frame-reads-other-frame-data logic, because it can lead to violation of same
> origin policy.

This is incorrect.  The security of this flow is based entirely on the
same-origin policy.  Same-origin provides the basic authentication of
the destination of the access tokens.

Note that both the web-server and the user-agent flows are entirely
about passing information to third-party web sites, so suggesting that
these flows should not pass information across domains is not really
helpful. =)

> Yes, but you'll need a web server client for that. I'm saying that UA profile can
> be POST based too.

(a) The POST would bust the browser cache.
(b) Javascript can't read POST bodies.  (At least not to my knowledge.
 If you know of client-side code that can do this, I'm interested.)

If we were willing to accept the performance penalty of busting the
browser-cache, we would use the web-server flow.