JAVA-053 / Advanced
Using equals for password comparison (timing)
Why is this a problem?
Response time varies with the mismatch position, allowing tokens to be guessed.
How to fix it
java
if (MessageDigest.isEqual(storedToken.getBytes(UTF_8), request.getToken().getBytes(UTF_8))) { ... }