diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java index 8db5c5b7..00c9bd5c 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java @@ -59,7 +59,7 @@ public AttackResult admin(String userHash) { // if not admin then return 403 var user = userRepository.findByUsername("Jerry"); - var displayUser = new DisplayUser(user, PASSWORD_SALT_ADMIN); + var displayUser = new DisplayUser(user, PASSWORD_SALT_ADMIN); // 使用强 salt 生成 hash if (userHash.equals(displayUser.getUserHash())) { return success(this).feedback("access-control.hash.success").build(); } else {