File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
lib/semmle/javascript/security/dataflow
test/query-tests/Security/CWE-078/UnsafeShellCommandConstruction/lib Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import UnsafeShellCommandConstructionCustomizations::UnsafeShellCommandConstruct
1414 * A taint-tracking configuration for reasoning about shell command constructed from library input vulnerabilities.
1515 */
1616module UnsafeShellCommandConstructionConfig implements DataFlow:: ConfigSig {
17- // TODO: we get a FP in the test case due to SanitizingRegExpTest not being able to generate a barrier edge
18- // for an edge into a phi node.
1917 predicate isSource ( DataFlow:: Node source ) { source instanceof Source }
2018
2119 predicate isSink ( DataFlow:: Node sink ) { sink instanceof Sink }
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ module.exports.goodSanitizer = function (name) {
250250
251251 var cleaned = cleanInput ( name ) ;
252252
253- cp . exec ( "rm -rf " + cleaned ) ; // OK
253+ cp . exec ( "rm -rf " + cleaned ) ; // OK - But FP due to SanitizingRegExpTest not being able to generate a barrier edge for an edge into a phi node.
254254}
255255
256256var fs = require ( "fs" ) ;
You can’t perform that action at this time.
0 commit comments