@@ -8,7 +8,9 @@ private import semmle.go.security.OpenUrlRedirectCustomizations
88/** Provides classes and methods modeling the Revel web framework. */
99module Revel {
1010 /** Gets the package name `github.com/revel/revel`. */
11- string packagePath ( ) { result = package ( [ "github.com/revel" , "github.com/robfig" ] + "/revel" , "" ) }
11+ string packagePath ( ) {
12+ result = package ( [ "github.com/revel" , "github.com/robfig" ] + "/revel" , "" )
13+ }
1214
1315 private class ControllerParams extends UntrustedFlowSource:: Range , DataFlow:: FieldReadNode {
1416 ControllerParams ( ) {
@@ -20,7 +22,8 @@ module Revel {
2022 }
2123
2224 private class ParamsFixedSanitizer extends TaintTracking:: DefaultTaintSanitizer ,
23- DataFlow:: FieldReadNode {
25+ DataFlow:: FieldReadNode
26+ {
2427 ParamsFixedSanitizer ( ) {
2528 exists ( Field f |
2629 this .readsField ( _, f ) and
@@ -40,7 +43,8 @@ module Revel {
4043
4144 /** An access to an HTTP request field whose value may be controlled by an untrusted user. */
4245 private class UserControlledRequestField extends UntrustedFlowSource:: Range ,
43- DataFlow:: FieldReadNode {
46+ DataFlow:: FieldReadNode
47+ {
4448 UserControlledRequestField ( ) {
4549 exists ( string fieldName |
4650 this .getField ( ) .hasQualifiedName ( packagePath ( ) , "Request" , fieldName )
@@ -53,7 +57,8 @@ module Revel {
5357 }
5458
5559 private class UserControlledRequestMethod extends UntrustedFlowSource:: Range ,
56- DataFlow:: MethodCallNode {
60+ DataFlow:: MethodCallNode
61+ {
5762 UserControlledRequestMethod ( ) {
5863 this .getTarget ( )
5964 .hasQualifiedName ( packagePath ( ) , "Request" ,
0 commit comments