Arbitrary Code Execution via WebView.addJavascriptInterface in Android 3.0–4.1.x
CVE-2013-4710 is a vulnerability in Android versions 3.0 through 4.1.x, affecting devices from Disney Mobile, eAccess, KDDI, NTT DOCOMO, SoftBank, and others. The vulnerability arises from improper implementation of the WebView class, specifically the unsafe exposure of Java objects to JavaScript via the addJavascriptInterface method. This allows remote attackers to execute arbitrary methods of Java objects or cause a denial of service (such as device reboot) by enticing users to visit a crafted web page. The issue is related to the previously reported CVE-2012-6636.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary code within the context of the vulnerable application, potentially leading to full compromise of the device, data theft, or denial of service (device reboot). The attack can be triggered by luring a user to a malicious web page in a vulnerable WebView context.
If you can’t patch tonight, do this now.
Users should avoid browsing untrusted web pages in applications that use WebView on affected Android versions. Developers should review their use of addJavascriptInterface and restrict or remove its usage where possible. Network-level filtering of malicious web content may provide limited protection.
Patch, then assume compromise.
Upgrade to a version of Android where the WebView.addJavascriptInterface method is properly secured (Android 4.2 or later). Application developers should avoid exposing sensitive Java objects to JavaScript and use the @JavascriptInterface annotation to restrict access. Device manufacturers should provide security updates to affected devices.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.