HTTP Splitting attack while accessing ".jsp" in Coldfusion 10 server. How to remediate?
When I send a request similar to this. https://localhost/notexsistent.jsp. The response headers sent is:-
HTTP/1.1 404 /notexsistent.jsp
Date: Thu, 03 May 2018 08:52:13 GMT
Server: Apache
Cache-Control: public
Expires: Thu, 03 May 2018 08:52:13 GMT
Content-Type: text/plain; charset=UTF-8
The unresolved path appended after status code 404 is creating HTTP Splitting attack vector.
A request like this https://localhost/ss/%0Asomevalue:somevalue/notexsistent.jsp
response is:-
HTTP/1.1 404 /ss/
somevalue:somevalue/aaa.jsp
Date: Thu, 03 May 2018 08:57:25 GMT
Server: Apache
Cache-Control: public
Expires: Thu, 03 May 2018 08:57:25 GMT
Content-Type: text/plain; charset=UTF-8
Thus injecting into response header. I am stuck as i am unaware of internal workings of Coldfusion.
