Skip to content

Commit 0a06da0

Browse files
committed
PS: Fixup queries.
1 parent 2403ce6 commit 0a06da0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ module CommandInjection {
240240
exists(Function f, Attribute a, Parameter p |
241241
p = f.getAParameter() and
242242
p.getAnAttribute() = a and
243-
a.getName() = ["ValidateScript", "ValidateSet", "ValidatePattern"] and
243+
a.getAName() = ["ValidateScript", "ValidateSet", "ValidatePattern"] and
244244
this.asParameter() = p
245245
)
246246
}

powershell/ql/src/queries/security/cwe-078/CommandInjectionCritical.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class CriticalSource extends DataFlow::Node {
2626
class CmdletBindingParam extends CriticalSource {
2727
CmdletBindingParam(){
2828
exists(Attribute a, Function f |
29-
a.getName() = "CmdletBinding" and
29+
a.getAName() = "CmdletBinding" and
3030
f = a.getEnclosingFunction() and
3131
this.asParameter() = f.getAParameter()
3232
)

0 commit comments

Comments
 (0)