@@ -217,18 +217,7 @@ private class RemoteTaintedMethod extends Method {
217217 this instanceof HttpServletRequestGetRequestURIMethod or
218218 this instanceof HttpServletRequestGetRequestURLMethod or
219219 this instanceof HttpServletRequestGetRemoteUserMethod or
220- exists ( SpringWebRequest swr |
221- this = swr .getAMethod ( ) |
222- this .hasName ( "getDescription" ) or
223- this .hasName ( "getHeader" ) or
224- this .hasName ( "getHeaderNames" ) or
225- this .hasName ( "getHeaderValues" ) or
226- this .hasName ( "getParameter" ) or
227- this .hasName ( "getParameterMap" ) or
228- this .hasName ( "getParameterNames" ) or
229- this .hasName ( "getParameterValues" )
230- // TODO consider getRemoteUser
231- ) or
220+ this instanceof SpringWebRequestGetMethod or
232221 this instanceof SpringRestTemplateResponseEntityMethod or
233222 this instanceof ServletRequestGetBodyMethod or
234223 this instanceof CookieGetValueMethod or
@@ -247,6 +236,22 @@ private class RemoteTaintedMethod extends Method {
247236 }
248237}
249238
239+ private class SpringWebRequestGetMethod extends Method {
240+ SpringWebRequestGetMethod ( ) {
241+ exists ( SpringWebRequest swr | this = swr .getAMethod ( ) |
242+ this .hasName ( "getDescription" ) or
243+ this .hasName ( "getHeader" ) or
244+ this .hasName ( "getHeaderNames" ) or
245+ this .hasName ( "getHeaderValues" ) or
246+ this .hasName ( "getParameter" ) or
247+ this .hasName ( "getParameterMap" ) or
248+ this .hasName ( "getParameterNames" ) or
249+ this .hasName ( "getParameterValues" )
250+ // TODO consider getRemoteUser
251+ )
252+ }
253+ }
254+
250255private class EnvTaintedMethod extends Method {
251256 EnvTaintedMethod ( ) {
252257 this instanceof MethodSystemGetenv or
0 commit comments