Is this injectable? (JSP)
Date: March 21, 2012 09:09AM
So, I'm dealing with an injection and can't figure out if I can actually do anything with it or not. The page in question is JSP and takes a GET parameter, appends it to the current domain/path, and adds .html to the end of it.
Here's an example of the code:
response.sendRedirect(basePath + path + getParam + ".html");
That getParam parameter is not sanitized. I can send it as "someotherfile.jsp#" and that will take care of the html file extension at the end, but this doesn't really get me anywhere other than redirecting to a resource that's already publicly available on the server anyway. If I supply something in the request that it doesn't know what to do with, it just returns "null.html", which is empty.
Is there any other way to exploit this?