Skip to content

Commit 7b4d2a9

Browse files
committed
PS: Lower casing in command-line injection query.
1 parent b66c99b commit 7b4d2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powershell/ql/lib/semmle/code/powershell/security/CommandInjectionCustomizations.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module CommandInjection {
103103
addscript.matchesName("AddScript") and
104104
create.matchesName("Create") and
105105
addscript.getQualifier().(InvokeMemberExpr) = create and
106-
create.getQualifier().(TypeNameExpr).getName() = "PowerShell"
106+
create.getQualifier().(TypeNameExpr).getAName() = "PowerShell"
107107
)
108108
}
109109

@@ -164,7 +164,7 @@ module CommandInjection {
164164
exists(InvokeMemberExpr ie |
165165
this.asExpr().getExpr() = ie.getAnArgument() and
166166
ie.matchesName("Create") and
167-
ie.getQualifier().(TypeNameExpr).getName() = "ScriptBlock"
167+
ie.getQualifier().(TypeNameExpr).getAName() = "ScriptBlock"
168168
)
169169
}
170170

0 commit comments

Comments
 (0)