We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06add01 commit 89dd8a8Copy full SHA for 89dd8a8
javascript/ql/lib/semmle/javascript/security/dataflow/IndirectCommandInjectionQuery.qll
@@ -30,9 +30,10 @@ module IndirectCommandInjectionConfig implements DataFlow::ConfigSig {
30
predicate observeDiffInformedIncrementalMode() { any() }
31
32
Location getASelectedSinkLocation(DataFlow::Node sink) {
33
- exists(DataFlow::Node node |
34
- isSinkWithHighlight(sink, node) and
35
- result = node.getLocation()
+ exists(DataFlow::Node highlight | result = highlight.getLocation() |
+ if isSinkWithHighlight(sink, _)
+ then isSinkWithHighlight(sink, highlight)
36
+ else highlight = sink
37
)
38
}
39
0 commit comments