File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
csharp/ql/src/semmle/code/csharp
security/dataflow/flowsinks Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,21 @@ module Sources {
78
78
}
79
79
}
80
80
}
81
-
81
+ /** Flow Sinks for the ServiceStack framework */
82
+ module Sinks {
83
+ private import semmle.code.csharp.security.dataflow.flowsinks.Remote
84
+
85
+ /** RemoteFlow sinks for service stack */
86
+ class ServiceStackRemoteRequestParameter extends RemoteFlowSink {
87
+ ServiceStackRemoteRequestParameter ( ) {
88
+ exists ( MethodCall mc |
89
+ mc .getTarget ( ) .hasQualifiedName ( "ServiceStack.IRestClient.Get" ) and
90
+ mc .getArgument ( 0 ) = this .asExpr ( )
91
+ )
92
+ }
93
+ }
94
+ }
95
+
82
96
/** SQLi support for the ServiceStack framework */
83
97
module SQL {
84
98
private import semmle.code.csharp.security.dataflow.SqlInjection:: SqlInjection
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ private import ExternalLocationSink
8
8
private import Html
9
9
private import semmle.code.csharp.security.dataflow.XSS
10
10
private import semmle.code.csharp.frameworks.system.web.UI
11
+ import semmle.code.csharp.frameworks.ServiceStack:: Sinks
11
12
12
13
/** A data flow sink of remote user output. */
13
14
abstract class RemoteFlowSink extends DataFlow:: Node { }
You can’t perform that action at this time.
0 commit comments