mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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
|
// Writing the response data to the archive
|
||||||
exists(Stdlib::FileLikeObject::InstanceSource is, Node f, MethodCallNode mc |
|
exists(Stdlib::FileLikeObject::InstanceSource is, Node f, MethodCallNode mc |
|
||||||
is.flowsTo(f) and
|
is.flowsTo(f) and
|
||||||
mc.getMethodName() = "write" and
|
mc.calls(f, "write")
|
||||||
f = mc.getObject() and
|
|
||||||
nodeFrom = mc.getArg(0) and
|
nodeFrom = mc.getArg(0) and
|
||||||
nodeTo = is.(CallCfgNode).getArg(0)
|
nodeTo = is.(CallCfgNode).getArg(0)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user