From 58bc94d1f696aa015e04803edefb1094fdcc7fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Zubcevic?= Date: Wed, 22 Apr 2020 09:54:30 +0200 Subject: [PATCH] fix green buttons --- .../org/owasp/webgoat/GeneralLessonTest.java | 11 ++++ .../main/resources/html/InsecureLogin.html | 12 ++--- .../main/resources/html/PasswordReset.html | 51 ++++++++++--------- .../resources/html/WebWolfIntroduction.html | 41 +++++++-------- 4 files changed, 62 insertions(+), 53 deletions(-) diff --git a/webgoat-integration-tests/src/test/java/org/owasp/webgoat/GeneralLessonTest.java b/webgoat-integration-tests/src/test/java/org/owasp/webgoat/GeneralLessonTest.java index 1723ecc26..1e9fde7d0 100644 --- a/webgoat-integration-tests/src/test/java/org/owasp/webgoat/GeneralLessonTest.java +++ b/webgoat-integration-tests/src/test/java/org/owasp/webgoat/GeneralLessonTest.java @@ -77,6 +77,17 @@ public class GeneralLessonTest extends IntegrationTest { checkAssignment(url("/WebGoat/VulnerableComponents/attack1"), params, true); checkResults("/VulnerableComponents/"); } + + @Test + public void insecureLogin() { + startLesson("InsecureLogin"); + Map params = new HashMap<>(); + params.clear(); + params.put("username", "CaptainJack"); + params.put("password", "BlackPearl"); + checkAssignment(url("/WebGoat/InsecureLogin/task"), params, true); + checkResults("/InsecureLogin/"); + } @Test public void securePasswords() { diff --git a/webgoat-lessons/insecure-login/src/main/resources/html/InsecureLogin.html b/webgoat-lessons/insecure-login/src/main/resources/html/InsecureLogin.html index 72f180de2..7415bf0f1 100755 --- a/webgoat-lessons/insecure-login/src/main/resources/html/InsecureLogin.html +++ b/webgoat-lessons/insecure-login/src/main/resources/html/InsecureLogin.html @@ -14,16 +14,12 @@
- +
- - + action="/WebGoat/InsecureLogin/task"> + +


diff --git a/webgoat-lessons/password-reset/src/main/resources/html/PasswordReset.html b/webgoat-lessons/password-reset/src/main/resources/html/PasswordReset.html index 4eada2545..5df435c24 100644 --- a/webgoat-lessons/password-reset/src/main/resources/html/PasswordReset.html +++ b/webgoat-lessons/password-reset/src/main/resources/html/PasswordReset.html @@ -19,6 +19,32 @@
+ + +
+ +
@@ -52,31 +78,6 @@
- -
- -
diff --git a/webgoat-lessons/webwolf-introduction/src/main/resources/html/WebWolfIntroduction.html b/webgoat-lessons/webwolf-introduction/src/main/resources/html/WebWolfIntroduction.html index 0976b631b..baa87bea7 100644 --- a/webgoat-lessons/webwolf-introduction/src/main/resources/html/WebWolfIntroduction.html +++ b/webgoat-lessons/webwolf-introduction/src/main/resources/html/WebWolfIntroduction.html @@ -14,26 +14,7 @@
-
-
-
-
-
- -
- -
-
-
-
-
-
-
-
+


+ +
+
+
+
+ +
+ +
+
+
+
+
+
+
+