GHSA-6FP2-8J9W-7MJ8
Broken Access Control: View-Only User Can Reorder Another Author's Matrix/Address Nested Elements
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-6FP2-8J9W-7MJ8 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft’s Pro/Team edition supports a standard “reviewer” permission split, where a user can be granted `viewPeerEntries` (see other authors’ content) without `savePeerEntries` (edit it).
However, simply *viewing* another author’s entry in read-only mode still causes Craft to unconditionally grant that viewer’s session a “manage nested elements” authorization flag for any Matrix/Address field on the entry — a flag intended only to permit legitimate editing.
The dedicated reorder endpoint for nested elements trusts this session flag alone and, unlike its sibling delete endpoint, never rechecks the caller’s actual save permission against the element before writing a new sort order to the database. The net effect: a user explicitly denied save access can still perform a real write operation — reordering another author’s Matrix blocks or Addresses — merely by having viewed the page, with every parameter needed for the forged request conveniently present in that same page’s source.
Attack
A user with `viewEntries` + `viewPeerEntries` on a section, but without `savePeerEntries,` opens another author’s entry (read-only view). Simply loading that page grants the attacker’s session `manageNestedElements::<ownerId>::field:<matrixHandle>` authorization. The attacker then POSTs directly to `actions/nested-elements/reorder` with the `ownerElementType`/`ownerId`/`ownerSiteId`/`attribute`/`elementIds`/`offset` parameters visible in that same page’s source, successfully rewriting the sort order of the Matrix/Address sub-elements belonging to content they explicitly lack save permission on.
Impact
A user deliberately granted view-only (not save) access to another author’s content can still perform a real, unauthorized *write* operation against that content’s nested sub-elements:
Report ID: 1616
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.10.13 | — | — |
5.10.13Arsenal 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-6fp2-8j9w-7mj8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
