Skip to content

Commit 6a95515

Browse files
committed
PS: Accept test changes.
1 parent a512b5a commit 6a95515

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

powershell/ql/test/query-tests/security/cwe-089/SqlInjection.expected

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edges
55
| test.ps1:1:1:1:10 | userinput | test.ps1:28:24:28:76 | SELECT * FROM MyTable WHERE MyColumn = '$userinput' | provenance | |
66
| test.ps1:1:1:1:10 | userinput | test.ps1:78:13:78:22 | userinput | provenance | |
77
| test.ps1:1:1:1:10 | userinput | test.ps1:128:28:128:37 | userinput | provenance | |
8-
| test.ps1:1:1:1:10 | userinput | test.ps1:136:17:136:26 | userinput | provenance | |
98
| test.ps1:1:14:1:45 | Call to read-host | test.ps1:1:1:1:10 | userinput | provenance | Src:MaD:0 |
109
| test.ps1:4:1:4:6 | query | test.ps1:5:72:5:77 | query | provenance | |
1110
| test.ps1:8:1:8:6 | query | test.ps1:9:72:9:77 | query | provenance | |
@@ -14,9 +13,6 @@ edges
1413
| test.ps1:78:13:78:22 | userinput | test.ps1:72:15:79:1 | ${...} [element Query] | provenance | |
1514
| test.ps1:121:9:121:56 | unvalidated | test.ps1:125:92:125:103 | unvalidated | provenance | |
1615
| test.ps1:128:28:128:37 | userinput | test.ps1:121:9:121:56 | unvalidated | provenance | |
17-
| test.ps1:130:1:130:11 | QueryConn3 [element inputfile] | test.ps1:139:15:139:25 | QueryConn3 | provenance | |
18-
| test.ps1:130:15:137:1 | ${...} [element inputfile] | test.ps1:130:1:130:11 | QueryConn3 [element inputfile] | provenance | |
19-
| test.ps1:136:17:136:26 | userinput | test.ps1:130:15:137:1 | ${...} [element inputfile] | provenance | |
2016
nodes
2117
| test.ps1:1:1:1:10 | userinput | semmle.label | userinput |
2218
| test.ps1:1:14:1:45 | Call to read-host | semmle.label | Call to read-host |
@@ -33,10 +29,6 @@ nodes
3329
| test.ps1:121:9:121:56 | unvalidated | semmle.label | unvalidated |
3430
| test.ps1:125:92:125:103 | unvalidated | semmle.label | unvalidated |
3531
| test.ps1:128:28:128:37 | userinput | semmle.label | userinput |
36-
| test.ps1:130:1:130:11 | QueryConn3 [element inputfile] | semmle.label | QueryConn3 [element inputfile] |
37-
| test.ps1:130:15:137:1 | ${...} [element inputfile] | semmle.label | ${...} [element inputfile] |
38-
| test.ps1:136:17:136:26 | userinput | semmle.label | userinput |
39-
| test.ps1:139:15:139:25 | QueryConn3 | semmle.label | QueryConn3 |
4032
subpaths
4133
#select
4234
| test.ps1:5:72:5:77 | query | test.ps1:1:14:1:45 | Call to read-host | test.ps1:5:72:5:77 | query | This SQL query depends on a $@. | test.ps1:1:14:1:45 | Call to read-host | read from stdin |
@@ -45,4 +37,3 @@ subpaths
4537
| test.ps1:28:24:28:76 | SELECT * FROM MyTable WHERE MyColumn = '$userinput' | test.ps1:1:14:1:45 | Call to read-host | test.ps1:28:24:28:76 | SELECT * FROM MyTable WHERE MyColumn = '$userinput' | This SQL query depends on a $@. | test.ps1:1:14:1:45 | Call to read-host | read from stdin |
4638
| test.ps1:81:15:81:25 | QueryConn2 | test.ps1:1:14:1:45 | Call to read-host | test.ps1:81:15:81:25 | QueryConn2 | This SQL query depends on a $@. | test.ps1:1:14:1:45 | Call to read-host | read from stdin |
4739
| test.ps1:125:92:125:103 | unvalidated | test.ps1:1:14:1:45 | Call to read-host | test.ps1:125:92:125:103 | unvalidated | This SQL query depends on a $@. | test.ps1:1:14:1:45 | Call to read-host | read from stdin |
48-
| test.ps1:139:15:139:25 | QueryConn3 | test.ps1:1:14:1:45 | Call to read-host | test.ps1:139:15:139:25 | QueryConn3 | This SQL query depends on a $@. | test.ps1:1:14:1:45 | Call to read-host | read from stdin |

powershell/ql/test/query-tests/security/cwe-089/test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ $QueryConn3 = @{
136136
inputfile = $userinput
137137
}
138138

139-
Invoke-Sqlcmd @QueryConn3 # GOOD [FALSE POSITIVE]
139+
Invoke-Sqlcmd @QueryConn3 # GOOD

0 commit comments

Comments
 (0)