mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Added IRestClientAsync methods to external location sink. Removed import from
Remote.qll, as it is un-necessary now.
This commit is contained in:
@@ -91,9 +91,11 @@ module Sinks {
|
||||
exists(MethodCall mc |
|
||||
mc.getTarget().getQualifiedName() in [
|
||||
"ServiceStack.IRestClient.Get", "ServiceStack.IRestClient.Put",
|
||||
"ServiceStack.IRestClient.Post", "ServiceStack.IRestClient.Delete",
|
||||
"ServiceStack.IRestClient.Post", "ServiceStack.IRestClient.Put",
|
||||
"ServiceStack.IRestClient.Patch", "ServiceStack.IRestClient.Send"
|
||||
"ServiceStack.IRestClient.Post", "ServiceStack.IRestClient.Delete",
|
||||
"ServiceStack.IRestClient.Patch", "ServiceStack.IRestClient.Send",
|
||||
"ServiceStack.IRestClientAsync.GetAsync","ServiceStack.IRestClientAsync.DeleteAsync",
|
||||
"ServiceStack.IRestClientAsync.PutAsync","ServiceStack.IRestClientAsync.PostAsync",
|
||||
"ServiceStack.IRestClientAsync.PatchAsync","ServiceStack.IRestClientAsync.CustomMethodAsync"
|
||||
] and
|
||||
this.asExpr() = mc.getAnArgument()
|
||||
)
|
||||
|
||||
@@ -8,7 +8,6 @@ private import ExternalLocationSink
|
||||
private import Html
|
||||
private import semmle.code.csharp.security.dataflow.XSS
|
||||
private import semmle.code.csharp.frameworks.system.web.UI
|
||||
private import semmle.code.csharp.frameworks.ServiceStack::Sinks
|
||||
|
||||
/** A data flow sink of remote user output. */
|
||||
abstract class RemoteFlowSink extends DataFlow::Node { }
|
||||
|
||||
Reference in New Issue
Block a user