Re: [OAUTH-WG] OAuth2 attack surface....

Oleg Gryb <oleg_gryb@yahoo.com> Fri, 01 March 2013 01:45 UTC

Return-Path: <oleg_gryb@yahoo.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 349B421F8824 for <oauth@ietfa.amsl.com>; Thu, 28 Feb 2013 17:45:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2iuw6m0hQFpM for <oauth@ietfa.amsl.com>; Thu, 28 Feb 2013 17:45:50 -0800 (PST)
Received: from nm22.bullet.mail.bf1.yahoo.com (nm22.bullet.mail.bf1.yahoo.com [98.139.212.181]) by ietfa.amsl.com (Postfix) with ESMTP id E0A9D21F8802 for <oauth@ietf.org>; Thu, 28 Feb 2013 17:45:49 -0800 (PST)
Received: from [98.139.212.153] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 01 Mar 2013 01:45:49 -0000
Received: from [98.139.212.233] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 01 Mar 2013 01:45:49 -0000
Received: from [127.0.0.1] by omp1042.mail.bf1.yahoo.com with NNFMP; 01 Mar 2013 01:45:49 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 242381.11219.bm@omp1042.mail.bf1.yahoo.com
Received: (qmail 44557 invoked by uid 60001); 1 Mar 2013 01:45:49 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1362102349; bh=b6IrXova/1HYfpj5ortLy+lD6RaLOmUR+IARX079lCM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=tNO6DPiA0XeqLRxdy8ejPZwqDWgghJHw6m7xkZTvkjhZNwyowDmQMvhJ1M3YOpfWo3+WjP1j+pr+HDsfcruAZylgzumRapejks6RobbtvjzEf015/PID98QIqgwwDLwf7EsTAO2GiHBSq1HGpDIyuIWq0SN3Ju8fugzhv+bCw4Y=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=2/9BnU7hhqzXMnKlp/iFfOIiMqhl7nh3GoHPxVXuUOBBA25zUTyxxKp3pKKziEAY4XslTo5EMFiBpwZ3VYadIF4nFCZDXnXX4iKss8lY5s3kU7Ac+w0UhdHWZ+va6RlpRETJD3MUmiVxSEstzmXCoNiq8IyRC42YRtVBpWtzC4I=;
X-YMail-OSG: nEb0DIMVM1k9hjo4GlPQwVtDQ6M10IeiN8FhsvZZ9EQkK_k pwEUD8nXEZp5pkvOCEpoZnMq.cgRRKCa9iL5dP29.sdrA107Db6ulGTvg9MG 8AhLWlpirelwA7Mee9_Dj19vN2UP2RO8FMv_R9APSMbPswOdBnbU84x3v6t3 HiTPsWnFVTG_8tqqxyN924M9L2OqrPrGyK_nerUulewViUwNcKdXM7yIejhK 55agan4wcIFLO5jUv4BLLsFa0VUxaYfuVILotbDcEIHkTEGg52dhpgmqnG0C XJklJzVxOOY3Q2XrYn6EXQ5SmoWbv0qkWis6mU..W50yHn4j4mSVwtOeIlh8 yII3q8MsT2b7iH8YTR2gwdghD80pN0.0nWsuBcXEmR5fNqgBQq3m3YZMK5La KU7CN_FyGHPX5Z0vs9z3aeGrOiapjxmwGTaOloS8gGbZeJSFzvYo2c8WKW6X a2x7s8VquAu3bZwHjHdH.utgSeUUmjtN6CwdDItIIYhFyVLKyrZ5y0shS6oS 4tl34fnx1Xx7SihmycI0MNGtggrfpQ0Uth24jC0uKDt2jUXIMbNn6Dq7hQLf rDdRDiAZ69IyhJ2lEwNbUAM9e4NPiIkVrXxrHQXm0_4tQ1tJ9T30hsS3y8zs dVpMBO2aQ.NdLxRnygxj_Nh50eDHEjiu3oLA4xgp91aAgGSXrDdkd_ulHHNp YbHBjglO_2kOoLpgtcjaRxOyEMUwg9ObRePNeLP3iFt31YhyCSyifKabDtdE klp97dhJneiiCTzZsn_oc3vVvlDeCnvBwLSE1VxaMZ6qteb6mvaepUbaAjxS JpeGRX35q5nJTd7_CoSQU
Received: from [199.16.140.28] by web141001.mail.bf1.yahoo.com via HTTP; Thu, 28 Feb 2013 17:45:48 PST
X-Rocket-MIMEInfo: 001.001, SSBkb24ndCBsaWtlIHRoYXQgImltcGxpY2l0IGZsb3ciIG9yIGZvcm1lciB1c2VyLWFnZW50IG11Y2ggYW5kIHdyb3RlIGFib3V0IGl0IDIgeWVhcnMgYWdvLCBidXQgdGhhdCBhdHRhY2sgaXMgcmF0aGVyIHJlbGF0ZWQgdG8gaW1wbGVtZW50YXRpb24gYnVncywgbm90IHRvIHByb3RvY29sIGl0c2VsZi4gQSByb290IGNhdXNlIC0gYSBidWcgaW4gcmVkaXJlY3QgVVJMIHZlcmlmaWNhdGlvbiAocHJvYmFibHnCoCBhIHJlZ2V4cCBmbGF3KS4NCg0KRW5mb3JjaW5nIHRva2VuJ3MgbGlmZSB0aW1lIGF0IGEgcHIBMAEBAQE-
X-Mailer: YahooMailClassic/15.1.4 YahooMailWebService/0.8.135.514
Message-ID: <1362102348.20747.YahooMailClassic@web141001.mail.bf1.yahoo.com>
Date: Thu, 28 Feb 2013 17:45:48 -0800
From: Oleg Gryb <oleg_gryb@yahoo.com>
To: "oauth@ietf.org" <oauth@ietf.org>, prateek mishra <prateek.mishra@oracle.com>
In-Reply-To: <512FE091.9030508@oracle.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="1278998794-1153535670-1362102348=:20747"
Subject: Re: [OAUTH-WG] OAuth2 attack surface....
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: oleg@gryb.info
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: Fri, 01 Mar 2013 01:45:51 -0000

