mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Java: Check the value of parameter in WebView file access query
This commit is contained in:
@@ -14,7 +14,9 @@ import java
|
||||
import semmle.code.java.frameworks.android.WebView
|
||||
|
||||
from MethodAccess ma
|
||||
where ma.getMethod() instanceof CrossOriginAccessMethod
|
||||
where
|
||||
ma.getMethod() instanceof CrossOriginAccessMethod and
|
||||
ma.getArgument(0).(CompileTimeConstantExpr).getBooleanValue() = true
|
||||
select ma,
|
||||
"WebView setting " + ma.getMethod().getName() +
|
||||
" may allow for unauthorized access of sensitive information."
|
||||
|
||||
Reference in New Issue
Block a user