GHSA-G6Q3-MF7C-27JH
Cross-site scripting (XSS) via a race condition in chunked file uploads
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-G6Q3-MF7C-27JH divulgada · CVSS 7.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Users who can upload files can store SVG files with JavaScript that Kirby's upload checks would otherwise reject.
You're affected if
- Kirby 5.0.0–5.6.3
- Users you do not fully trust can upload or replace files (e.g. `files.create` or `files.replace` permission)
- A file blueprint accepts SVG files (the default) or XML/SVGZ files
This covers all file uploads in the Panel and REST API, and plugin code that accepts uploads via `Kirby\Api\Api::upload()`.
Potential damage
- Can store SVG/XML files with JavaScript that the upload checks would otherwise reject
- Can run that JavaScript in the browser of anyone who opens the file or views a page that embeds it inline
- Can then act with that person's permissions, e.g. an admin's, while they are logged in to the Panel
- Cannot gain higher permissions unless such a user opens the file or page
- Cannot bypass file name or extension rules (no `.php` or `.html` files)
Patches
- Fixed in Kirby 5.6.4
https://github.com/getkirby/kirby/releases/tag/5.6.4 - Each chunked upload now keeps its own temporary file until it is stored.
- Files uploaded before the update are not re-checked.
Workarounds
- Only let fully trusted users upload or replace files.
- Exclude SVG files in the `accept` option of all file blueprints, including `files/default`.
Credits
Thanks to @4n86rakam1 and @vinniboy021-blip 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-g6q3-mf7c-27jhLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
