JS/ShellCommandInjectionFromEnvironmentQuery

javascript/ql/src/Security/CWE-078/ShellCommandInjectionFromEnvironment.ql
This commit is contained in:
Nora Dimitrijević
2025-10-14 13:28:30 +02:00
parent 71cf042607
commit 94343254e3

View File

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