llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · getgrav/grav-plugin-login

GHSA-636M-8598-45R9

Two-factor challenge can be skipped for content gated with authenticated() or [authenticated]

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión3.9.7
Exposición71 dDesde la divulgación, 9 sept 2026, 6:59 p. m.
Detección69 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
9 sept 26
18 nov 26
20 nov 26
9 sept 26
27 sept 26
15 oct 26
2 nov 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-636M-8598-45R9 divulgada · CVSS 5.3 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

On a Grav site with two-factor authentication enabled, someone who knows a member's password but does not have that member's authenticator app can read content that page authors hid behind the Login plugin's `authenticated()` Twig function or its `[authenticated]` shortcode.

Details

With 2FA switched on, signing in happens in two steps: the password is accepted first, and the site then pauses to ask for the six-digit code. During that pause the session is marked as having passed the password step but not as having completed the login.

`Login::isAuthenticated()` — the code behind `authenticated()`, `[authenticated]` and `[guest]` — only read the first of those two flags, so a session sitting on the code prompt was treated as fully logged in for the purpose of showing member-only content.

The plugin's own page-access check has required both flags since v3.2.0, and the `authenticated('some.permission')` form of the helper was never affected, because it goes through Grav's `UserObject::authorize()`, which does check for a completed login. Only the no-argument form, `authenticated()`, and the group form, `authenticated(null, 'editors')`, were wrong.

The inverse `[guest]` shortcode was affected in the other direction: guest-only content disappeared as soon as the password was accepted, before the login was finished.

Impact

An attacker who has obtained a member's password — through reuse, phishing or cracking — but who cannot answer that member's second factor could read page content gated with `authenticated()` or `[authenticated]`. For that content, the second factor provided no protection.

The impact is limited to disclosure of that content. The attacker does not obtain a completed session, cannot reach pages protected by an `access:` rule, and cannot act as the user. Pages using `access:` rules, and the `authenticated('permission')` form of the helper, were never affected.

Sites are affected only if they have two-factor authentication enabled and use `authenticated()` or `[authenticated]` to gate content. Sites that do not use those are unaffected.

Affected versions

grav-plugin-login `>= 3.8.7, < 3.9.7`. The helper and the shortcodes were introduced in 3.8.7.

Patches

Fixed in grav-plugin-login 3.9.7. `isAuthenticated()` now requires a completed login before any of its checks pass, matching the test the plugin's page-access guard already used.

Workarounds

Until you can update, use a page-level `access:` rule instead of `[authenticated]`, which was never affected.

Credits

Reported independently by @geoffrey-diederichs and @AlpetGexha. @geoffrey-diederichs supplied a complete, runnable proof of concept that also verified the fix.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
getgrav/grav-plugin-login≥ 3.8.7 < 3.9.7
3.8.7
3.9.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistgetgrav/grav-plugin-login
Corregida 3.9.7 — —
Versiones corregidas3.9.7
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/getgrav/grav/security/advisories/GHSA-636m-8598-45r9

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.