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.
make-dir
1 parent f02783a commit 674f40bCopy full SHA for 674f40b
javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/make-dir.js
@@ -0,0 +1,11 @@
1
+import { makeDirectory, makeDirectorySync } from 'make-dir';
2
+
3
+const express = require('express');
4
+const app = express();
5
6
+app.get('/makedir', (req, res) => {
7
+ const file = req.query.file; // $ MISSING: Source
8
9
+ makeDirectory(file); // $ MISSING: Alert
10
+ makeDirectorySync(file); // $ MISSING: Alert
11
+});
0 commit comments