CAPEC 详情
名称 WebView Exposure
攻击可能性 典型严重性
Medium Medium
摘要 An adversary, through a malicious web page, accesses application specific functionality by leveraging interfaces registered through WebView's addJavascriptInterface API. Once an interface is registered to WebView through addJavascriptInterface, it becomes global and all pages loaded in the WebView can call this interface.
前置条件 This type of an attack requires the adversary to convince the user to load the malicious web page inside the target application. Once loaded, the malicious web page will have the same permissions as the target application and will have access to all registered interfaces. Both the permission and the interface must be in place for the functionality to be exposed.
解决方案 To mitigate this type of an attack, an application should limit permissions to only those required and should verify the origin of all web content it loads.
关联弱点
CWE 编号 描述
CWE-284 Improper Access Control
关联 CAPEC
CAPEC 编号 描述
CAPEC-122 An adversary is able to exploit features of the target that should be reserved for privileged users or administrators but are exposed to use by lower or non-privileged accounts. Access to sensitive information and functionality must be controlled to ensure that only authorized users are able to access these resources.