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 7c235e3 commit 1a108fbCopy full SHA for 1a108fb
java/ql/src/experimental/Security/CWE/CWE-078/CommandInjectionRuntimeExec.qll
@@ -98,6 +98,6 @@ class UnSafeExecutable extends string {
98
bindingset[this]
99
UnSafeExecutable() {
100
this.regexpMatch("^(|.*/)([a-z]*sh|javac?|python.*|perl|[Pp]ower[Ss]hell|php|node|deno|bun|ruby|osascript|cmd|Rscript|groovy)(\\.exe)?$") and
101
- not this.matches("netsh.exe")
+ not this = "netsh.exe"
102
}
103
0 commit comments