Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07a876b

Browse files
committed
JS: Accept some alerts at the SystemCommandExecution location
1 parent 10a7294 commit 07a876b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ module.exports.shellOption = function (name) {
424424
spawn("rm", ["first", name], SPAWN_OPT); // $ Alert
425425
var arr = [];
426426
arr.push(name); // $ Alert
427-
spawn("rm", arr, SPAWN_OPT);
428-
spawn("rm", build("node", (name ? name + ':' : '') + '-'), SPAWN_OPT); // This is bad, but the alert location is down in `build`.
427+
spawn("rm", arr, SPAWN_OPT); // $ Alert
428+
spawn("rm", build("node", (name ? name + ':' : '') + '-'), SPAWN_OPT); // $ Alert
429429
}
430430

431431
function build(first, last) {

0 commit comments

Comments
 (0)