mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
require arguments to be shell interpreted to be flagged by indirect-command-injection
This commit is contained in:
@@ -144,4 +144,6 @@ cp.exec("cmd.sh " + require("optimist").argv.foo); // NOT OK
|
||||
|
||||
cp.exec("cmd.sh " + program.opts().pizzaType); // NOT OK
|
||||
cp.exec("cmd.sh " + program.pizzaType); // NOT OK
|
||||
|
||||
cp.execFile(program.opts().pizzaType, ["foo", "bar"]); // OK
|
||||
});
|
||||
Reference in New Issue
Block a user