mirror of
https://github.com/github/codeql.git
synced 2026-04-01 05:08:15 +02:00
18 lines
567 B
Plaintext
18 lines
567 B
Plaintext
/**
|
|
* @id java/android-webview-addjavascriptinterface
|
|
* @description Exposing a Javascript interface to a Java object in a WebView can lead to malicious JavaScript controlling the application.
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @security-severity 6.1
|
|
* @precision high
|
|
* @tags security
|
|
* external/cwe/cwe-079
|
|
*/
|
|
|
|
import java
|
|
import semmle.code.java.frameworks.android.WebView
|
|
|
|
from MethodAccess ma
|
|
where ma.getMethod() instanceof WebViewAddJavascriptInterfaceMethod
|
|
select ma, "JavaScript interface to Java object added in Android WebView."
|