News for hackers. Stuff that matters.
Re:OAuth Security Cheatsheet by stormbrew on Monday May 12, 2014 @06:37PM (#7735797)
The place I work for deals with about 20 different site's oauth processes and it's amazing how widely varied they are. Some of them let you restrict the redirect_uri while others don't, some of them still need you to send a login/password pair for the first request rather than do an oauth flow, but then still use oauth-style tokens all over the place. A couple of them require that the token be passed as a query string parameter instead of as a header for all requests. Being responsibly secure with all of them is quite difficult. It doesn't help that it's very difficult to have a development environment work properly with them, so doing active work against them is often painful.

OAuth is basically a complete mess, implementation-wise, and that's really sad since it's such a promising and useful premise.

Re:OAuth Security Cheatsheet by MAGZine on Monday May 12, 2014 @09:34PM (#7736249)
That's really unfortunate. I read through the RFC, and IIRC it is pretty consistent on those details. Can't stop people from badly implementing a spec :(
Re:OAuth Security Cheatsheet by fnom on Tuesday May 13, 2014 @05:54AM (#7737304)
i've heard great stuff about oauth.io . they try to provide an abstractionlayer that handles the various different implementations (often buggy or not to spec) of oauth.
Re:OAuth Security Cheatsheet by indeyets on Tuesday May 13, 2014 @06:29AM (#7737408)
that might be true, but I don't like idea of having a MiTM. That's an additional point of potential security issues
Re:OAuth Security Cheatsheet by fnom on Tuesday May 13, 2014 @07:51AM (#7737618)
i think its fully open source[1] and you can host on your own

[1]https://github.com/oauth-io/oauthd

Re:OAuth Security Cheatsheet by homakov on Monday May 12, 2014 @02:53PM (#7734665)
It's using free plan on heroku, so if it will be down repo is available at https://github.com/homakov/oauthsecurity
Re:OAuth Security Cheatsheet by aaronpk on Monday May 12, 2014 @03:08PM (#7734784)
@homakov I'd be happy to host this content on the oauth.net website if you'd like.
Re:OAuth Security Cheatsheet by homakov on Monday May 12, 2014 @03:18PM (#7734836)
I think just an external link will be great, because I don't want to remove the sakurity logo :)
Re:OAuth Security Cheatsheet by lukasm on Monday May 12, 2014 @04:21PM (#7735201)
Why didn't you use github page or S3. It's static page isn't it?
Re:OAuth Security Cheatsheet by homakov on Monday May 12, 2014 @10:25PM (#7736337)
Yes but i serve it with sinatra
Re:OAuth Security Cheatsheet by thepumpkin1979 on Monday May 12, 2014 @05:02PM (#7735394)
off-topic: I see you made a commit two hours ago but when I try to click on the commiter the link is not enabled, try this guide to set your name and github username so all your commits are linked to your github user account: https://help.github.com/articles/setting-your-username-in-gi...
Re:OAuth Security Cheatsheet by lstamour on Tuesday May 13, 2014 @02:08AM (#7736733)
Some good points. Other links of interest: http://tools.ietf.org/html/rfc6819 and OWASP cheat sheets, including ones on authentication in general: https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series amongst other resources on Google ;-)
Re:OAuth Security Cheatsheet by pm24601 on Monday May 12, 2014 @02:58PM (#7734713)
Thanks for this list. I will be reviewing our site at whalepath.com to make sure we are not vulnerable.

btw, linkedin has implemented a number of the counter measures listed in:

* static redirects

* checking that the redirect listed is the same for all calls.

* fast expiration of code.

Re:OAuth Security Cheatsheet by indeyets on Tuesday May 13, 2014 @02:52AM (#7736811)
You missed the obvious: using OAuth2 without TLS =)

And paranoid part of my brain suggests that using OAuth1.0a is still preferred even if over TLS

Re:OAuth Security Cheatsheet by homakov on Tuesday May 13, 2014 @03:02AM (#7736834)
This is another kind of threat but yes, MITM is game over for oauth2