CVE-2026-78619
Publiée le 2026-08-25 · Dernière modification le 2026-08-26
Les systèmes utilisant le module Perl `Punk::Plugin::TOTP` pour l'authentification à deux facteurs sont affectés par une erreur de logique dans la manière dont les codes de récupération sont vérifiés. Un attaquant connaissant déjà le mot de passe d'une victime peut contourner l'exigence de l'authentification 2FA en fournissant l'un de ses propres codes de récupération valides. Cette exploitation est facile à exécuter via le réseau et ne nécessite aucun privilège particulier ni interaction de l'utilisateur, hormis la possession d'un compte valide sur le même système.
DÉTAIL DU VECTEUR CVSS
RÉFÉRENCES
Description officielle du NVD (en anglais)
Punk::Plugin::TOTP versions before 0.05 for Perl accept another account's recovery code at the two-factor challenge because totp_use_recovery compares user identifiers numerically. The helper searches the recovery model for the submitted code's digest alone, across every user's rows, so the ownership test that follows is the only thing binding a code to the account it was issued to. That test compares the row's user_id with the challenged user's id through Perl's integer coercion, and an identifier with no leading digits coerces to zero, so any two of them compare equal. User models keyed on a username, an email address or a UUID hit that case, and a numeric key compares as intended. The challenge route feeds a submitted value to the helper once TOTP verification fails, so an attacker who knows a victim's password and holds a recovery code of their own passes the victim's second factor.