keycloak-api-key
keycloak-api-key copied to clipboard
Key Lookup Vulnerable to Timing Attacks
Right here: https://github.com/alefcarlos/keycloak-api-key/blob/0.1.13/api-key-module/src/main/java/com/gwidgets/resources/ApiKeyResource.java#L33
Each additional correct character in the prefix of a guess will make the response take an increment longer. It's best to treat some prefix of the key as a selector that can be indexed, but the remainder should be treated as a password. As a stop-gap, it will help if you select based off of a prefix and then use a constant-time string comparison function to check the suffix.