We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
android.webkit.WebView#addJavascriptInterface
1 parent 30cd447 commit e1ff04cCopy full SHA for e1ff04c
java/ql/src/Security/CWE/CWE-079/AndroidWebViewAddJavascriptInterface.ql
@@ -0,0 +1,17 @@
1
+/**
2
+ * @id java/android-webview-addjavascriptinterface
3
+ * @description Exposing a Javascript interface to a Java object in a WebView can lead to malicious JavaScript controlling the application.
4
+ * @kind problem
5
+ * @problem.severity warning
6
+ * @security-severity 6.1
7
+ * @precision high
8
+ * @tags security
9
+ * external/cwe/cwe-079
10
+ */
11
+
12
+import java
13
+import semmle.code.java.frameworks.android.WebView
14
15
+from MethodAccess ma
16
+where ma.getMethod() instanceof WebViewAddJavascriptInterfaceMethod
17
+select ma, "JavaScript interface to Java object added in Android WebView."
0 commit comments