From 617d16d8a7c7a0914e45c659927c939133dbf616 Mon Sep 17 00:00:00 2001 From: lawson89 Date: Thu, 29 May 2014 18:43:40 -0400 Subject: [PATCH] migrate from container managed authentication to spring security updated spring and spring security versions --- .gitignore | 2 + pom.xml | 2 +- webapp/META-INF/context.xml | 2 + webapp/WEB-INF/mvc-dispatcher-servlet.xml | 98 +-- webapp/WEB-INF/spring-security.xml | 71 +- webapp/WEB-INF/web.xml | 804 +++++++++++----------- 6 files changed, 501 insertions(+), 478 deletions(-) create mode 100644 .gitignore create mode 100644 webapp/META-INF/context.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..d944cc49c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/nb-configuration.xml +/nbactions.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9a8ead4c36..f726b45da6 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ 3.2.4.RELEASE - 3.1.2.RELEASE + 3.2.4.RELEASE 2.2.2 diff --git a/webapp/META-INF/context.xml b/webapp/META-INF/context.xml new file mode 100644 index 0000000000..5bee3dc30f --- /dev/null +++ b/webapp/META-INF/context.xml @@ -0,0 +1,2 @@ + + diff --git a/webapp/WEB-INF/mvc-dispatcher-servlet.xml b/webapp/WEB-INF/mvc-dispatcher-servlet.xml index e39db65274..d9483ac241 100644 --- a/webapp/WEB-INF/mvc-dispatcher-servlet.xml +++ b/webapp/WEB-INF/mvc-dispatcher-servlet.xml @@ -1,50 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/webapp/WEB-INF/spring-security.xml b/webapp/WEB-INF/spring-security.xml index a7a0082e47..98003eafcf 100644 --- a/webapp/WEB-INF/spring-security.xml +++ b/webapp/WEB-INF/spring-security.xml @@ -1,28 +1,45 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/webapp/WEB-INF/web.xml b/webapp/WEB-INF/web.xml index 1490812cca..209cf9db0c 100644 --- a/webapp/WEB-INF/web.xml +++ b/webapp/WEB-INF/web.xml @@ -1,401 +1,403 @@ - - - - - WebGoat - - This web application is designed to demonstrate web - application security flaws for the purpose of educating - developers and security professionals about web - application security problems. Please contact Bruce Mayhew - (webgoat@owasp.org) if you have any questions. - - - - - - - - email - WebGoat@owasp.org - - The EMAIL address of the administrator to whom questions - and comments about this application should be addressed. - - - - - - contextConfigLocation - - /WEB-INF/mvc-dispatcher-servlet.xml, - /WEB-INF/spring-security.xml - - - - - - - - AxisServlet - Apache-Axis Servlet - - org.apache.axis.transport.http.AxisServlet - - - - - AdminServlet - Axis Admin Servlet - - org.apache.axis.transport.http.AdminServlet - - 100 - - - - SOAPMonitorService - SOAPMonitorService - - org.apache.axis.monitor.SOAPMonitorService - - - SOAPMonitorPort - 5001 - - 100 - - - - WebGoat - - This servlet plays the "controller" role in the MVC architecture - used in this application. - - The initialization parameter namess for this servlet are the - "servlet path" that will be received by this servlet (after the - filename extension is removed). The corresponding value is the - name of the action class that will be used to process this request. - - org.owasp.webgoat.HammerHead - - - email - WebGoat@owasp.org - - The EMAIL address of the administrator to whom questions - and comments about this application should be addressed. - - - - - debug - false - - - - CookieDebug - true - - - - DefuseOSCommands - false - - - - Enterprise - true - - - - CodingExercises - true - - - - - - - FeedbackAddress - - <A HREF=mailto:webgoat@owasp.org>webgoat@owasp.org</A> - - - - - DatabaseDriver - - org.hsqldb.jdbcDriver - - - - - DatabaseConnectionString - - - jdbc:hsqldb:mem:${USER} - - - - - - 5 - - - - - - LessonSource - - This servlet returns the Java source of the current lesson. - - org.owasp.webgoat.LessonSource - - - - Catcher - - This servlet catches any posts and marks the appropriate lesson property. - - org.owasp.webgoat.Catcher - - - - conf - /lessons/ConfManagement/config.jsp - - - - - - mvc-dispatcher - org.springframework.web.servlet.DispatcherServlet - 1 - - - - mvc-dispatcher - *.do - - - - - org.springframework.web.context.ContextLoaderListener - - - - - - - springSecurityFilterChain - org.springframework.web.filter.DelegatingFilterProxy - - - - springSecurityFilterChain - /* - - - - - - - - - - - AxisServlet - /servlet/AxisServlet - - - - AxisServlet - *.jws - - - - AxisServlet - /services/* - - - - SOAPMonitorService - /SOAPMonitor - - - - - - - WebGoat - /attack - - - - LessonSource - /source - - - - Catcher - /catcher - - - - conf - /conf - - - - - - - - - 2880 - - - - wmv - video/x-ms-wmv - - - - - - Link to the UserDatabase instance from which we request lists of - defined role names. Typically, this will be connected to the global - user database with a ResourceLink element in server.xml or the context - configuration file for the Manager web application. - - users - - org.apache.catalina.UserDatabase - - - - - - - - WebGoat Application - /* - - - webgoat_user - webgoat_admin - webgoat_challenge - - - - - - WebGoat Application Source - /JavaSource/* - - - server_admin - - - - - - - BASIC - WebGoat Application - - - - - The role that is required to administrate WebGoat - webgoat_admin - - - - The role that is required to start the challenge log viewer - webgoat_challenge - - - - The role that is required to use WebGoat - webgoat_user - - - - This role is for admins only - server_admin - - - - + + + + + WebGoat + + This web application is designed to demonstrate web + application security flaws for the purpose of educating + developers and security professionals about web + application security problems. Please contact Bruce Mayhew + (webgoat@owasp.org) if you have any questions. + + + + + + + + email + WebGoat@owasp.org + + The EMAIL address of the administrator to whom questions + and comments about this application should be addressed. + + + + + + contextConfigLocation + + /WEB-INF/mvc-dispatcher-servlet.xml, + /WEB-INF/spring-security.xml + + + + + + + + AxisServlet + Apache-Axis Servlet + + org.apache.axis.transport.http.AxisServlet + + + + + AdminServlet + Axis Admin Servlet + + org.apache.axis.transport.http.AdminServlet + + 100 + + + + SOAPMonitorService + SOAPMonitorService + + org.apache.axis.monitor.SOAPMonitorService + + + SOAPMonitorPort + 5001 + + 100 + + + + WebGoat + + This servlet plays the "controller" role in the MVC architecture + used in this application. + + The initialization parameter namess for this servlet are the + "servlet path" that will be received by this servlet (after the + filename extension is removed). The corresponding value is the + name of the action class that will be used to process this request. + + org.owasp.webgoat.HammerHead + + + email + WebGoat@owasp.org + + The EMAIL address of the administrator to whom questions + and comments about this application should be addressed. + + + + + debug + false + + + + CookieDebug + true + + + + DefuseOSCommands + false + + + + Enterprise + true + + + + CodingExercises + true + + + + + + + FeedbackAddress + + <A HREF=mailto:webgoat@owasp.org>webgoat@owasp.org</A> + + + + + DatabaseDriver + + org.hsqldb.jdbcDriver + + + + + DatabaseConnectionString + + + jdbc:hsqldb:mem:${USER} + + + + + + 5 + + + + + + LessonSource + + This servlet returns the Java source of the current lesson. + + org.owasp.webgoat.LessonSource + + + + Catcher + + This servlet catches any posts and marks the appropriate lesson property. + + org.owasp.webgoat.Catcher + + + + conf + /lessons/ConfManagement/config.jsp + + + + + + mvc-dispatcher + org.springframework.web.servlet.DispatcherServlet + 1 + + + + mvc-dispatcher + *.do + + + + + org.springframework.web.context.ContextLoaderListener + + + + + + + springSecurityFilterChain + org.springframework.web.filter.DelegatingFilterProxy + + + + springSecurityFilterChain + /* + + + + + + + + + + + AxisServlet + /servlet/AxisServlet + + + + AxisServlet + *.jws + + + + AxisServlet + /services/* + + + + SOAPMonitorService + /SOAPMonitor + + + + + AdminServlet + /servlet/AdminServlet + + + + WebGoat + /attack + + + + LessonSource + /source + + + + Catcher + /catcher + + + + conf + /conf + + + + + + + + + 2880 + + + + wmv + video/x-ms-wmv + + + + + + + + + + + + + +