Return-Path: <yarong@microsoft.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 450963A6E15 for <oauth@core3.amsl.com>;
 Fri,  1 Oct 2010 15:47:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.403
X-Spam-Level: 
X-Spam-Status: No, score=-10.403 tagged_above=-999 required=5 tests=[AWL=0.195,
 BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
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 8XOQbUQICUUo for
 <oauth@core3.amsl.com>; Fri,  1 Oct 2010 15:47:20 -0700 (PDT)
Received: from smtp.microsoft.com (smtp.microsoft.com [131.107.115.215]) by
 core3.amsl.com (Postfix) with ESMTP id 5856D3A6E06 for <oauth@ietf.org>;
 Fri,  1 Oct 2010 15:47:20 -0700 (PDT)
Received: from TK5EX14HUBC107.redmond.corp.microsoft.com (157.54.80.67) by
 TK5-EXGWY-E802.partners.extranet.microsoft.com (10.251.56.168) with Microsoft
 SMTP Server (TLS) id 8.2.176.0; Fri, 1 Oct 2010 15:48:03 -0700
Received: from TK5EX14MBXC113.redmond.corp.microsoft.com ([169.254.6.15]) by
 TK5EX14HUBC107.redmond.corp.microsoft.com ([157.54.80.67]) with mapi id
 14.01.0218.012; Fri, 1 Oct 2010 15:48:02 -0700
From: Yaron Goland <yarong@microsoft.com>
To: PRATEEK MISHRA <prateek.mishra@oracle.com>
Thread-Topic: [OAUTH-WG] What's the use case for signing OAuth 2.0 requests?
Thread-Index: ActcLVkcw12z9VXcRZaPemtNsnYbYQAQ74MAAVJFP2A=
Date: Fri, 1 Oct 2010 22:48:02 +0000
Message-ID: <7C01E631FF4B654FA1E783F1C0265F8C635D3859@TK5EX14MBXC113.redmond.corp.microsoft.com>
References: <7C01E631FF4B654FA1E783F1C0265F8C635347FF@TK5EX14MBXC111.redmond.corp.microsoft.com>
 <4C9D23B6.8090605@oracle.com>
In-Reply-To: <4C9D23B6.8090605@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.123.12]
Content-Type: multipart/alternative;
 boundary="_000_7C01E631FF4B654FA1E783F1C0265F8C635D3859TK5EX14MBXC113r_"
MIME-Version: 1.0
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] What's the use case for signing OAuth 2.0 requests?
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: Fri, 01 Oct 2010 22:47:22 -0000

--_000_7C01E631FF4B654FA1E783F1C0265F8C635D3859TK5EX14MBXC113r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

In the core OAuth spec the scenario is a tightly related token and applicat=
ion endpoint. It presumes that they will take the appropriate security mech=
anisms between them such as signed tokens but doesn't require any particula=
r solution for how to implement such a mechanism.

When the issue was extended to address discovery based scenarios (a scenari=
o not currently supported by the core spec) this brought up the problem tha=
t a standard mechanism to provide audience protection is needed. So my arti=
cle suggests that when discovery is in scope then we will introduce a stand=
ard mechanism (in my article I suggest a standardized signed token format i=
ncluding an audience value) to address the issue.

In other words, the current spec leaves the issue unaddressed because it is=
n't in scope but when the scope extends to discovery we'll have to provide =
an explicit mechanism.

                                Yaron

From: PRATEEK MISHRA [mailto:prateek.mishra@oracle.com]
Sent: Friday, September 24, 2010 3:19 PM
To: Yaron Goland
Cc: oauth@ietf.org
Subject: Re: [OAUTH-WG] What's the use case for signing OAuth 2.0 requests?

Yaron,

You have referenced the SAML browser SSO protocol  (POST profile) in your b=
log posting, and correctly observed that the same problem would manifest it=
self there as well.

As a counter-measure, the SAML POST profile explicitly requires that the ta=
rget  (destination) URL or similar identifier be carried as part of the SAM=
L payload, and, that further the SAML payload is signed. This allows for th=
e recipient to determine whether it was the intended target and to ignore p=
ayloads directed at other targets.

I dont believe that similar constraints have been placed on the OAuth acces=
s token - it is essentially undefined? - but maybe I missed that in my read=
ing of the specification draft.

- prateek

My understanding of Eran's article (http://hueniverse.com/2010/09/oauth-2-0=
-without-signatures-is-bad-for-the-web/) is that Eran believes that bearer =
tokens are not good enough as a security mechanism because they allow for r=
eplay attacks in discovery style scenarios. He then, if I understood the ar=
ticle correctly, argues that the solution to the replay attack is to sign O=
Auth 2.0 requests.
In http://www.goland.org/bearer-tokens-discovery-and-oauth-2-0/ I tried to =
demonstrate that in fact one can easily prevent replay attacks in discovery=
 scenarios using OAuth 2.0 and bearer tokens. If the article is correct the=
