File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
powershell/ql/test/query-tests/security/cwe-078/CommandInjection Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
edges
2
2
| test.ps1:1:8:1:9 | x | test.ps1:3:28:3:47 | Get-Process -Id $x | provenance | |
3
+ | test.ps1:5:10:5:20 | my_var | test.ps1:7:3:7:19 | $code --enabled | provenance | |
3
4
nodes
4
5
| test.ps1:1:8:1:9 | x | semmle.label | x |
5
6
| test.ps1:3:28:3:47 | Get-Process -Id $x | semmle.label | Get-Process -Id $x |
7
+ | test.ps1:5:10:5:20 | my_var | semmle.label | my_var |
8
+ | test.ps1:7:3:7:19 | $code --enabled | semmle.label | $code --enabled |
6
9
subpaths
7
10
#select
8
11
| test.ps1:3:28:3:47 | Get-Process -Id $x | test.ps1:1:8:1:9 | x | test.ps1:3:28:3:47 | Get-Process -Id $x | This command depends on a $@. | test.ps1:1:8:1:9 | x | user-provided value |
12
+ | test.ps1:7:3:7:19 | $code --enabled | test.ps1:5:10:5:20 | my_var | test.ps1:7:3:7:19 | $code --enabled | This command depends on a $@. | test.ps1:5:10:5:20 | my_var | user-provided value |
You can’t perform that action at this time.
0 commit comments