Skip to main content

Use of a Key Past its Expiration Date

CVE-2024-7318

Severity Medium
Score 4.8/10

Summary

A vulnerability was found in Keycloak versions prior to 24.0.7. Expired OTP codes are still usable when using FreeOTP when the OTP token period is set to 30 seconds (default). Instead of expiring and being deemed unusable around 30 seconds, the tokens are valid for an additional 30 seconds totalling 1 minute. A one-time passcode that is valid longer than its expiration time increases the attack window for malicious actors to abuse the system and compromise accounts. Additionally, it increases the attack surface because at any given time, two OTPs are valid.

  • HIGH
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-324 - Use of a Key Past its Expiration Date

The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.

Advisory Timeline

  • Published