We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03d44fd commit 4dc57d6Copy full SHA for 4dc57d6
.github/codeql/custom-queries-javascript/ShellSanitizer.ql
@@ -9,9 +9,10 @@ module UtilSanitizerConfig implements DataFlow::ConfigSig {
9
predicate isBarrier(DataFlow::Node nd) {
10
nd.(DataFlow::CallNode).getCalleeName() = "sanitizeShellArg"
11
}
12
- /** Minimal stubs required by ConfigSig (false should be no extra action). */
13
- predicate isSource(DataFlow::Node n) { false }
14
- predicate isSink(DataFlow::Node n) { false }
+ /** Minimal stubs required by ConfigSig */
+ predicate isSource(DataFlow::Node source) { source instanceof Source }
+
15
+ predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
16
17
18
module UtilSanitizerConfigFlow = TaintTracking::Global<UtilSanitizerConfig>;
0 commit comments