GHSA-F8JH-FV44-3H24
File template path traversal in FileActions allows page blueprints to override file permissions
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-F8JH-FV44-3H24 divulgada · CVSS 2.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Panel users can make files they upload or update use a page blueprint or another non-file blueprint.
You're affected if
- Kirby 4.0.0–4.9.7 or 5.0.0–5.6.3
- Users you do not fully trust can log in to the Panel
- You restrict their file actions or uploads through their role, or `options` or `accept` in file blueprints
- Your site has file blueprints in the `site/blueprints/files` folder
Site or plugin code that lets untrusted input set a file's `template`, e.g. via `Kirby\Cms\File::create()` or `Kirby\Cms\File::update()`, is affected as well.
Potential damage
- Can bypass the `accept` and `options` rules of all file blueprints, e.g. upload file types none of them accept
- Can perform file actions their role denies, e.g. upload or delete files, where the chosen blueprint's `options` allow them
- Cannot change the blueprint of files they are not allowed to update
- Cannot use a blueprint of their own, e.g. an uploaded `.yml` file
- Cannot upload PHP or HTML files
- Cannot change permissions for pages, users or the site
Patches
- Fixed in Kirby 4.9.8
https://github.com/getkirby/kirby/releases/tag/4.9.8and Kirby 5.6.4https://github.com/getkirby/kirby/releases/tag/5.6.4 - Kirby now prevents path traversal in blueprint names.
- Files given such a blueprint fall back to the default file blueprint.
- Files uploaded before the update are not re-checked.
Workarounds
- Only let fully trusted users log in to the Panel.
- Move your file blueprints from `site/blueprints/files` into a plugin and delete that folder.
- Do not let untrusted input set a file's `template`.
Credits
Thanks to @immanuwell 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 | 4.9.8, 5.6.4 | — | — |
4.9.85.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-f8jh-fv44-3h24Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
