Re:Hackers can pwn your Android in 10 seconds, if you use Bi...
by robterrell on Saturday January 25, 2014 @03:04AM
(#7120229)
The JS-Cocoa bridge isn't young at all, it's the same bridge that has been on Mac OS X for years. And it's opt-in -- on the native side you have to specify which classes can be bridged and what methods can be called. It's not the case that any bridged webview exposes all of Cocoa for your JS injection pleasure. You could write an app that specifically exposed some dangerous API, but you'd know you had done so.
Re:Hackers can pwn your Android in 10 seconds, if you use Bi...
by lstamour on Sunday January 26, 2014 @12:58AM
(#7124079)
> You could write an app that specifically exposed some dangerous API, but you'd know you had done so.
Few people write insecure code on purpose. Of course the same is true of Safari or networking/parsing code. I still maintain certificate pinning is the answer here, to try and defend as much as possible against MITM in the first place.
iOS doesn't bridge Javascript to _Java_ which is why this particular attack wouldn't work. But the JS<->Cocoa stuff is still pretty young, so wait and see ;)