File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ruby/ql/lib/codeql/ruby/security Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ private import codeql.ruby.DataFlow
1010private import codeql.ruby.dataflow.RemoteFlowSources
1111private import codeql.ruby.Concepts
1212private import codeql.ruby.dataflow.Sanitizers
13+ private import codeql.ruby.frameworks.data.internal.ApiGraphModels
1314
1415/**
1516 * Provides default sources, sinks and sanitizers for reasoning about
@@ -41,4 +42,8 @@ module ServerSideRequestForgery {
4142
4243 /** A string interpolation with a fixed prefix, considered as a flow sanitizer. */
4344 class StringInterpolationAsSanitizer extends PrefixedStringInterpolation , Sanitizer { }
45+
46+ private class ExternalRequestForgerySink extends Sink {
47+ ExternalRequestForgerySink ( ) { this = ModelOutput:: getASinkNode ( "request-forgery" ) .asSink ( ) }
48+ }
4449}
You can’t perform that action at this time.
0 commit comments