GHSA-CH57-PQV8-VM6H
Access permissions are not checked when field options are resolved from a query
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-CH57-PQV8-VM6H divulgada · CVSS 5.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Panel users can see the titles, IDs, usernames and email addresses of pages, files and users they have no permission to access if a field in a model they can view loads its options from a query.
You're affected if
- Kirby 4.9.7 or older, or Kirby 5.0.0–5.6.3
- You use blueprint `options` or `access`/`list` permissions to hide some pages, files or users from roles you do not fully trust
- A blueprint visible to these roles has a `checkboxes`, `color`, `multiselect`, `radio`, `select`, `tags` or `toggles` field with `options: query` whose query returns pages, files or users (e.g. `site.index`, `page.files` or `kirby.users`)
This also covers such fields inside blocks and layout settings.
Potential damage
- Can read the title and ID of every page, the filename and ID of every file and the username and email address of every user returned by the query
- Can read any other data the field's `text` or `info` template outputs for these models, e.g. a file URL
- Cannot choose which models are disclosed, only those the blueprint query returns
- Cannot read the content of these models beyond what the option templates output
- Cannot change any content or their own permissions
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 - Query options now skip pages, files and users the current user may not list.
- A stored value that points to such a model is displayed as an `[unknown]` placeholder, so saving the field does not drop it. The raw value (e.g. ID, UUID) is still transmitted to the user in the Panel data in that case.
Workarounds
- Restrict the query to models the current user may list, e.g. `site.index.filterBy("isListable", true)`.
- Use a `pages`, `files` or `users` field instead, which already check access permissions since Kirby 4.9.6 and 5.6.0.
Credits
Thanks to Fernando Viana (@capivara-research) 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-ch57-pqv8-vm6hLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
