Update python/ql/src/experimental/Security/UnsafeUnpackQuery.qll

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Sim4n6
2023-02-09 14:59:28 +01:00
committed by GitHub
parent 4196230a8a
commit 16ef50401b

View File

@@ -103,7 +103,7 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
// For a call to `file.extractall` without `members` argument, `file` is considered a sink.
exists(MethodCallNode call, AllTarfileOpens atfo |
call = atfo.getReturn().getMember("extractall").getACall() and
not exists(Node arg | arg = call.getArgByName("members")) and
not exists(call.getArgByName("members")) and
sink = call.getObject()
)
or