File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ abstract class EnvironmentVariableSource extends LocalFlowSource {
40
40
override string getSourceType ( ) { result = "environment variable" }
41
41
}
42
42
43
+ private class ExternalEnvironmentVariableSource extends EnvironmentVariableSource {
44
+ ExternalEnvironmentVariableSource ( ) { sourceNode ( this , "environment" ) }
45
+ }
46
+
43
47
/**
44
48
* A dataflow source that represents the access of a command line argument.
45
49
*/
@@ -49,6 +53,10 @@ abstract class CommandLineArgumentSource extends LocalFlowSource {
49
53
override string getSourceType ( ) { result = "command line argument" }
50
54
}
51
55
56
+ private class ExternalCommandLineArgumentSource extends CommandLineArgumentSource {
57
+ ExternalCommandLineArgumentSource ( ) { sourceNode ( this , "command-line" ) }
58
+ }
59
+
52
60
/**
53
61
* A data flow source that represents the parameters of the `Main` method of a program.
54
62
*/
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ deprecated class ORMMappedProperty extends DataFlow::Node {
73
73
}
74
74
}
75
75
76
+ private class ExternalDatabaseInputSource extends DatabaseInputSource {
77
+ ExternalDatabaseInputSource ( ) { sourceNode ( this , "database" ) }
78
+ }
79
+
76
80
/** A file stream source is considered a stored flow source. */
77
81
class FileStreamStoredFlowSource extends StoredFlowSource {
78
82
FileStreamStoredFlowSource ( ) { sourceNode ( this , "file" ) }
You can’t perform that action at this time.
0 commit comments