mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
Java: Add SpringWebRequest to RemoteTaintedMethod
This commit is contained in:
@@ -216,6 +216,18 @@ private class RemoteTaintedMethod extends Method {
|
||||
this instanceof HttpServletRequestGetRequestURIMethod or
|
||||
this instanceof HttpServletRequestGetRequestURLMethod or
|
||||
this instanceof HttpServletRequestGetRemoteUserMethod or
|
||||
exists(SpringWebRequest swr |
|
||||
this = swr.getAMethod() |
|
||||
this.hasName("getDescription") or
|
||||
this.hasName("getHeader") or
|
||||
this.hasName("getHeaderNames") or
|
||||
this.hasName("getHeaderValues") or
|
||||
this.hasName("getParameter") or
|
||||
this.hasName("getParameterMap") or
|
||||
this.hasName("getParameterNames") or
|
||||
this.hasName("getParameterValues")
|
||||
// TODO consider getRemoteUser
|
||||
) or
|
||||
this instanceof ServletRequestGetBodyMethod or
|
||||
this instanceof CookieGetValueMethod or
|
||||
this instanceof CookieGetNameMethod or
|
||||
|
||||
Reference in New Issue
Block a user