John, I think that helps to clarify the authorize issue.
But they were talking about a phishing site obtaining a legit access token from Facebook. > Let's take Soluto's metro app as an example to describe the problem. The app > supports Facebook Login. As an attacker, we can write a regular Facebook app. > Once the victim user allows our app to access her Facebook data, we receive > an access_token from the traffic. Then, on our own machine (i.e., the > "attacker" machine), we run the metro app of Soluto, and use a HTTP proxy to > insert the victim's access_token into the traffic of Facebook login. Through > this way, we are able to log into the victim's Soluto account from our > machine. Other than Soluto, we also have confirmed the same issue on another > Windows 8 metro-app Givit. Important: the attack works because the researchers had control of the client application. And thus they were able to insert the token between the metro client app and the server because they are able to get in the communications path. All bets are off. If the attacker can insert a token then can insert appropriate client_id's and responses in the stream as well. Phil @independentid www.independentid.com phil.h...@oracle.com On 2012-06-29, at 1:00 PM, John Bradley wrote: > The attack requires a web browser that allows modifying the value of the of > the redirect URI. It is dead simple cut token or code from the string and > paste in the token or code that was granted by the user you want to > impersonate. > > OAuth responses are not signed or audience restricted to the client(except > confidential clients using the code flow). > > In cases where the code or token is passed over a back channel to a server, > faking the entire client is the easiest thing for the attacker. > > I don't consider these to be authorization attacks, rather attacks on a > client that is inappropariatly making unwarranted assumptions about the > presenter of the token. > > John B. > On 2012-06-29, at 3:29 PM, Phil Hunt wrote: > >> We need more info on the inject method the researchers used before we can >> account for it. >> >> Phil >> >> On 2012-06-29, at 12:16, John Bradley <ve7...@ve7jtb.com> wrote: >> >>> The same thing can be done with code. >>> >>> If the token endpoint checks the client_id before giving out the access >>> token then the attack on code can be prevented, as the token endpoint won't >>> return the access token. >>> >>> The spec dosen't require authenticating public clients currently so it is a >>> slightly more difficult attack but possible. >>> >>> Dick and I are suggesting closing the hole at the token endpoint so that >>> nether confidential nor public clients using the code flow are susceptible >>> to this substitution attack. >>> >>> John B. >>> >>> On 2012-06-29, at 2:53 PM, PhiIt helps with the code flow when l Hunt wrote: >>> >>>> I'm not seeing how client id helps if a proxy server is somehow involved >>>> with inserting the bearer token as the researchers suggested. >>>> >>>> Phil >>>> >>>> On 2012-06-29, at 11:30, John Bradley <ve7...@ve7jtb.com> wrote: >>>> >>>>> I think they only exploited the implicit flow. >>>>> >>>>> My point was that there is a way you could do the same thing with code if >>>>> it is a public client that is not authenticating to the token endpoint. >>>>> >>>>> In general making identity assumptions in the client based on a code or >>>>> access_token has risks that are out of scope for OAuth. >>>>> >>>>> We do however want to provide good advice about specific things that can >>>>> leave systems insecure when using OAuth. >>>>> >>>>> John B. >>>>> >>>>> On 2012-06-29, at 2:22 PM, Phil Hunt wrote: >>>>> >>>>>> I'm not clear whether the MS Security Researcher hack was with the >>>>>> authorization code or the access token. If the latter, the client_id is >>>>>> out of the picture isn't it? >>>>>> >>>>>> Phil >>>>>> >>>>>> @independentid >>>>>> www.independentid.com >>>>>> phil.h...@oracle.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 2012-06-29, at 11:14 AM, Dick Hardt wrote: >>>>>> >>>>>>> >>>>>>> On Jun 29, 2012, at 11:06 AM, John Bradley wrote: >>>>>>> >>>>>>>> It is nice to know that I may occasionally be correct:) >>>>>>> >>>>>>> You must be delighted when it happens! ;) >>>>>>> >>>>>>>> While you may assume that it is reasonable for a client with a code to >>>>>>>> make a request to the token endpoint including it's client_id and the >>>>>>>> server to only give out the access token if the client_id in the token >>>>>>>> request matches the one in the original authorization request. >>>>>>>> However the spec specifically doesn't require that. >>>>>>> >>>>>>> I think that is an error in the spec and should be changed, or text >>>>>>> adding saying that the client_id SHOULD be checked. >>>>>>> >>>>>>> -- Dick >>>>>>> _______________________________________________ >>>>>>> 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