GHSA-423V-8X3H-GXR3
Missing CSRF protection on the safe mode toggle allows changing the global safe mode setting
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-423V-8X3H-GXR3 divulgada · CVSS 5.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Root cause
The backend switches the safe mode via the `safemode` request parameter (`index.php?safemode=1` / `safemode=0`). The parameter was processed for every logged-in administrator without validating a CSRF token.
Since the action is triggered by a plain GET request, it also works for cross-site top-level navigations with the default `SameSite=Lax` session cookie.
Impact
An attacker who gets a logged-in administrator to open a prepared link or page can:
- deactivate the safe mode (`safemode=0`). If the safe mode was enabled globally via `safe_mode: true` in `config.yml`, this also writes `safe_mode: false` to the config file. Administrators typically enable the global safe mode on purpose, e.g. to contain a broken or misbehaving addon, and the attacker can silently revert that.
- activate the safe mode (`safemode=1`) for the administrator's session, which disables all addons except the setup addons (`backup`, `be_style`, `install`) in the backend for that session, until the administrator deactivates it again. The frontend is not affected.
Confidentiality is not affected, and the attacker gains no privileges.
Preconditions: the victim has to be logged in as administrator, and the installation must not be in live mode (in live mode the safe mode can't be toggled at all).
Fix
Fixed in 5.21.5: the `safemode` parameter is only processed with a valid CSRF token, for activating as well as for deactivating. The links in the backend (system settings, deactivation button, "activate safe mode" link on the error page) include the token.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistredaxo/source |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/redaxo/core/security/advisories/GHSA-423v-8x3h-gxr3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
