2.3low
grav-plugin-login < 3.8.11 CSRF via regenerate2FASecret
- Severity
- 2.3low CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
grav-plugin-login before 3.8.11 contains a cross-site request forgery (CSRF) vulnerability in the login.regenerate2FASecret frontend task, which regenerates and persists a new TOTP secret for the authenticated session user without any anti-CSRF nonce or Origin/Referer check. Because Grav core dispatches the task from the GET 'task:' URI parameter and the default session cookie is SameSite=Lax, an attacker can lure a logged-in victim to an off-site page that performs a top-level GET navigation, rotating the victim's TOTP secret so their enrolled authenticator no longer matches the server, effectively forcing 2FA re-enrollment. Sites configured with session.samesite: Strict are not affected.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav | before 3.8.11 Not affected: 3.8.11 | CVE List |
All scores
| VulnCheck | 2.3low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
grav-plugin-login before 3.8.11 contains a cross-site request forgery (CSRF) vulnerability in the login.regenerate2FASecret frontend task, which regenerates and persists a new TOTP secret for the authenticated session user without any anti-CSRF nonce or Origin/Referer check. Because Grav core dispatches the task from the GET 'task:' URI parameter and the default session cookie is SameSite=Lax, an attacker can lure a logged-in victim to an off-site page that performs a top-level GET navigation, rotating the victim's TOTP secret so their enrolled authenticator no longer matches the server, effectively forcing 2FA re-enrollment. Sites configured with session.samesite: Strict are not affected.
NVD (es)
El grav-plugin-login anterior a la 3.8.11 contiene una vulnerabilidad de falsificación de petición en sitios cruzados (CSRF) en la tarea frontend login.regenerate2FASecret, que regenera y persiste un nuevo secreto TOTP para el usuario de la sesión autenticada sin ningún nonce anti-CSRF o verificación de Origin/Referer. Debido a que el núcleo de Grav despacha la tarea desde el parámetro URI GET ’task:’ y la cookie de sesión predeterminada es SameSite=Lax, un atacante puede atraer a una víctima que ha iniciado sesión a una página externa que realiza una navegación GET de nivel superior, rotando el secreto TOTP de la víctima de modo que su autenticador registrado ya no coincide con el servidor, forzando efectivamente la reinscripción de 2FA. Los sitios configurados con session.samesite: Strict no se ven afectados.
References
| https://github.com/getgrav/grav/security/advisories/GHSA-4px8-7p53-282r | exploit, vendor-advisory | |
| https://www.vulncheck.com/advisories/grav-plugin-login-csrf-via-regenerate2fasecret | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62236 changed 2026-07-17 | CVE Terms of Use |
| NVD | CVE-2026-62236 changed 2026-10-24 | Public domain |