JS/IndirectCommandInjectionQuery

javascript/ql/src/Security/CWE-078/IndirectCommandInjection.ql
This commit is contained in:
Nora Dimitrijević
2025-10-14 13:14:50 +02:00
parent 2a30ea923a
commit 71cf042607

View File

@@ -30,8 +30,9 @@ module IndirectCommandInjectionConfig implements DataFlow::ConfigSig {
predicate observeDiffInformedIncrementalMode() { any() }
Location getASelectedSinkLocation(DataFlow::Node sink) {
exists(DataFlow::Node node |
isSinkWithHighlight(sink, node) and
exists(DataFlow::Node node | isSinkWithHighlight(sink, node) |
result = sink.getLocation()
or
result = node.getLocation()
)
}