In my current application which is in Spring MVC We have code like below for gateway module.
URI uri = new URI(restURLProtocol, null, URLDomain, URLPort, "/api" + request.getRequestURI(), request.getQueryString(), null);
Gateway module will call another application on same server using AsyncRestTemplate which works fine.
But tools like chekmarx suggest that the code request.getString() is succesptible for SSRF(server side request forgery) attack as an attacker can control the target of the request, by sending a URL or other data in request.
So is there is any way by which we can check request.getString() is susceptible for SSRF attack in java?