Skip to content

Commit 54597fd

Browse files
committed
JS/CommandInjectionQuery
javascript/ql/src/experimental/heuristics/ql/src/Security/CWE-078/CommandInjection.ql javascript/ql/src/Security/CWE-078/CommandInjection.ql
1 parent 694bae3 commit 54597fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ module CommandInjectionConfig implements DataFlow::ConfigSig {
3434
predicate observeDiffInformedIncrementalMode() { any() }
3535

3636
Location getASelectedSinkLocation(DataFlow::Node sink) {
37-
exists(DataFlow::Node node |
38-
isSinkWithHighlight(sink, node) and
37+
exists(DataFlow::Node node | isSinkWithHighlight(sink, node) |
38+
result = sink.getLocation()
39+
or
3940
result = node.getLocation()
4041
)
4142
}

0 commit comments

Comments
 (0)