Live data from Hacker News

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

blog.trustlook.com

21–30 of 34 posts

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

#22
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

Please disclose more technical detail

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

#27

Earlier quoted context omitted.

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

Please disclose more technical detail

It's a vulnerability on Android Webview component, which supports a "addJavascriptInterface" method. This method allows you to call the Java native method by using a Javascript object inside the webpage. And, there is a trick that can bypass the restriction on classes that JSInterface object could access. You can call any method in any Java class. Such as Java.lang.Runtime.exec. You can google "addJavascriptInterface vulnerability". It's not a new vulnerability, but lots of app haven't fix it yet.

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

#29
post #16

Well to be honest almost nobody on Android uses Bing..... Google search is default, and for those looking for alternatives, there's also an excellent DuckDuckGo app.

LOL, that's what I thought... Well there is a large number of apps also affected by this vulnerability. Some have 50m-100m downloads.

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

#30

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.

Thx Zhongjie ;)
Post reply on HN