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
14
14
* A taint-tracking configuration for reasoning about shell command constructed from library input vulnerabilities.
15
15
*/
16
16
module 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.
19
17
predicate isSource ( DataFlow:: Node source ) { source instanceof Source }
20
18
21
19
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) {
250
250
251
251
var cleaned = cleanInput ( name ) ;
252
252
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.
254
254
}
255
255
256
256
var fs = require ( "fs" ) ;
You can’t perform that action at this time.
0 commit comments