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