This commit is contained in:
Nanne Baars 2019-09-20 17:45:33 +02:00
parent c8ef848657
commit 261f947777
2 changed files with 2 additions and 8 deletions

View File

@ -57,8 +57,8 @@ public class Assignment {
} }
public Assignment(String name, String path, List<String> hints) { public Assignment(String name, String path, List<String> hints) {
if (path.equals("")) { if (path.equals("") || path.equals("/") || path.equals("/WebGoat/")) {
System.out.println(name); throw new IllegalStateException("The path of assignment '" + name + "' overrides WebGoat endpoints, please choose a path within the scope of the lesson");
} }
this.name = name; this.name = name;
this.path = path; this.path = path;

View File

@ -47,10 +47,4 @@ public class HttpBasicsInterceptRequest extends AssignmentEndpoint {
return trackProgress(failed().feedback("http-proxies.intercept.failure").build()); return trackProgress(failed().feedback("http-proxies.intercept.failure").build());
} }
} }
@ExceptionHandler(MissingServletRequestParameterException.class)
public AttackResult handleMissingParams() {
return trackProgress(failed().feedback("http-proxies.intercept.failure").build());
}
} }