139 points · by depoll · 14y ago · 40 comments
This is not wolf in sheep's clothing, it is wolf in wolf's furry clothing. Oauth access token is pretty much as powerful as a password, and it is being written to debug log here. Amazing how this code passed code review!
This was a similar issue with the CarrierIQ thing. Apps have to explicitly request this permission, and it's a strange one that should raise red flags unless it is explicitly intended for such a purpose.
Indeed, the app that the author links to - https://play.google.com/store/apps/details?id=com.nolanlawso... - under permission there's the READ SYSTEM LOGS.
Sadly a ridiculous number of apps demand it for questionable reasons (for instance https://play.google.com/store/apps/details?id=com.sirma.mobi... -> Why does a Bible need to read from system logs?)
The author describes getting into other folks' FB accounts by having them log in on his own device. Not their own devices.
This statement presupposes that a code review took place.
OCD kicking in.
https://docs.djangoproject.com/en/dev/howto/error-reporting/...
[edit: unintentional use of slang]
"Belt and suspenders" means something totally different in British and Commonwealth English - the mind boggles.
Is the user prompted for this(don't have android)? Seems pretty explicit.
Explicit to you, I and the majority of the HN readership. However, I'd venture that the vast majority of users have absolutely no idea what that means. It may as well be gibberish.
To really make use of it you'd need to create an Android service which extracts/parses the logs from logcat when the device is awake. Then when you find an access token you'd need to try a few opengraph requests to see what permissions you have for that particular token. I suppose such an app could do damage but it does depend on a lot of circumstantial events. But I guess most exploits do.
Edit: You may as well just ask for the READ_CONTACTS permission and take the entire data from there ;)
Well done for discovering the hole and the way you handled it. Glad to see you wearing that white hat!
The next question is, I'm guessing most apps store the access token somewhere for future use, is there a permission that apps can have that let them at this storage? Hope the FB SDK encourages safe handling (encryption, etc) of the access token.