Added two new CMDi sinks fot python's stdlib

This commit is contained in:
Alvaro Muñoz
2022-12-02 22:16:40 +01:00
parent d53d275bba
commit 7e0e56dadc

View File

@@ -1169,7 +1169,9 @@ private module StdlibPrivate {
private class SubprocessPopenCall extends SystemCommandExecution::Range, DataFlow::CallCfgNode {
SubprocessPopenCall() {
exists(string name |
name in ["Popen", "call", "check_call", "check_output", "run"] and
name in [
"Popen", "call", "check_call", "check_output", "run", "getoutput", "getstatusoutput"
] and
this = subprocess().getMember(name).getACall()
)
}