GHSA-FV5G-M3G7-CJW5
Broken admin check (egw_info['apps'] vs ['user']['apps']) lets non-admin write forced/group home-dashboard preferences
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-FV5G-M3G7-CJW5 divulgada · CVSS 5.4 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
## Summary
`home_ui::ajax_set_default` gates its "admins only" path on `$GLOBALS['egw_info']['apps']['admin']`, which is the INSTALLED-apps list (truthy for every user on any instance with the admin app installed), not the GRANTED-rights flag `$GLOBALS['egw_info']['user']['apps']['admin']`. The guard therefore never fires for non-admins, and with a request-controlled `$group` a non-admin can write forced/group/default home-dashboard preferences for all users or any group.
## Root Cause
- `home/inc/class.home_ui.inc.php:669` — `if(!$GLOBALS['egw_info']['apps']['admin']) return;`. `egw_info['apps']` is the installed-apps list (`Applications.php:111 read_installed_apps`, instance-wide, truthy for all); granted rights live in `egw_info['user']['apps']` (intersected at `Session.php:1448`).
- With `$group` request-controlled (numeric gid or `'forced'`): `new Api\Preferences($group)` → `add`/`delete` → `save_repository`.
## Impact
A non-admin sets forced/default/group dashboard portlets (with stored attributes) for all users or any group → persistent cross-user UI poisoning (stored-content vector). Bounded to home-dashboard portlet preferences for this sink. Integrity-low / availability-low.
## Proof of Concept
`json.php?menuaction=home.home_ui.ajax_set_default` with params `["add", ["<portletid>"], "forced"]`.
## Attack Chain
1. Entry: POST `home.home_ui.ajax_set_default` params `["add", ["<portletid>"], "forced"]`. Guard: `!$GLOBALS['egw_info']['apps']['admin']` (home_ui:669). Bypass proof: `apps` is the installed list → truthy for all → guard never returns.
2. Sink: `new Api\Preferences('forced')` → `add('home',$id,$settings,'forced')` → `save_repository()`. Guard: none. Bypass proof: `$group` used directly from the request.
3. Impact: non-admin sets forced/default/group dashboard portlets for all users/any group.
## Bypass Evidence
Confirmed inline: `egw_info['apps']` (Applications.php:111, installed) vs `egw_info['user']['apps']` (Session.php:1448, granted); home_ui:669 reads the wrong one. Code present on HEAD.
## Affected Versions
`<= 26.7.20260710.3`.
## Suggested Fix
Check `$GLOBALS['egw_info']['user']['apps']['admin']` (granted rights) for the admin gate, and validate/authorize the `$group` argument before writing forced/group preferences. A codebase sweep for other uses of `egw_info['apps'][...]` as an authorization check is recommended.
---
Reported by zx (Jace) — GitHub: @manus-use
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistegroupware/egroupware |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/EGroupware/egroupware/security/advisories/GHSA-fv5g-m3g7-cjw5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
