Files
codeql/javascript/ql/test/query-tests/Security/CWE-078/UnsafeShellCommandConstruction/lib/other.js
2025-02-28 13:27:28 +01:00

5 lines
142 B
JavaScript

var cp = require("child_process")
module.exports = function (name) {
cp.exec("rm -rf " + name); // OK - is not exported to a main-module.
};