File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
java/ql/src/experimental/Security/CWE/CWE-200 Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,13 @@ private class FetchUrlStep extends AdditionalValueStep {
55
55
override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
56
56
exists (
57
57
// webview.loadUrl(url) -> webview.setWebViewClient(new WebViewClient() { shouldInterceptRequest(view, url) });
58
- WebViewLoadUrlMethod lm , ShouldInterceptRequestMethod im , SetWebViewClientMethodAccess sma
58
+ MethodAccess lma , ShouldInterceptRequestMethod im , SetWebViewClientMethodAccess sma
59
59
|
60
60
sma .getArgument ( 0 ) .getType ( ) = im .getDeclaringType ( ) .getASupertype * ( ) and
61
- exists ( MethodAccess lma |
62
- lma .getMethod ( ) = lm and
63
- lma .getQualifier ( ) .getType ( ) = sma .getQualifier ( ) .getType ( ) and
64
- pred .asExpr ( ) = lma .getArgument ( 0 ) and
65
- succ .asParameter ( ) = im .getParameter ( 1 )
66
- )
61
+ lma .getMethod ( ) instanceof WebViewLoadUrlMethod and
62
+ lma .getQualifier ( ) .getType ( ) = sma .getQualifier ( ) .getType ( ) and
63
+ pred .asExpr ( ) = lma .getArgument ( 0 ) and
64
+ succ .asParameter ( ) = im .getParameter ( 1 )
67
65
)
68
66
}
69
67
}
You can’t perform that action at this time.
0 commit comments