Skip to content

Commit 54109b8

Browse files
committed
Add source wget.download
1 parent 2f68b54 commit 54109b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
3838
or
3939
// A source catching a S3 filename download
4040
exists(API::Node s3 | source = s3.getMember("download_file").getACall().getArg(2))
41+
or
42+
// A source download a file using wget
43+
exists(MethodCallNode mcn |
44+
mcn = API::moduleImport("wget").getMember("download").getACall() and source = mcn.getArg(1)
45+
)
4146
}
4247

4348
override predicate isSink(DataFlow::Node sink) {

0 commit comments

Comments
 (0)