Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Comments on Understanding OAuth(2) security: what's a realistic threat model?
Post
Understanding OAuth(2) security: what's a realistic threat model?
Suppose I want to use some functionality on foo.com which requires associating my activity with me specifically - for example, posting on a forum, or playing some games and having the site keep track of my wins and losses. Rather than creating a site-specific account or trying to track me by IP, foo.com offers me an option to "authenticate with bar.com", which uses OAuth or OAuth2. I do already have an account at bar.com.
-
If I am not already logged in at
bar.com, I should always log in separately before attempting to authenticate, correct? There is no way thatfoo.comcan provide me with a login window and prove to me that it's secure (i.e., that they aren't MITMing me)? -
Similarly, if I believe I'm logged in at
bar.comalready, but trying thefoo.comauthentication link gives me a login form, I should reject this and treat it as a phishing attempt, correct? -
Supposing I am not asked for credentials - how can I verify that I have been properly redirected through
bar.comto give permission for authentication? -
When I give
bar.compermission to authenticate me tofoo.com, how do I know that this won't compromise mybar.comlogin? What information is actually communicated per the OAuth protocol? -
When I give such permission, typically
bar.comwill warn me thatfoo.comwants permission to access (or know) certain information about mybar.comaccount. How can I be sure that only that information is being transmitted? -
Could
foo.comever gain the ability to modify mybar.comaccount information? -
Could it happen that the authentication appears to just work without me giving consent on a
bar.cominterstitial? If that happened, what should I do?

1 comment thread