1: …… 2: // private static final long serialVersionUID = 1L; 3: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 4: …… 5: } 6: 7: protected void doPost(HttpServletRequest request, HttpServletResponse response) { 8: String pass = request.getParameter("pass"); 9: 10: if (pass != null) { 11: if (-1 != pass.indexOf("<")) 12: System.out.println("bad input"); 13: else { 14: // 패스워드를 힙 메모리에 저장하면 취약하다. 15: String str = new String(pass); 16: } 17: } else { System.out.println("bad input"); } 18: } 19: ……