Skip to content

Commit b50ec58

Browse files
committed
JS/ShellCommandInjectionFromEnvironmentQuery
javascript/ql/src/Security/CWE-078/ShellCommandInjectionFromEnvironment.ql
1 parent ebdc0e2 commit b50ec58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)