Re:Consumer key/secret for official Twitter clients
by Kudos on Thursday March 07, 2013 @07:53AM
(#5337329)
For people who think this is going to cause drive-by Twitter hijacks, remember that Twitter stores the callback URL on their side for this very reason. Any web app impersonating these apps will fail at the callback stage.
[ Parent
| on HN ]
Re:Consumer key/secret for official Twitter clients
by zwily on Thursday March 07, 2013 @09:28AM
(#5337693)
The client can intercept whatever URL the embedded webview is redirected to. The callback URL provides no security against this.
Re:Consumer key/secret for official Twitter clients
by Kudos on Thursday March 07, 2013 @09:57AM
(#5337898)
That's not a drive-by hijack, all bets are off when it comes to apps. For all you know the app is presenting a fake login dialog.
It would be a drive-by hijack on the web because there's a good chance you're already authenticated with Twitter and the callback cycle will automatically grant credentials on your behalf to the requester with no prompt.
Re:Consumer key/secret for official Twitter clients
by zwily on Thursday March 07, 2013 @12:42PM
(#5338948)
Right - we were discussion OAuth in the context of client apps.
Re:Consumer key/secret for official Twitter clients
by Kudos on Thursday March 07, 2013 @03:55PM
(#5340179)
I'm pretty sure I was setting the context, and that context was the web.
Re:Consumer key/secret for official Twitter clients
by zwily on Thursday March 07, 2013 @06:20PM
(#5341062)
Fair enough. I was referring to the larger discussion.
Re:Consumer key/secret for official Twitter clients
by voyou on Thursday March 07, 2013 @10:22AM
(#5338073)
The Twitter API lets you specify the callback URL as part of the request: https://dev.twitter.com/docs/api/1/post/oauth/request_token
However, Twitter also requires users to authorize the application each time an application requests an OAuth token, so the possibility of using these keys for hijacking is limited (although it might be possible to use them to make a phishing attempt look more authentic).