mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
JS/IndirectCommandInjectionQuery
javascript/ql/src/Security/CWE-078/IndirectCommandInjection.ql
This commit is contained in:
@@ -30,8 +30,9 @@ module IndirectCommandInjectionConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
exists(DataFlow::Node node |
|
exists(DataFlow::Node node | isSinkWithHighlight(sink, node) |
|
||||||
isSinkWithHighlight(sink, node) and
|
result = sink.getLocation()
|
||||||
|
or
|
||||||
result = node.getLocation()
|
result = node.getLocation()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user