From 84eba1c1f01f58cfc0df9da70752cd783fba7c3e Mon Sep 17 00:00:00 2001 From: Misha Yalavarthy Date: Thu, 16 Nov 2023 13:46:05 -0500 Subject: [PATCH] Create r2c-misha.java --- r2c-misha.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 r2c-misha.java diff --git a/r2c-misha.java b/r2c-misha.java new file mode 100644 index 0000000..e33ed58 --- /dev/null +++ b/r2c-misha.java @@ -0,0 +1,10 @@ + +public class TestLog3 { + private final static Logger log = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); + + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // ruleid: crlf-injection-logs-deepsemgrep + log.info("foo"+request.getParameter("param")); + response.getWriter().append("Served at: ").append(request.getContextPath()); + } +}