Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity (keycloak-core)

CVE-2024-7318
MEDIUM 4.8

En bref

Source
NVD
EPSS
EPSS 0.39 % · centile 34 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
redhat
Statut NVD
Analyzed

Description

A vulnerability was found in Keycloak. Expired OTP codes are still usable when using FreeOTP when the OTP token period is set to 30 seconds (default). Instead of expiring and deemed unusable around 30 seconds in, the tokens are valid for an additional 30 seconds totaling 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.

Faiblesses (CWE)

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

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Nredhat
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NNVD · nvd@nist.gov (Primary)

Avis

Références européennes

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
keycloak-coreaffected 0 < 24.0.7 ; affected 25.0.0 < 25.0.4
Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat build of Keycloak 24unaffected 24.0.7-4 < *
Red Hat · Red Hat build of Keycloak 24unaffected 24-16 < *
Red Hat · Red Hat build of Keycloak 24unaffected 24-16 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD