File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
javascript/ql/test/experimental/Security/CWE-099 Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 8
8
| test.js:5:35:5:42 | EnvValue |
9
9
| test.js:6:23:6:30 | EnvValue |
10
10
| test.js:6:23:6:30 | EnvValue |
11
+ | test.js:7:22:7:29 | EnvValue |
12
+ | test.js:7:22:7:29 | EnvValue |
11
13
edges
12
14
| test.js:4:9:4:20 | { EnvValue } | test.js:4:11:4:18 | EnvValue |
13
15
| test.js:4:9:4:31 | EnvValue | test.js:5:35:5:42 | EnvValue |
14
16
| test.js:4:9:4:31 | EnvValue | test.js:5:35:5:42 | EnvValue |
15
17
| test.js:4:9:4:31 | EnvValue | test.js:6:23:6:30 | EnvValue |
16
18
| test.js:4:9:4:31 | EnvValue | test.js:6:23:6:30 | EnvValue |
19
+ | test.js:4:9:4:31 | EnvValue | test.js:7:22:7:29 | EnvValue |
20
+ | test.js:4:9:4:31 | EnvValue | test.js:7:22:7:29 | EnvValue |
17
21
| test.js:4:11:4:18 | EnvValue | test.js:4:9:4:31 | EnvValue |
18
22
| test.js:4:24:4:31 | req.body | test.js:4:9:4:20 | { EnvValue } |
19
23
| test.js:4:24:4:31 | req.body | test.js:4:9:4:20 | { EnvValue } |
20
24
#select
21
25
| test.js:5:35:5:42 | EnvValue | test.js:4:24:4:31 | req.body | test.js:5:35:5:42 | EnvValue | this environment variable assignment is $@. | test.js:4:24:4:31 | req.body | user controllable |
22
26
| test.js:6:23:6:30 | EnvValue | test.js:4:24:4:31 | req.body | test.js:6:23:6:30 | EnvValue | this environment variable assignment is $@. | test.js:4:24:4:31 | req.body | user controllable |
27
+ | test.js:7:22:7:29 | EnvValue | test.js:4:24:4:31 | req.body | test.js:7:22:7:29 | EnvValue | this environment variable assignment is $@. | test.js:4:24:4:31 | req.body | user controllable |
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ http.createServer((req, res) => {
4
4
const { EnvValue } = req . body ;
5
5
process . env [ "A_Critical_Env" ] = EnvValue ; // NOT OK
6
6
process . env [ AKey ] = EnvValue ; // NOT OK
7
+ process . env . AKey = EnvValue ; // NOT OK
7
8
8
9
res . end ( 'env has been injected!' ) ;
9
10
} ) ;
You can’t perform that action at this time.
0 commit comments