Skip to content

Commit 5f37de4

Browse files
committed
JS/ShellCommandInjectionFromEnvironmentQuery
javascript/ql/src/Security/CWE-078/ShellCommandInjectionFromEnvironment.ql
1 parent 185f845 commit 5f37de4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/ShellCommandInjectionFromEnvironmentQuery.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module ShellCommandInjectionFromEnvironmentConfig implements DataFlow::ConfigSig
3131
predicate observeDiffInformedIncrementalMode() { any() }
3232

3333
Location getASelectedSinkLocation(DataFlow::Node sink) {
34+
result = sink.getLocation()
35+
or
3436
exists(DataFlow::Node node |
3537
isSinkWithHighlight(sink, node) and
3638
result = node.getLocation()

0 commit comments

Comments
 (0)