File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,18 @@ class ActionMethodParameter extends RemoteFlowSource, DataFlow::ParameterNode {
171
171
/** A data flow source of remote user input (ASP.NET Core). */
172
172
abstract class AspNetCoreRemoteFlowSource extends RemoteFlowSource { }
173
173
174
+ /**
175
+ * Data flow for AST.NET Core.
176
+ *
177
+ * Flow is defined from any ASP.NET Core remote source object to any of its member
178
+ * properties.
179
+ */
180
+ private class AspNetCoreRemoteFlowSourceMember extends TaintTracking:: TaintedMember {
181
+ AspNetCoreRemoteFlowSourceMember ( ) {
182
+ this .getDeclaringType ( ) = any ( AspNetCoreRemoteFlowSource source ) .getType ( )
183
+ }
184
+ }
185
+
174
186
/** A data flow source of remote user input (ASP.NET query collection). */
175
187
class AspNetCoreQueryRemoteFlowSource extends AspNetCoreRemoteFlowSource , DataFlow:: ExprNode {
176
188
AspNetCoreQueryRemoteFlowSource ( ) {
@@ -196,7 +208,7 @@ class AspNetCoreQueryRemoteFlowSource extends AspNetCoreRemoteFlowSource, DataFl
196
208
}
197
209
198
210
/** A parameter to a `Mvc` controller action method, viewed as a source of remote user input. */
199
- class AspNetCoreActionMethodParameter extends RemoteFlowSource , DataFlow:: ParameterNode {
211
+ class AspNetCoreActionMethodParameter extends AspNetCoreRemoteFlowSource , DataFlow:: ParameterNode {
200
212
AspNetCoreActionMethodParameter ( ) {
201
213
exists ( Parameter p |
202
214
p = this .getParameter ( ) and
You can’t perform that action at this time.
0 commit comments