GHSA-M2RQ-76VX-VV4J
Scalar API access grants can elevate delegated user managers to super-admin
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-M2RQ-76VX-VV4J divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
grav-plugin-api uses different permission semantics when validating an access-map update and when authorizing super-only endpoints. The update guard rejects explicit `admin.super` and `api.super` keys, but does not reject positive scalar parent grants. The shared permission resolver walks parent keys, so a stored positive `admin` or `api` parent can satisfy a later super permission check.
Affected versions
Static review confirms the issue in versions 1.0.0 through 1.0.35. A patched release is not yet available.
Details
A non-super principal with `api.users.write` may edit an account's access map. `accessGrantsSuper()` detects nested and dot-key super flags, while `PermissionResolver::resolve()` intentionally supports parent-key inheritance for ordinary permissions. `requireSuper()` currently reaches the inherited resolver even though `resolveExact()` documents that super permissions must be explicit. Invitation sanitization has the same scalar-parent ambiguity.
Impact
A delegated user manager can grant an account authority accepted by super-only API endpoints, crossing from its assigned role into super-admin-equivalent access. Downstream impact depends on the enabled API endpoints and site configuration.
Patches
A patched release is not yet available. The fix will make super authorization exact at the shared chokepoint and reject or normalize ambiguous scalar parent grants at user and invitation write boundaries. Operators should also review existing account and invitation records for scalar `admin` or `api` grants.
Credits
Reported by @redwolf1919.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistgetgrav/grav-plugin-api |
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-m2rq-76vx-vv4jLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
