GHSA-CCPQ-MW3M-WWG2
Broken access control: a non-admin can move/publish entries into sections they cannot edit
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-CCPQ-MW3M-WWG2 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The control panel inline-edit endpoint `element-indexes/save-elements` authorizes the current user against each element with `canSave()` before it applies client-supplied attributes, then mass-assigns those attributes - including `sectionId` and `typeId` - and saves the element with no second authorization check.
Because `Entry::canSave()` derives the relevant permission (`saveEntries:<sectionUid>`) from the entry’s current `sectionId`, the pre-mutation check only proves the user may edit the entry in its original section. After `sectionId` is overwritten with a different section, the entry is saved without ever checking that the user may write to the destination section.
A control panel user who can edit entries in Section A but has no permissions on Section B can therefore relocate (and, by first duplicating their own entry, effectively publish) entries into Section B. Craft’s own dedicated endpoint for this operation, `entries/move-to-section`, correctly enforces `requirePermission("saveEntries:<targetSection>")` and rejects the same action - which is what makes this an authorization gap rather than intended behavior.
Impact
A control panel user limited to one section can place or relocate content into sections they have no write permission for - a horizontal/vertical privilege escalation across Craft’s section-permission boundary.
Practical consequences:
- Content-integrity violation: arbitrary entries (title and the destination section’s fields, set in the same request) injected into sections the actor must not control.
- Where the destination section carries elevated trust (a Single used for the homepage, a navigation/structure section, globally rendered blocks), this becomes a stored-content vector affecting all site visitors and other editors.
- Combined with the actor’s own duplicate rights in their permitted section, it is effectively “publish arbitrary entries into any section.”
No authentication bypass is required beyond a legitimate low-privilege Control Panel account (the normal author/editor role Craft is designed to delegate safely).
Report ID: 1501
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.10.11 | — | — |
5.10.11Arsenal 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-ccpq-mw3m-wwg2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
