GHSA-4WG7-C5FW-WM4Q
File existence disclosure via the router for PHP's built-in server
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4WG7-C5FW-WM4Q divulgada · CVSS 2.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Anyone who can reach a Kirby site served by PHP's built-in server can find out whether certain files next to the site exist.
You're affected if
- Kirby 4.7.1–4.9.7 or 5.0.0–5.6.3
- You serve the site with PHP's built-in server and Kirby's `router.php` (`php -S … kirby/router.php`) on PHP 8.3 or older
- Others can reach that server, e.g. on a shared network or through a tunnel
- A file or folder next to the document root has a name that starts with the document root's name (e.g. `mysite.zip` or `mysite-backup` next to `mysite`)
Sites served by Apache, nginx, Caddy or any other web server are not affected.
Potential damage
- Can find out whether such a file exists
- Can find out whether a file with a known or guessed name (e.g. `backup.sql`) exists in such a folder
- Cannot read, change or delete these files
- Cannot list the contents of these folders
- Cannot learn anything about other files or folders outside the document root
Patches
- Fixed in Kirby 4.9.8 and Kirby 5.6.4
- `router.php` no longer treats files and folders next to the document root with the same name prefix as part of it.
Workarounds
- Bind PHP's built-in server to `localhost`.
- Run PHP's built-in server on PHP 8.4 or newer.
- Rename files and folders next to the document root whose names start with the document root's name.
Credits
Thanks to @iefken 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-4wg7-c5fw-wm4qLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
