File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
java/ql/src/semmle/code/java/dataflow Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,19 @@ private class MessageBodyReaderParameterSource extends RemoteFlowSource {
103
103
override string getSourceType ( ) { result = "MessageBodyReader parameter" }
104
104
}
105
105
106
+ private class SpringMultipartFileSource extends RemoteFlowSource {
107
+ SpringMultipartFileSource ( ) {
108
+ exists ( MethodAccess ma , Method m |
109
+ ma = this .asExpr ( ) and
110
+ m = ma .getMethod ( ) and
111
+ m .getDeclaringType ( ) .hasQualifiedName ( "org.springframework.web.multipart" , "MultipartFile" ) and
112
+ m .getName ( ) .matches ( "get%" )
113
+ )
114
+ }
115
+
116
+ override string getSourceType ( ) { result = "Spring MultipartFile getter" }
117
+ }
118
+
106
119
private class SpringServletInputParameterSource extends RemoteFlowSource {
107
120
SpringServletInputParameterSource ( ) {
108
121
this .asParameter ( ) .getAnAnnotation ( ) instanceof SpringServletInputAnnotation
You can’t perform that action at this time.
0 commit comments