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 7c83d9d commit 95926cbCopy full SHA for 95926cb
powershell/ql/lib/semmle/code/powershell/security/SqlInjectionCustomizations.qll
@@ -38,8 +38,13 @@ module SqlInjection {
38
abstract class Sanitizer extends DataFlow::Node { }
39
40
/** A source of user input, considered as a flow source for command injection. */
41
- class FlowSourceAsSource extends Source instanceof SourceNode {
42
- override string getSourceType() { result = SourceNode.super.getSourceType() }
+ class FlowSourceAsSource extends Source {
+ FlowSourceAsSource() {
43
+ this instanceof SourceNode and
44
+ not this instanceof EnvironmentVariableSource
45
+ }
46
+
47
+ override string getSourceType() { result = this.(SourceNode).getSourceType() }
48
}
49
50
class InvokeSqlCmdSink extends Sink {
0 commit comments