mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql
Yes, definitely Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user