+
OWASP CSRFGuard Test
@@ -17,7 +21,7 @@
org.owasp.csrfguard.CsrfGuardHttpSessionListener
-
+
CSRFGuard
org.owasp.csrfguard.CsrfGuardFilter
@@ -43,14 +47,22 @@
-
- HelloServlet
- HelloServlet
- org.owasp.csrfguard.test.HelloServlet
+ CounterServlet
+ CounterServlet
+ org.owasp.csrfguard.test.CounterServlet
- HelloServlet
- /HelloServlet
+ CounterServlet
+ /counter
+
+
diff --git a/csrfguard-test/csrfguard-test-jsp/src/main/webapp/ajax.html b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/ajax.html
new file mode 100644
index 0000000..b039adb
--- /dev/null
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/ajax.html
@@ -0,0 +1,78 @@
+
+
+
+
+
+ Ajax Header Verification
+
+
+
+ Test Link(s)
+
+
+ Test Form(s)
+
+ Dom Test
+
+
+
\ No newline at end of file
diff --git a/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack1.html b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack1.html
new file mode 100644
index 0000000..7bd7b9f
--- /dev/null
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack1.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack2.html b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack2.html
new file mode 100644
index 0000000..a18becf
--- /dev/null
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/attack2.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/csrfguard-test/csrfguard-test-jsp/src/main/webapp/counter.html b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/counter.html
new file mode 100644
index 0000000..dfc0cc2
--- /dev/null
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/counter.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+ Counter test
+
+
+
+ Get or increment the counter:
+ If the counter can be externally incremented, it signals that there is a vulnerability in the solution.
+
+
+
+
+
+
+
diff --git a/csrfguard-test/src/main/webapp/error.html b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/error.html
similarity index 56%
rename from csrfguard-test/src/main/webapp/error.html
rename to csrfguard-test/csrfguard-test-jsp/src/main/webapp/error.html
index 97acd83..94a5f2a 100644
--- a/csrfguard-test/src/main/webapp/error.html
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/error.html
@@ -1,10 +1,10 @@
-
+
-
-CSRF Attack Detected
+
+ CSRF Attack Detected
CSRF Attack Detected - Home
-
\ No newline at end of file
+
diff --git a/csrfguard-test/csrfguard-test-jsp/src/main/webapp/favicon.ico b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/favicon.ico
new file mode 100644
index 0000000..ab0a666
Binary files /dev/null and b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/favicon.ico differ
diff --git a/csrfguard-test/src/main/webapp/forward.jsp b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/forward.jsp
similarity index 61%
rename from csrfguard-test/src/main/webapp/forward.jsp
rename to csrfguard-test/csrfguard-test-jsp/src/main/webapp/forward.jsp
index 4b656ef..53e63ab 100644
--- a/csrfguard-test/src/main/webapp/forward.jsp
+++ b/csrfguard-test/csrfguard-test-jsp/src/main/webapp/forward.jsp
@@ -1,12 +1,11 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
-
-Forward Test
+
+ Forward Test
-
\ No newline at end of file
+