We're using fortify to scan java source code & it is complaining below error:
Method abc() sends unvalidated data to a web browser on line 200, which can result in the browser executing malicious code.
We've below code on line 200:
<a href="<%= Util.getProduct(request) %>">Product</a>
And Util.java hsa below code in getProduct method:
String prod = request.getParameter("prod");
Can any one tell me how to fix this XSS vulnerability?
Thanks!