n it is not a requirement to introduce message signing into OAuth 2.0 in or=
der to prevent the attacks that Eran identified.

So this leaves me wondering, what's the critical scenario that can't be met=
 unless we use sign OAuth 2.0 requests?

                Thanks,

                                                Yaron



________________________________



_______________________________________________

OAuth mailing list

OAuth@ietf.org<mailto:OAuth@ietf.org>

https://www.ietf.org/mailman/listinfo/oauth



--_000_7C01E631FF4B654FA1E783F1C0265F8C635D3859TK5EX14MBXC113r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;
	color:black;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=3D"white" lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">In the core OAuth spec=
 the scenario is a tightly related token and application endpoint. It presu=
mes that they will take the appropriate security mechanisms between them su=
ch as signed tokens but doesn't require
 any particular solution for how to implement such a mechanism.<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">When the issue was ext=
ended to address discovery based scenarios (a scenario not currently suppor=
ted by the core spec) this brought up the problem that a standard mechanism=
 to provide audience protection is needed.
 So my article suggests that when discovery is in scope then we will introd=
uce a standard mechanism (in my article I suggest a standardized signed tok=
en format including an audience value) to address the issue.<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">In other words, the cu=
rrent spec leaves the issue unaddressed because it isn't in scope but when =
the scope extends to discovery we'll have to provide an explicit mechanism.=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; Yaron<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div style=3D"border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt">
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><spa=
n style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif=
&quot;;color:windowtext"> PRATEEK MISHRA [mailto:prateek.mishra@oracle.com]
<br>
<b>Sent:</b> Friday, September 24, 2010 3:19 PM<br>
<b>To:</b> Yaron Goland<br>
<b>Cc:</b> oauth@ietf.org<br>
<b>Subject:</b> Re: [OAUTH-WG] What's the use case for signing OAuth 2.0 re=
quests?<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Yaron,<br>
<br>
You have referenced the SAML browser SSO protocol&nbsp; (POST profile) in y=
our blog posting, and correctly observed that the same problem would manife=
st itself there as well.<br>
<br>
As a counter-measure, the SAML POST profile explicitly requires that the ta=
rget&nbsp; (destination) URL or similar identifier be carried as part of th=
e SAML payload, and, that further the SAML payload is signed. This allows f=
or the recipient to determine whether
 it was the intended target and to ignore payloads directed at other target=
s.<br>
<br>
I dont believe that similar constraints have been placed on the OAuth acces=
s token - it is essentially undefined? - but maybe I missed that in my read=
ing of the specification draft.<br>
<br>
- prateek<br>
<br>
<o:p></o:p></p>
<p class=3D"MsoNormal">My understanding of Eran's article (<a href=3D"http:=
//hueniverse.com/2010/09/oauth-2-0-without-signatures-is-bad-for-the-web/">=
http://hueniverse.com/2010/09/oauth-2-0-without-signatures-is-bad-for-the-w=
eb/</a>) is that Eran believes that
 bearer tokens are not good enough as a security mechanism because they all=
ow for replay attacks in discovery style scenarios. He then, if I understoo=
d the article correctly, argues that the solution to the replay attack is t=
o sign OAuth 2.0 requests.<o:p></o:p></p>
<p class=3D"MsoNormal">In <a href=3D"http://www.goland.org/bearer-tokens-di=
scovery-and-oauth-2-0/">
http://www.goland.org/bearer-tokens-discovery-and-oauth-2-0/</a> I tried to=
 demonstrate that in fact one can easily prevent replay attacks in discover=
y scenarios using OAuth 2.0 and bearer tokens. If the article is correct th=
en it is not a requirement to introduce
 message signing into OAuth 2.0 in order to prevent the attacks that Eran i=
dentified.<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">So this leaves me wondering, what's the critical sce=
nario that can't be met unless we use sign OAuth 2.0 requests?<o:p></o:p></=
p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks,<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; Yaron<o:p></o:p></p>
<pre><o:p>&nbsp;</o:p></pre>
<pre style=3D"text-align:center"><hr size=3D"4" width=3D"90%" align=3D"cent=
er"></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>OAuth mailing list<o:p></o:p></pre>
<pre><a href=3D"mailto:OAuth@ietf.org">OAuth@ietf.org</a><o:p></o:p></pre>
<pre><a href=3D"https://www.ietf.org/mailman/listinfo/oauth">https://www.ie=
tf.org/mailman/listinfo/oauth</a><o:p></o:p></pre>
<pre>&nbsp; <o:p></o:p></pre>
</div>
</div>
</body>
</html>

--_000_7C01E631FF4B654FA1E783F1C0265F8C635D3859TK5EX14MBXC113r_--
