GHSA-575M-76VR-VWQG
Cross-site scripting (XSS) via user names in the `users` field preview
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-575M-76VR-VWQG divulgada · CVSS 7.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Users who can change user names can store JavaScript in a name that runs in the Panel for anyone who views that user in a table.
You're affected if
- Kirby 5.0.0–5.6.3
- Users you do not fully trust can change user names (`user.changeName` or `users.changeName` permission, both enabled by default)
- A blueprint shows a `users` field in a table: inside a `structure` or `object` field, or as a column of a `pages` or `files` section with `layout: table`
Potential damage
- Can run JavaScript in the Panel of anyone who views such a table, including administrators
- Can then act with that person's permissions, e.g. an admin's
- Cannot gain higher permissions unless such a user views the table
- Cannot run JavaScript through a `users` field in a regular form
- Cannot affect site visitors, unless a template outputs user names without escaping them
Patches
- Fixed in Kirby 5.6.4
- User names are now escaped in the `users` field preview.
- HTML tags are now stripped from user names when they are changed.
- Names changed before the update keep their HTML in `site/accounts`. Such a name may mean your site was targeted.
Workarounds
- Only let fully trusted users change user names (`user.changeName` and `users.changeName` permissions).
- Remove `users` fields from `structure` and `object` fields and from `pages` and `files` section columns.
- Check `site/accounts` for user names that contain HTML.
Credits
Thanks to @Cbdlll for responsibly reporting the identified issue.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistgetkirby/cms |
Corregida | 5.6.4 | — | — |
5.6.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/getkirby/kirby/security/advisories/GHSA-575m-76vr-vwqgLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
