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

Yes, definitely

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Sim4n6
2023-01-25 19:44:28 +01:00
committed by GitHub
parent 10d6ebf95b
commit 0ed480855a

View File

@@ -69,8 +69,7 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
// Writing the response data to the archive
exists(Stdlib::FileLikeObject::InstanceSource is, Node f, MethodCallNode mc |
is.flowsTo(f) and
mc.getMethodName() = "write" and
f = mc.getObject() and
mc.calls(f, "write")
nodeFrom = mc.getArg(0) and
nodeTo = is.(CallCfgNode).getArg(0)
)