GHSA-CMG5-QW8P-GXCF
Remember-me restoration can bypass Login plugin two-factor authentication
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-CMG5-QW8P-GXCF divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
When front-end 2FA is enabled, the Login plugin can create a remember-me cookie after the password step while the login is still waiting for the second factor. The cookie restoration path does not enable the 2FA authorization check, so the restored identity can become fully authorized without completing the challenge.
Affected versions
Static review confirms the issue in grav-plugin-login 3.9.8. The affected behavior begins with the 2FA implementation released in 2.7.0. Versions 2.7.0 through 3.9.8 should be treated as affected pending release testing.
Details
Delayed 2FA authorization is considered a successful login event so that the challenge can continue. The remember-me event handler creates a cookie without checking whether that success is delayed. Later, session initialization invokes the remember-me login path without the `twofa` option; the authorization handler only delays the restored login when that option is present.
Impact
An attacker who knows the password of an account protected by front-end 2FA can obtain a persistent cookie before satisfying the second factor and restore it as a fully authorized session. This defeats the account's second-factor boundary.
Patches
A patched release is not yet available. The planned fix defers remember-me issuance until full authorization and requires the 2FA decision during cookie restoration.
Credits
Reported by @redwolf1919.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistgetgrav/grav-plugin-login |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/getgrav/grav/security/advisories/GHSA-cmg5-qw8p-gxcfLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
