clean up and update js

This commit is contained in:
René Zubcevic
2020-04-07 20:17:20 +02:00
committed by Nanne Baars
parent c4ae9ae2ab
commit e25f7a7560
28 changed files with 112 additions and 10057 deletions

View File

@ -61,6 +61,22 @@ public class GeneralLessonTest extends IntegrationTest {
checkResults("/cia/");
}
@Test
public void vulnerableComponents() {
String solution = "<contact>\n" +
" <java.lang.Integer>1</java.lang.Integer>\n" +
" <firstName>Bruce</firstName>\n" +
" <lastName>Mayhew</lastName>\n" +
" <email>webgoat@owasp.org</email>\n" +
"</contact>";
startLesson("VulnerableComponents");
Map<String, Object> params = new HashMap<>();
params.clear();
params.put("payload", solution);
checkAssignment(url("/WebGoat/VulnerableComponents/attack1"), params, true);
checkResults("/VulnerableComponents/");
}
@Test
public void securePasswords() {