Skip to content

Commit cbd7601

Browse files
committed
implement isShellInterpreted on ExecActionsCall
1 parent 3293a55 commit cbd7601

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

javascript/ql/lib/semmle/javascript/frameworks/ActionsLib.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,10 @@ private class ExecActionsCall extends SystemCommandExecution, DataFlow::CallNode
7878

7979
override DataFlow::Node getOptionsArg() { result = this.getArgument(2) }
8080

81+
override predicate isShellInterpreted(DataFlow::Node arg) {
82+
arg = this.getACommandArgument() and
83+
not this.getArgumentList().getALocalSource() instanceof DataFlow::ArrayCreationNode
84+
}
85+
8186
override predicate isSync() { none() }
8287
}

0 commit comments

Comments
 (0)