News for hackers. Stuff that matters.
Re:Consumer key/secret for official Twitter clients by pandog on Thursday March 07, 2013 @06:56AM (#5337183)
Correct me if I'm wrong here but I believe that then all one would need to do is stick an SSL intercepting proxy (such as http://mitmproxy.org/doc/ssl.html) in the middle and get the keys from there.
Re:Consumer key/secret for official Twitter clients by andyjohnson0 on Thursday March 07, 2013 @07:10AM (#5337211)
That depends on how the secret is used by the client to authenticate with the remote service.

If the client just sends the secret as part of an authentication request, then a proxy would reveal it. But if some form of challenge/response [1] process is used, where the value sent is derived from the secret and an unpredictable challenge sent by the remote service, then as far as I know a proxy wouldn't help.

I don't know enough about the details of the Twitter/DropBox/etc APIs work to know if they use challenge-response.

[1] http://en.wikipedia.org/wiki/Challenge%E2%80%93response_auth...

Re:Consumer key/secret for official Twitter clients by JoachimSchipper on Thursday March 07, 2013 @07:00AM (#5337190)
It's at least possible to accept only the keys from your real servers, which would stop this attack.

For what happens in the real world, see Georgiev et al.'s "The most dangerous code in the world" at https://crypto.stanford.edu/~dabo/pubs/abstracts/ssl-client-... (spoiler: I described this paper in our internal knowledgebase as "very readable. Promises lots of facepalming and delivers in spades.")

Re:Consumer key/secret for official Twitter clients by talaketu on Thursday March 07, 2013 @11:59AM (#5338655)
Incorrect. The consumer-secret and access-token-secret are not transmitted from client to the server during oauth. They are only used to sign requests.
Re:Consumer key/secret for official Twitter clients by xyzzy123 on Thursday March 07, 2013 @06:06PM (#5340995)
Clarification: For v1. In v2 the secrets just go over SSL.
Re:Consumer key/secret for official Twitter clients by lucian1900 on Thursday March 07, 2013 @08:08AM (#5337371)
Only if the app uses the phone's certificate store, as opposed to a hard-coded one.