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
10
10
private import codeql.ruby.dataflow.RemoteFlowSources
11
11
private import codeql.ruby.Concepts
12
12
private import codeql.ruby.dataflow.Sanitizers
13
+ private import codeql.ruby.frameworks.data.internal.ApiGraphModels
13
14
14
15
/**
15
16
* Provides default sources, sinks and sanitizers for reasoning about
@@ -41,4 +42,8 @@ module ServerSideRequestForgery {
41
42
42
43
/** A string interpolation with a fixed prefix, considered as a flow sanitizer. */
43
44
class StringInterpolationAsSanitizer extends PrefixedStringInterpolation , Sanitizer { }
45
+
46
+ private class ExternalRequestForgerySink extends Sink {
47
+ ExternalRequestForgerySink ( ) { this = ModelOutput:: getASinkNode ( "request-forgery" ) .asSink ( ) }
48
+ }
44
49
}
You can’t perform that action at this time.
0 commit comments