mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Handle the download of a tarball using wget pkg.
This commit is contained in:
@@ -46,8 +46,14 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
|
||||
)
|
||||
or
|
||||
// A source download a file using wget
|
||||
exists(MethodCallNode mcn |
|
||||
mcn = API::moduleImport("wget").getMember("download").getACall() and source = mcn.getArg(1)
|
||||
// see wget: https://pypi.org/project/wget/
|
||||
exists(API::CallNode mcn |
|
||||
mcn = API::moduleImport("wget").getMember("download").getACall() and
|
||||
(
|
||||
source = mcn.getArg(1)
|
||||
or
|
||||
source = mcn.getReturn().asSource() and not exists(Node arg | arg = mcn.getArg(1))
|
||||
)
|
||||
)
|
||||
or
|
||||
// catch the uploaded files as a source
|
||||
|
||||
Reference in New Issue
Block a user