CVE-2026-78619
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
25/08/2026
Última modificación:
25/08/2026
Descripción
*** Pendiente de traducción *** Punk::Plugin::TOTP versions before 0.05 for Perl accept another account&#39;s recovery code at the two-factor challenge because totp_use_recovery compares user identifiers numerically.<br />
<br />
The helper searches the recovery model for the submitted code&#39;s digest alone, across every user&#39;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&#39;s user_id with the challenged user&#39;s id through Perl&#39;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.<br />
<br />
The challenge route feeds a submitted value to the helper once TOTP verification fails, so an attacker who knows a victim&#39;s password and holds a recovery code of their own passes the victim&#39;s second factor.
Impacto
Referencias a soluciones, herramientas e información
- https://metacpan.org/release/LNATION/Punk-TOTP-0.04/source/include/ptotp/ptotp_plugin.h#L801-827
- https://metacpan.org/release/LNATION/Punk-TOTP-0.04/view/lib/Punk/Plugin/TOTP.pm
- https://metacpan.org/release/LNATION/Punk-TOTP-0.05/source/Changes
- http://www.openwall.com/lists/oss-security/2026/08/25/6



