We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77cab6 commit 80da00bCopy full SHA for 80da00b
1 file changed
cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql
@@ -150,6 +150,17 @@ module ExecTaintConfig implements DataFlow::StateConfigSig {
150
predicate isBarrierOut(DataFlow::Node node) {
151
isSink(node, _) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
152
}
153
+
154
+ predicate observeDiffInformedIncrementalMode() { any() }
155
156
+ Location getASelectedSinkLocation(DataFlow::Node sink) {
157
+ exists(DataFlow::Node concatResult, Expr command, ExecState state |
158
+ result = [concatResult.getLocation(), command.getLocation()] and
159
+ isSink(sink, state) and
160
+ isSinkImpl(sink, command, _) and
161
+ concatResult = state.getOutgoingNode()
162
+ )
163
+ }
164
165
166
module ExecTaint = TaintTracking::GlobalWithState<ExecTaintConfig>;
0 commit comments