There is XSS vulnerability in one of the JSP file, where we have used hidden fields. Thus following hidden fields are vulnerable to xss:
<input type="hidden" name="input1" value="<%=dummyInputValue%>"/>
<input type="hidden" name="input2" value="<%=dummyInputValue1%>"/>
where dummyInputValue comes from request object..something like below request.getParameter("dummyInputValue")
I am not sure how to fix this fields to avoid xss vulnerability. Kindly help me on this.
By accessing the following URL (example):
Triggering the XSS requires alt+shift+x (windows) or ctrl+alt+x (max).