GHSA-6WJJ-2G3X-78G8
API PUT permission template guard lets user_edit_templ_perm holders assign the Administrator template
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-6WJJ-2G3X-78G8 divulgada · CVSS 8.8 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The REST API user update endpoints (`PUT /api/v1/users/{id}` and `PUT /api/v2/users/{id}`) check permission-template changes through `PermissionTemplateAssignmentGuard`, but the guard accepts any caller holding `user_edit_templ_perm`, whatever the template contains. A delegated non-superuser with that permission can assign the built-in Administrator template (id 1, which carries `user_is_ueberuser`) to an account they can edit, including their own, and become a superuser.
Root Cause
// lib/Domain/Service/PermissionTemplateAssignmentGuard.php:55-59
$canAssignTemplate = $permissionService->userHasPermission($callerId, 'user_is_ueberuser')
|| $permissionService->userHasPermission($callerId, 'user_edit_templ_perm');
if ($canAssignTemplate) {
return null; // any perm_templ accepted, including Administrator
}The guard only checks who the caller is, never what the template grants, so `user_edit_templ_perm` is enough to hand out superuser.
Affected Versions
The guard first shipped in 4.2.4, 4.3.3 and 4.4.0. On earlier versions the same PUT path had no guard at all, which is GHSA-h4hf-v6w5-897x (CVE-2026-75591).
Impact
An authenticated non-administrator with `user_edit_templ_perm` and an API key escalates to full superuser with one request, and from there controls every user, zone, record and setting.
Fix
The guard now rejects assigning a template that grants `user_is_ueberuser` unless the caller is already a superuser, and checks the caller's authority over the target account.
Split from GHSA-8g9p-fhx7-xg57, which originally covered this together with the PATCH self-assignment path.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistpoweradmin/poweradmin |
Corregida | 4.2.6, 4.3.5, 4.4.1 | — | — |
4.2.64.3.54.4.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/poweradmin/poweradmin/security/advisories/GHSA-6wjj-2g3x-78g8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