I don't like that "implicit flow" or former user-agent much and wrote about it 2 years ago, but that attack is rather related to implementation bugs, not to protocol itself. A root cause - a bug in redirect URL verification (probably  a regexp flaw).

Enforcing token's life time at a protocol level doesn't make too much sense either, because it should depend on sensitivity of protected data. 

The same is true about the scope.

I think, the latter two issues have been already reflected in the Torsten's TM.

--- On Thu, 2/28/13, prateek mishra <prateek.mishra@oracle.com> wrote:

From: prateek mishra <prateek.mishra@oracle.com>
Subject: Re: [OAUTH-WG] OAuth2 attack surface....
To: "oauth@ietf.org" <oauth@ietf.org>
Date: Thursday, February 28, 2013, 5:56 PM


  

    
  
  
    Characteristics of both these attacks -

    

    1) Use of implicit flow (access token passed on the URL)

    2) changes to redirect uri (specification does allow some
    flexibility here)

    3) applications with long-lived access tokens with broad scope (in
    one case only)

    

    - prateek

    And a different one (still exploiting redirection and
      still implementation mistake) http://www.nirgoldshlager.com/2013/02/how-i-hacked-facebook-oauth-to-get-full.html
      

      
      Regards
      

      
      Antonio
      

      
      
        
          On Feb 25, 2013, at 11:42 PM, William Mills wrote:
          

          
            
              
                

                
                
                  
                     
                    

                    
                      
                        
                          DOH!!!  http://homakov.blogspot.co.uk/2013/02/hacking-facebook-with-oauth2-and-chrome.html
                          

                          
                          
                            
                               
                                   From:
                                  Phil Hunt <phil.hunt@oracle.com>

                                  To:
                                  William Mills <wmills_92105@yahoo.com>
                                  

                                  Sent:
                                  Monday, February 25, 2013 2:28 PM

                                  Subject:
                                  Re: [OAUTH-WG] OAuth2 attack
                                  surface....

                                 
                              

                              
                                
                                  Whats the link?

                                    

                                    Phil
                                    

                                    
                                    Sent from my phone.
                                  
                                  

                                    On 2013-02-25, at 14:22, William
                                    Mills <wmills_92105@yahoo.com>
                                    wrote:

                                    

                                  
                                  
                                    
                                      
                                        I think this is worth a
                                          read, I don't have time to
                                          dive into this :(
                                      
                                    
                                  
                                  
                                    _______________________________________________

                                      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

    
    

  


-----Inline Attachment Follows-----

_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth