mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Add source wget.download
This commit is contained in:
@@ -38,6 +38,11 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
|
||||
or
|
||||
// A source catching a S3 filename download
|
||||
exists(API::Node s3 | source = s3.getMember("download_file").getACall().getArg(2))
|
||||
or
|
||||
// A source download a file using wget
|
||||
exists(MethodCallNode mcn |
|
||||
mcn = API::moduleImport("wget").getMember("download").getACall() and source = mcn.getArg(1)
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
|
||||
Reference in New Issue
Block a user