File tree 1 file changed +9
-0
lines changed
csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,27 @@ class TextFieldSource extends LocalUserInputSource {
32
32
override string getSourceType ( ) { result = "TextBox text" }
33
33
}
34
34
35
+ /**
36
+ * A dataflow source that represents the access of an environment variable.
37
+ */
35
38
abstract class EnvironmentVariableSource extends LocalFlowSource {
36
39
override string getThreatModel ( ) { result = "environment" }
37
40
38
41
override string getSourceType ( ) { result = "environment variable" }
39
42
}
40
43
44
+ /**
45
+ * A dataflow source that represents the access of a command line argument.
46
+ */
41
47
abstract class CommandLineArgumentSource extends LocalFlowSource {
42
48
override string getThreatModel ( ) { result = "commandargs" }
43
49
44
50
override string getSourceType ( ) { result = "command line argument" }
45
51
}
46
52
53
+ /**
54
+ * A data flow source that represents the parameters of the `Main` method of a program.
55
+ */
47
56
private class MainMethodArgumentSource extends CommandLineArgumentSource {
48
57
MainMethodArgumentSource ( ) { this .asParameter ( ) = any ( MainMethod mainMethod ) .getAParameter ( ) }
49
58
}
You can’t perform that action at this time.
0 commit comments