Add JavaScript to assignment otherwise you will not be able to see the flow of the endpoint

This commit is contained in:
Nanne Baars 2019-11-12 08:02:07 +01:00 committed by Nanne Baars
parent 1d477bd0e8
commit ba74898441
3 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class JWTRefreshEndpoint extends AssignmentEndpoint {
String user = (String) json.get("user");
String password = (String) json.get("password");
if ("Jerry".equals(user) && PASSWORD.equals(password)) {
if ("Jerry".equalsIgnoreCase(user) && PASSWORD.equals(password)) {
return ok(createNewTokens(user));
}
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();

View File

@ -122,6 +122,7 @@ $(document).ready(
<link rel="stylesheet" type="text/css" th:href="@{/lesson_css/jwt.css}"/>
<script th:src="@{/lesson_js/bootstrap.min.js}" language="JavaScript"></script>
<script th:src="@{/lesson_js/jwt-buy.js}" language="JavaScript"></script>
<script th:src="@{/lesson_js/jwt-refresh.js}" language="JavaScript"></script>
<div class="attack-container">
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
<form class="attack-form" accept-charset="UNKNOWN"

View File

@ -1,3 +1,6 @@
https://github.com/WebGoat/WebGoat/wiki/(Almost)-Fully-Documented-Solution-(en)
### SQLi ###
Basic