Skip to content

Commit 7e0e56d

Browse files
author
Alvaro Muñoz
committed
Added two new CMDi sinks fot python's stdlib
1 parent d53d275 commit 7e0e56d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,9 @@ private module StdlibPrivate {
11691169
private class SubprocessPopenCall extends SystemCommandExecution::Range, DataFlow::CallCfgNode {
11701170
SubprocessPopenCall() {
11711171
exists(string name |
1172-
name in ["Popen", "call", "check_call", "check_output", "run"] and
1172+
name in [
1173+
"Popen", "call", "check_call", "check_output", "run", "getoutput", "getstatusoutput"
1174+
] and
11731175
this = subprocess().getMember(name).getACall()
11741176
)
11751177
}

0 commit comments

Comments
 (0)