We don't really need the user to be logged into the consumer to generate our
token. The service provider should not care what our login is on the
consumer.
All it cares about is authorizing a consumer access to our data. We log into
the provider and authorize the creation of an access token for the consumer.
We then visit this consumer and hand over our token (either manually for
desktop apps or by being redirect by a callback w/ token attached).
The consumer can now access our data. It is up to the consumer now on how to
store this token.  (Here is a link to the flow:
http://pastie.org/pastes/457478)

I don't think preventing middle attacks or phishing is really what oauth
should be doing. SSL does this well and it should be used for the transfer
of the token
from the provider to the consumer. This way an attacker can't intercept the
token and use it to log in to the consumer under their account and access
our data on our provider account.

The user can't be easily phished since both URL's (authorization URL and
callback URL) are verifiable by SSL. Also the callback is either stored on
the service provider or signed in the authorization request by the consumer.

On Sat, Apr 25, 2009 at 1:43 PM, J. Adam Moore <[email protected]> wrote:

>
> The idea is that the communication between the Consumer and Provider
> sites consist of urls that are composed behind user logins ON BOTH
> SITES at the same time. I believe that this prevents simpler attacks
> like man in the middle or DNS or url tampering and allows secure token
> generation based on session authentication, which, when employed
> properly, cannot be spoofed from either end or the middle.
>
> On Apr 25, 11:21 am, Josh Roesslein <[email protected]> wrote:
> > I don't really see the need for the double trip to the service provider
> to
> > perform the login and authorization.
> > This can be done in one single step like I have outlined in my proposal.
> > User logs into provider, grants access, and returns back with the token.
> > The less work we do in our flow the less likely an attacker can find a
> hole.
> > The double trip just creates a second chance for an attack.
> >
> > On Sat, Apr 25, 2009 at 12:33 PM, J. Adam Moore <[email protected]
> >wrote:
> >
> >
> >
> > > I'm writing a blog post to explain why I think I have a solution, but
> > > I believe it is as simple as moving the provider login to before the
> > > consumer token generation which is triggered by a provider-side
> > > redirect. This is simply playing keep-away with redirects, but it
> > > arguably works if your goal is web-based "sudo" permissions for an app
> > > or site.
> >
> > > 1) User clicks on Consumer site link to Provider (no tokens or
> > > anything, just a request for a protected area on the site that IDs the
> > > Consumer)
> > > 2) Link is protected, requires login. (This should generate your
> > > session/user identifier)
> > > 3) Once logged in user is redirected (with a unique identifier,
> > > encrypted or not) back to a Consumer redirect page
> > > 4) Consumer generates request token and automatically redirects back
> > > to Provider's user authorization page
> > > 5) User approves access, Provider automatically logs user out,
> > > callbacks are optional.
> > > 6) Desktop apps can use a one-time-only password-reset-style cut-n-
> > > paste token IN THE NORMAL PASSWORD FIELD to authenticate.
> >
> > > There are many suggestions that duplicate tokens, information, or
> > > steps in the process. If the initial association of the process with a
> > > user is the problem, then requiring a login first will ALWAYS be the
> > > solution. The flow is fine as it is, with the small exception that the
> > > provider-side login requirement needs to be moved up in the process.
> >
> > > The game of keep-away doesn't hinge on obfuscation of the McGuffin,
> > > but in passing it outside of the reach of the attacker. If an attacker
> > > can use redirects to jump into the position of a player, then we can
> > > use redirects to never pass the McGuffin to the same position with the
> > > same info.
> >
> > > As far as I can tell there was only one INSIGNIFICANT flaw with OAuth
> > > and that was the Provider login requirement happening too late. That's
> > > it. Once you do that you can check the session or user, send nonces or
> > > encrypted user_ids with the initial redirect, or just about any crazy
> > > security measure you can think up.
> >
> > > Steps 3,4,and 5 are invisible to the user and end with a token that
> > > can be used as a temporary password which triggers token authorization
> > > and association with a seamless manual option that appears to jump
> > > straight to step 6. Because all of this is happening behind a Provider
> > > login, it is as secure as you're going to get it without fundamentally
> > > changing the structure of the whole process.
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to