GHSA-4WFW-Q5W3-JH42
"app/switch-to-licensed-edition" has no authorization check
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4WFW-Q5W3-JH42 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
`AppController::actionSwitchToLicensedEdition()` changes the installed Craft edition and writes that change into project config. It requires only that the caller be logged in.
It has:
- no `requireAdmin()` unlike its siblings `actionTryEdition()` (line 494), `actionGetPluginLicenseInfo()` (line 547) and `actionUpdatePluginLicense()`,
- no `requirePermission()`,
- no `requireCpRequest()`, so it is reachable from the front-end action route,
- no covering `behaviors()` filter `AppController::behaviors()` installs `UtilityAccess` only for `check-for-updates` and `cache-updates`.
The result: any authenticated user, including a front-end member with zero permissions and no control panel access, can permanently downgrade the site’s edition.
This is the endpoint behind Craft’s own admin-facing "Wrong edition → Switch to <edition>" banner. The UI is admin-only; the endpoint backing it is not.
Precondition
The write only happens when `Craft::$app->getHasWrongEdition()` is true:
public function getHasWrongEdition(): bool
{
$licensedEdition = $this->getLicensedEdition();
return (
$licensedEdition !== null &&
$licensedEdition !== $this->edition &&
!$this->getCanTestEditions()
);
}Impact
The change is persistent, propagating, not reversible from the control panel.
So, a zero-permission user inflicts a state that a full administrator cannot reverse from the control panel. Recovery requires out-of-band action, correcting the license, or editing project config and redeploying.
The attack is not CSRF-able against an admin (Craft enforces the CSRF token, and the attacker uses their own session), so this is authenticated privilege escalation, not CSRF.
Report ID: 1655
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.10.14 | — | — |
5.10.14Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-4wfw-q5w3-jh42Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
