We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f2b6c commit 45ddb48Copy full SHA for 45ddb48
cpp/ql/src/experimental/Security/CWE/CWE-078/WordexpTainted.ql
@@ -40,7 +40,7 @@ module WordexpTaintConfig implements DataFlow::ConfigSig {
40
41
predicate isSink(DataFlow::Node sink) {
42
exists(FunctionCall fc | fc.getTarget() instanceof WordexpFunction |
43
- fc.getArgument(0) = sink.asExpr() and
+ fc.getArgument(0) = sink.asIndirectArgument(1) and
44
not isCommandSubstitutionDisabled(fc)
45
)
46
}
0 commit comments