File tree Expand file tree Collapse file tree
csharp/ql/lib/semmle/code/csharp/security/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import csharp
66private import semmle.code.csharp.security.dataflow.flowsources.Remote
77private import semmle.code.csharp.frameworks.system.Diagnostics
88private import semmle.code.csharp.security.Sanitizers
9+ private import semmle.code.csharp.dataflow.ExternalFlow
910
1011/**
1112 * A source specific to command injection vulnerabilities.
@@ -66,6 +67,11 @@ module CommandInjection = TaintTracking::Global<CommandInjectionConfig>;
6667/** A source of remote user input. */
6768class RemoteSource extends Source instanceof RemoteFlowSource { }
6869
70+ /** Command Injection sinks defined through CSV models. */
71+ private class ExternalCommandInjectionExprSink extends Sink {
72+ ExternalCommandInjectionExprSink ( ) { sinkNode ( this , "command-injection" ) }
73+ }
74+
6975/**
7076 * A sink in `System.Diagnostic.Process` or its related classes.
7177 */
You can’t perform that action at this time.
0 commit comments