What is wrong in the below code? public void doPost(HttpServletRequest req, HttpServletResponse res) { try { String language = req.getParameter("language"); res.sendRedirect("/doc/"+language+”/index.html”); } catch (Exception e) { } }
Request Redirection is vulnerable and not a good practice
Exception is not logged
Input parameter “language” is not validated
Option 1 AND Option 2
Option 1 AND Option 3
Option 2 AND Option 3