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 602500e commit 33d8ffaCopy full SHA for 33d8ffa
javascript/ql/test/query-tests/Security/CWE-078/IndirectCommandInjection/actions.js
@@ -12,3 +12,10 @@ function test(e) {
12
test(process.env); // $ Source
13
14
exec(getInput('data')); // $ Alert
15
+
16
+function test2(e) {
17
+ const shelljs = require('shelljs');
18
+ exec('rm -rf ' + shelljs.env['SOME']); // $ MISSING: Alert
19
+ exec('rm -rf ' + shelljs.env.SOME); // $ MISSING: Alert
20
+ exec('rm -rf ' + shelljs.env); // $ MISSING: Alert
21
+}
0 commit comments