File tree Expand file tree Collapse file tree
csharp/ql/src/semmle/code/csharp
security/dataflow/flowsinks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,21 @@ module Sources {
7878 }
7979 }
8080}
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+
8296/** SQLi support for the ServiceStack framework */
8397module SQL {
8498 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
88private import Html
99private import semmle.code.csharp.security.dataflow.XSS
1010private import semmle.code.csharp.frameworks.system.web.UI
11+ import semmle.code.csharp.frameworks.ServiceStack:: Sinks
1112
1213/** A data flow sink of remote user output. */
1314abstract class RemoteFlowSink extends DataFlow:: Node { }
You can’t perform that action at this time.
0 commit comments