GHSA-277M-9X28-GJQ2
Publisher-authored reset pages can expose Login plugin password-reset credentials
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-277M-9X28-GJQ2 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The Login plugin allows a site page to take precedence over its bundled password-reset page. When a victim opens a reset link, the request's username and reset token are available to the rendering context, and the reset template renders the selected page content. A publisher who controls a page at the reset route can therefore cause the victim's browser to disclose the bearer reset credential.
Affected versions
Static review confirms the issue in grav-plugin-login 3.9.8. The credential-to-template assignment first appears in release 1.2.0. The recommended affected range is 1.2.0 through 3.9.8, with historical exploitability not dynamically tested.
Details
`Login::getPage()` first resolves a site-authored page at the configured route. On reset requests, `onTwigSiteVariables()` places the URI username and token into Twig variables, and the reset form template renders page content. Twig sandbox restrictions do not make ordinary template variables or allowed request access secret. The reset POST accepts the bearer token as the authorization credential.
Impact
A publisher can obtain another user's password-reset token when that user opens the emailed link. Reuse of that bearer credential can reset the victim's password, including for a more privileged account. This crosses the publisher-to-account trust boundary.
Patches
A patched release is not yet available. The fix must prevent user-authored pages and page bodies from rendering on credential-bearing reset requests; the bundled trusted page/template should be used. A POST nonce may be added as defense in depth.
Credits
Reported by @redwolf1919.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
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-277m-9x28-gjq2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
