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 b8e1aa6 commit bc5b745Copy full SHA for bc5b745
javascript/ql/test/query-tests/Security/CWE-078/UnsafeShellCommandConstruction/lib/subLib/index.js
@@ -8,4 +8,8 @@ module.exports.foo = function (name) {
8
cp.exec("rm -rf " + name); // NOT OK - this is being called explicitly from child_process-test.js
9
};
10
11
-module.exports.amd = require("./amd.js");
+module.exports.amd = require("./amd.js");
12
+
13
+module.exports.arrToShell = function (cmd, arr) {
14
+ cp.spawn("echo", arr, {shell: true}); // NOT OK - but not flagged [INCONSISTENCY]
15
+}
0 commit comments