Re: [OAUTH-WG] Native clients & 'confidentiality'

Anthony Nadalin <tonynad@microsoft.com> Mon, 19 December 2011 18:48 UTC

Return-Path: <tonynad@microsoft.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 4995E11E80A0 for <oauth@ietfa.amsl.com>; Mon, 19 Dec 2011 10:48:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.466
X-Spam-Level:
X-Spam-Status: No, score=-0.466 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, UNRESOLVED_TEMPLATE=3.132]
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 eSzt7eW3JdH7 for <oauth@ietfa.amsl.com>; Mon, 19 Dec 2011 10:48:44 -0800 (PST)
Received: from DB3EHSOBE006.bigfish.com (db3ehsobe006.messaging.microsoft.com [213.199.154.144]) by ietfa.amsl.com (Postfix) with ESMTP id BD96611E809D for <oauth@ietf.org>; Mon, 19 Dec 2011 10:48:43 -0800 (PST)
Received: from mail59-db3-R.bigfish.com (10.3.81.243) by DB3EHSOBE006.bigfish.com (10.3.84.26) with Microsoft SMTP Server id 14.1.225.23; Mon, 19 Dec 2011 18:48:36 +0000
Received: from mail59-db3 (localhost [127.0.0.1]) by mail59-db3-R.bigfish.com (Postfix) with ESMTP id 0B940C03AF for <oauth@ietf.org>; Mon, 19 Dec 2011 18:49:00 +0000 (UTC)
X-SpamScore: -27
X-BigFish: VS-27(zzbb2dI9371Ic85fh328cM98dKzz1202h1082kzz1033IL8275bh8275dhz2fh2a8h683h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC103.redmond.corp.microsoft.com; RD:none; EFVD:NLI
X-FB-SS: 13,
Received-SPF: pass (mail59-db3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=tonynad@microsoft.com; helo=TK5EX14MLTC103.redmond.corp.microsoft.com ; icrosoft.com ;
Received: from mail59-db3 (localhost.localdomain [127.0.0.1]) by mail59-db3 (MessageSwitch) id 1324320539599753_3679; Mon, 19 Dec 2011 18:48:59 +0000 (UTC)
Received: from DB3EHSMHS007.bigfish.com (unknown [10.3.81.243]) by mail59-db3.bigfish.com (Postfix) with ESMTP id 7F757660077 for <oauth@ietf.org>; Mon, 19 Dec 2011 18:48:59 +0000 (UTC)
Received: from TK5EX14MLTC103.redmond.corp.microsoft.com (131.107.125.8) by DB3EHSMHS007.bigfish.com (10.3.87.107) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 19 Dec 2011 18:48:34 +0000
Received: from TX2EHSOBE001.bigfish.com (157.54.51.80) by mail.microsoft.com (157.54.79.174) with Microsoft SMTP Server (TLS) id 14.2.247.5; Mon, 19 Dec 2011 10:48:33 -0800
Received: from mail110-tx2-R.bigfish.com (10.9.14.235) by TX2EHSOBE001.bigfish.com (10.9.40.21) with Microsoft SMTP Server id 14.1.225.23; Mon, 19 Dec 2011 18:47:55 +0000
Received: from mail110-tx2 (localhost [127.0.0.1]) by mail110-tx2-R.bigfish.com (Postfix) with ESMTP id 518644C01A5 for <oauth@ietf.org.FOPE.CONNECTOR.OVERRIDE>; Mon, 19 Dec 2011 18:48:20 +0000 (UTC)
X-Spam-TCS-SCL: 0:0
Received: from mail110-tx2 (localhost.localdomain [127.0.0.1]) by mail110-tx2 (MessageSwitch) id 1324320499759961_5915; Mon, 19 Dec 2011 18:48:19 +0000 (UTC)
Received: from TX2EHSMHS035.bigfish.com (unknown [10.9.14.240]) by mail110-tx2.bigfish.com (Postfix) with ESMTP id B29EE440056; Mon, 19 Dec 2011 18:48:19 +0000 (UTC)
Received: from BL2PRD0310HT004.namprd03.prod.outlook.com (157.56.240.21) by TX2EHSMHS035.bigfish.com (10.9.99.135) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 19 Dec 2011 18:47:53 +0000
Received: from BL2PRD0310MB362.namprd03.prod.outlook.com ([169.254.10.172]) by BL2PRD0310HT004.namprd03.prod.outlook.com ([10.255.97.39]) with mapi id 14.16.0094.000; Mon, 19 Dec 2011 18:47:59 +0000
From: Anthony Nadalin <tonynad@microsoft.com>
To: Justin Richer <jricher@mitre.org>, Paul Madsen <paul.madsen@gmail.com>
Thread-Topic: [OAUTH-WG] Native clients & 'confidentiality'
Thread-Index: AQHMvkh3Hw6jtbvAKECl8r4+p6HRs5XjbwuAgAAO/CA=
Date: Mon, 19 Dec 2011 18:47:57 +0000
Message-ID: <B26C1EF377CB694EAB6BDDC8E624B6E73BFD93AE@BL2PRD0310MB362.namprd03.prod.outlook.com>
References: <4EEF2BC4.7020409@gmail.com> <4EEF77E7.6030808@mitre.org>
In-Reply-To: <4EEF77E7.6030808@mitre.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [50.46.126.7]
Content-Type: multipart/alternative; boundary="_000_B26C1EF377CB694EAB6BDDC8E624B6E73BFD93AEBL2PRD0310MB362_"
MIME-Version: 1.0
X-OrganizationHeadersPreserved: BL2PRD0310HT004.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%MITRE.ORG$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%GMAIL.COM$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%IETF.ORG$RO%2$TLS%6$FQDN%131.107.125.5$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14MLTC103.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14MLTC103.redmond.corp.microsoft.com
X-OriginatorOrg: microsoft.com
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Native clients & 'confidentiality'
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, 19 Dec 2011 18:48:47 -0000

Not really sure how you came to the conclusion that native mobile clients can't be confidential? As pointed out in section 3.7 of the http://www.ietf.org/id/draft-ietf-oauth-v2-threatmodel-01.txt there are guidelines that confidential clients should follow, but does not distinguish between native clients or native mobile clients.

From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf Of Justin Richer
Sent: Monday, December 19, 2011 9:44 AM
To: Paul Madsen
Cc: oauth@ietf.org
Subject: Re: [OAUTH-WG] Native clients & 'confidentiality'

Native mobile clients can't really be confidential clients.

The distinction between "public" and "confidential" clients is whether or not they can keep deployment-time secrets; which is to say, a client_secret. This is not to say that they can't keep *any* secrets. In particular those generated at runtime, like an access token or refresh token, could be held perfectly safe. But at the time the app is deployed to its running environment, you have to ask "who has access to its code and configuration?"

Think of it this way. In the standard world, a native app gets copied to every device with the client_id and client_secret baked in. This makes the client_secret not very secret, and not at all unique. Anybody with access to the binary -- which is to say, every user -- could decompile the client_secret out of it and bake it into their *own* client, pretending to be your app and causing all kinds of havoc. This is a very different problem from somebody breaking into the token store and stealing an access token, which lets them only get to their own account.

Compare this to a server-based app where the only ones with access to the binary and configuration are the administrators of the server, not the end users. It's a much more limited list of folks that can potentially see it, and therefore the client_secret can actually mean something and add a small extra layer of security.

There are a few ways to mitigate this difference for public clients, such as using some kind of dynamic registration for all clients (which doesn't buy you much in terms of overall security) or putting up scary messages about native clients to try and educate your users. You can also use a trusted callback URL for your app on a hosted website that works in conjunction with your native app. This is actually the suggested use for the Implicit Flow, which was made for public clients in the browser.

Native apps also have the concern of embedded browsers vs. external native browsers, and what trust the user puts into them. For all OAuth flows, you have to trust the browser provider on the platform of choice, since the user's going to be logging in directly through that browser. It's very much outside the scope of OAuth to make that world any better though, and there have been long and detailed discussions on this list about that very topic, leading to some concrete recommendations in the draft as it stands today.

To answer your original query: I don't think that mandating one kind of client vs. the other will really help. OAuth 1.0 only had "confidential" clients, and that led to inane workarounds like Google's "anonymous/anonymous" client id/secret.

Hope this helps.

 -- Justin

On 12/19/2011 07:19 AM, Paul Madsen wrote:
Hi, the Online Media Authorization Protocol (OMAP) is a (as yet unreleased) profile of OAuth 2.0 for online delivery of video content based on a user's subscriptions (the TV Everywhere use case)

We want to support both server & native mobile clients. It is for the second class of clients that I'd appreciate some clarification of 'confidentiality' as defined in OAuth 2.

OAuth 2 distinguishes confidential & public clients based on their ability to secure the credentials they'd use to authenticate to an AS - confidential clients can protect those credentials, public clients can't.

Notwithstanding the above definition, the spec gives a degree of discretion to the AS



   The client type designation is based on the authorization server's

   definition of secure authentication and its acceptable exposure

   levels of client credentials.




Give this discretion, is it practical for the OMAP spec to stipulate that 'All Clients (both server & native mobile), MUST be confidential', ie let each individual OMAP AS specify its own requirements of clients and their ability to securely authenticate?

Is this consistent with the OAuth definition of confidentiality?

Thanks

Paul













_______________________________________________

OAuth mailing list

OAuth@ietf.org<mailto:OAuth@ietf.org>

https://www.ietf.org/mailman/listinfo/oauth