Reported by dwpoon, Yesterday (17 hours ago)
I would like to submit the attached patch to avoid hard-coding "/WebGoat" as the webapp's context path, at least for the HTTP splitting lesson. This issue has also been reported in July 2007; see https://lists.owasp.org/pipermail/owasp-webgoat/2007-July/000432.html Also see Issue 15 http://code.google.com/p/webgoat/issues/detail?id=15 git-svn-id: http://webgoat.googlecode.com/svn/trunk@366 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
@ -7,10 +7,10 @@
|
||||
<title>HTTP Splitting</title>
|
||||
</head>
|
||||
<body>
|
||||
<% response.sendRedirect("/WebGoat/attack?" +
|
||||
"Screen=" + request.getParameter("Screen") +
|
||||
"&menu=" + request.getParameter("menu") +
|
||||
"&fromRedirect=yes&language=" + request.getParameter("language"));
|
||||
<% response.sendRedirect(request.getContextPath() + "/attack?" +
|
||||
"Screen=" + request.getParameter("Screen") +
|
||||
"&menu=" + request.getParameter("menu") +
|
||||
"&fromRedirect=yes&language=" + request.getParameter("language"));
|
||||
%>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user