mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
C++: Add a model for curl as well.
This commit is contained in:
@@ -60,6 +60,9 @@ class HttpStringToUrlOpenConfig extends TaintTracking::Configuration {
|
||||
fc.getTarget().getName() = ["send", "URLDownloadToFile"] and
|
||||
sink.asExpr() = fc.getArgument(1)
|
||||
or
|
||||
fc.getTarget().getName() = "curl_easy_setopt" and
|
||||
sink.asExpr() = fc.getArgument(2)
|
||||
or
|
||||
fc.getTarget().getName() = "ShellExecute" and
|
||||
sink.asExpr() = fc.getArgument(3)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user