Skip to content

Commit 185f845

Browse files
committed
JS/IndirectCommandInjectionQuery
javascript/ql/src/Security/CWE-078/IndirectCommandInjection.ql
1 parent 54597fd commit 185f845

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ module IndirectCommandInjectionConfig implements DataFlow::ConfigSig {
3030
predicate observeDiffInformedIncrementalMode() { any() }
3131

3232
Location getASelectedSinkLocation(DataFlow::Node sink) {
33-
exists(DataFlow::Node node |
34-
isSinkWithHighlight(sink, node) and
33+
exists(DataFlow::Node node | isSinkWithHighlight(sink, node) |
34+
result = sink.getLocation()
35+
or
3536
result = node.getLocation()
3637
)
3738
}

0 commit comments

Comments
 (0)