Live data from Hacker News

Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

blog.trustlook.com

11–20 of 34 posts

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#11
post #8

"Warning: infected app! download and install our app to protect yourself!" thank god there is an app to protect... wait a minute... where have I seen these tactics used before...

I wouldn't comment on their AntiVirus stuff but I think the vulnerability in the Bing App is real.

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#12

Earlier quoted context omitted.

Correct ;-)

That's a universal network attack though, how is it an exclusive vulnerability to this app?

You would never be able to install an app without user click "install" etc.

This one uses Javascript Bridge vulnerability to execute high privilege code in your Android. The attack code is javascript to be interpreted to Java calls in Android.

You wouldn't be able to do that in iPhone though.

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#13
So it seems the story here is that in older versions of android, if you export a Java class to a webview with "addJavascriptInterface", the js code can get arbitrary code exec by calling exportedObject.getClass().forName("java.lang.Runtime").exec() or similar? And if you can mitm/spoof on public wifis, you can inject js to exploit this in apps that export to their webviews?

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#14

Hmm.. interesting, well luckily I don't use Bing app, I don't even use Bing on a normal browser. It just sounds wierd to me for some reason .. "Ok Ima Bing that information right now!".

I rather quack it :)

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#15
post #13

So it seems the story here is that in older versions of android, if you export a Java class to a webview with "addJavascriptInterface", the js code can get arbitrary code exec by calling exportedObject.getClass().forName("java.lang.Runtime").exec() or similar? And if you can mitm/spoof on public wifis, you can inject js to exploit this in apps that export to their webviews?

This is exactly how it works. And a lot of apps use this JS bridging technic to make their app easy to maintain. Dirty hack becomes technical debt

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#17

Earlier quoted context omitted.

That's a universal network attack though, how is it an exclusive vulnerability to this app?

You would never be able to install an app without user click "install" etc. This one uses Javascript Bridge vulnerability to execute high privilege code in your Android. The attack code is javascript to be interpreted to Java calls in Android. You wouldn't be able to do that in iPhone though.

Bit confused as to how this can't happen on iOS "just because," as iOS apps could be targeted in a similar way. Really the message here should be that SSL with certificate-pinning is a must for apps that inherently run in untrusted environments with an inability to easily inspect the security of the network traffic without MITMing it yourself. Wish this was a security feature on the app store -- if, in automated testing or in device logs, an app was entirely secure or insecure with its communication, just as we've padlock icons in browsers today.

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#18

Earlier quoted context omitted.

You would never be able to install an app without user click "install" etc. This one uses Javascript Bridge vulnerability to execute high privilege code in your Android. The attack code is javascript to be interpreted to Java calls in Android. You wouldn't be able to do that in iPhone though.

Bit confused as to how this can't happen on iOS "just because," as iOS apps could be targeted in a similar way. Really the message here should be that SSL with certificate-pinning is a must for apps that inherently run in untrusted environments with an inability to easily inspect the security of the network traffic without MITMing it yourself. Wish this was a security feature on the app store -- if, in automated test…

iOS apps cannot be targeted in this way because they don't have the JavaScript bridge.

Re: Hackers can pwn your Android in 10 seconds, if you use Bing App in Starbucks

#19
post #18

Earlier quoted context omitted.

Bit confused as to how this can't happen on iOS "just because," as iOS apps could be targeted in a similar way. Really the message here should be that SSL with certificate-pinning is a must for apps that inherently run in untrusted environments with an inability to easily inspect the security of the network traffic without MITMing it yourself. Wish this was a security feature on the app store -- if, in automated test…

iOS apps cannot be targeted in this way because they don't have the JavaScript bridge.

Not exactly. iOS 7+ introduced CocoaJavascript bridging capabilities in the public APIs. Before that, similar iOS APIs had existed as "private" ones (so, very uncommonly used outside of apple's own apps).

iOS doesn't bridge Javascript to _Java_ which is why this particular attack wouldn't work. But the JSCocoa stuff is still pretty young, so wait and see ;)

Post reply on HN