File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/src/Security/CWE/CWE-319 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ class HttpStringToUrlOpenConfig extends TaintTracking::Configuration {
54
54
55
55
override predicate isSink ( DataFlow:: Node sink ) {
56
56
exists ( FunctionCall fc |
57
- fc .getTarget ( ) .getName ( ) = [ "system" , "gethostbyname" ] and
57
+ fc .getTarget ( ) .hasGlobalOrStdName ( [ "system" , "gethostbyname" ] ) and
58
58
sink .asExpr ( ) = fc .getArgument ( 0 )
59
59
or
60
- fc .getTarget ( ) .getName ( ) = [ "send" , "URLDownloadToFile" ] and
60
+ fc .getTarget ( ) .hasGlobalOrStdName ( [ "send" , "URLDownloadToFile" ] ) and
61
61
sink .asExpr ( ) = fc .getArgument ( 1 )
62
62
or
63
- fc .getTarget ( ) .getName ( ) = "curl_easy_setopt" and
63
+ fc .getTarget ( ) .hasGlobalOrStdName ( "curl_easy_setopt" ) and
64
64
sink .asExpr ( ) = fc .getArgument ( 2 )
65
65
or
66
- fc .getTarget ( ) .getName ( ) = "ShellExecute" and
66
+ fc .getTarget ( ) .hasGlobalOrStdName ( "ShellExecute" ) and
67
67
sink .asExpr ( ) = fc .getArgument ( 3 )
68
68
)
69
69
}
You can’t perform that action at this time.
0 commit comments