Update java/ql/src/Security/CWE/CWE-079/XSS.java

This commit is contained in:
Tony Torralba
2022-09-13 16:49:20 +02:00
committed by GitHub
parent 2b027709e4
commit ac46a38b9d

View File

@@ -3,7 +3,7 @@ public class XSS extends HttpServlet {
throws ServletException, IOException {
// BAD: a request parameter is written directly to the Servlet response stream
response.getWriter().print(
"The page \"" + request.getParameter("page") + "\" was not found."); // $xss
"The page \"" + request.getParameter("page") + "\" was not found.");
}
}