News for hackers. Stuff that matters.
Re:Dropbox Sync API by qompiler on Thursday March 07, 2013 @04:53AM (#5336912)
I never understood this, the tutorial shows how to authenticate.

mDbxAcctMgr = DbxAccountManager.getInstance(getApplicationContext(), APP_KEY, APP_SECRET);

So anyone with some basic Android knowledge will be able to extract my applications key and secret?

Re:Dropbox Sync API by thomseddon on Thursday March 07, 2013 @05:08AM (#5336951)
Essentially no client side app can be considered able to keep secrets.

I would be interested in the implications of this from the authorising servers perspective. Here is the main mention of it in the OAuth spec: http://tools.ietf.org/html/rfc6749#page-52 and google's interpretation: https://developers.google.com/accounts/docs/OAuth2InstalledA.... Even though google say "t is assumed that these applications cannot keep secrets" I can't quite infer the actual implications of this?

Re:Dropbox Sync API by thomseddon on Thursday March 07, 2013 @11:56AM (#5338640)
Incidentally, this exact topic is now under discussion: http://news.ycombinator.com/item?id=5337099
Re:Dropbox Sync API by 1880 on Thursday March 07, 2013 @05:08AM (#5336953)
> So anyone with some basic Android knowledge will be able to extract my applications key and secret?

Yes:

http://news.ycombinator.com/item?id=4410398

http://stackoverflow.com/questions/4419915/how-to-keep-the-o...

Re:Dropbox Sync API by kalleboo on Thursday March 07, 2013 @05:06AM (#5336944)
Yes. This is also how Twitter's authentication works. Twitter say that client developers should protect the secret in the binary by reasonable means, but the key from Twitter's own iOS and Android apps have already been extracted. (on a side note, why haven't any client devs who ran into token limited tries using the official keys yet? will they be taken out of an app store?)
Re:Dropbox Sync API by lloeki on Thursday March 07, 2013 @05:21AM (#5336984)
> why haven't any client devs who ran into token limited tries using the official keys yet? will they be taken out of an app store?

Probably, just like AirFoil Speakers Touch has been kicked out for using some Apple private key extracted from the Airport firmware to act as an AirpLay receiver.

Re:Dropbox Sync API by lucian1900 on Thursday March 07, 2013 @05:00AM (#5336927)
The APP credentials are for each app that integrates this Dropbox sync. The app keeps those to itself (probably hard-coded in the binary) and using them, it requests access to a Dropbox account.
Re:Dropbox Sync API by BHSPitMonkey on Thursday March 07, 2013 @12:19PM (#5338789)
Yep. And the same goes for iOS, too. I've taken a peek at the official Dropbox iOS app's API key and secret in the past just for fun, though I didn't go so far as to post them on Github.
Re:Dropbox Sync API by TheAnimus on Thursday March 07, 2013 @05:00AM (#5336930)
Is there a way round that thou?

Surely you need to grant your app to be able to indentify itself, that means it has to have its secret baked in?

Re:Dropbox Sync API by adlpz on Thursday March 07, 2013 @05:07AM (#5336947)
There isn't really a way around it other than implementing authentication in a remote server. In that scenario, the app doesn't authenticate directly with the service, but with a private server. This way you can, for example, authenticate your users and create sessions before they can access the Dropbox API.

It can still be abused, but at least you can know who did it.

Re:Dropbox Sync API by raq on Thursday March 07, 2013 @12:57PM (#5339045)
How about storing the key and secret in an encrypted form?
Re:Dropbox Sync API by gdw2 on Thursday March 07, 2013 @01:12PM (#5339122)
And where would you keep the decryption key?
Re:Dropbox Sync API by raq on Saturday March 09, 2013 @04:45PM (#5349729)
Keychain.