My application is running struts 1.1 on tomcat 7.0.47. Whenever I request a jsp like this :
http://localhost:8080/myTestPage.jsp?lang=fr
The value lang=fr is automatically stored in cookies . Even if the jsp is not related to an action in the config, and contains only "eclipse jsp's template code".
This is a security issue as there is no controle over this parameter ( you can inject JS ).
How or why this parameter is stored ? This behavior applies only for the lang parameter .
lang
parameter on the page making JS injection a problem? I mean, maybe it's Struts 1 (for which there is zero support because it's old-old), but anything coming from the user should be validated no matter what. In any case, why not just put in a filter? – Pandora