Skip to content

Commit b2d62a0

Browse files
committed
JS: Move a test failure explanation into the test suite
We have an issue for fixing the underlying problem
1 parent d9da944 commit b2d62a0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionQuery.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
1616
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.
1917
predicate isSource(DataFlow::Node source) { source instanceof Source }
2018

2119
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }

javascript/ql/test/query-tests/Security/CWE-078/UnsafeShellCommandConstruction/lib/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

256256
var fs = require("fs");

0 commit comments

Comments
 (0)