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 2e290d2 commit f87f720Copy full SHA for f87f720
powershell/ql/lib/semmle/code/powershell/security/SqlInjectionCustomizations.qll
@@ -57,8 +57,8 @@ module SqlInjection {
57
exists(DataFlow::CallNode call | call.matchesName("Invoke-Sqlcmd") |
58
this = call.getNamedArgument(query())
59
or
60
- this = call.getNamedArgument(inputfile())
61
- or
+ // If the input is not provided as a query parameter or an input file
+ // parameter then it's the first argument.
62
not call.hasNamedArgument(query()) and
63
not call.hasNamedArgument(inputfile()) and
64
this = call.getArgument(0)
0 commit comments