GHSA-69R4-GCP7-C67R
Search index properties expose the text of viewPermission-protected fields
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-69R4-GCP7-C67R divulgada · CVSS 5.3 (GitHub) | |
| Remediación | Parche 4.34.1 | apostrophe · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Impact
Apostrophe stores lowercased, normalized copies of a document's text in `highSearchText`, `lowSearchText` and `highSearchWords` (and, for rich text, `searchSummary`) to support search. These copies included the text of fields protected by a field-level `viewPermission`, including fields nested inside protected array, object and area fields.
- The REST API removes `viewPermission` fields from responses for users who do not meet the permission, but did not remove these search properties. A logged-in user who can view a document but not one of its protected fields could read that field's text through them.
- Because the protected text was part of the search index, anyone who can search documents they are allowed to see, including anonymous visitors using the public search page or `?search=` / `?autocomplete=` on a public API, could test whether a protected field contains a given word.
Only sites that protect text fields with `viewPermission` are affected.
Found by the maintainers during review of a related report.
Patches
Fields with a `viewPermission` are no longer included in the search index. As a result they are no longer searchable by anyone. After upgrading, sites that use `viewPermission` on text fields should run `node app @apostrophecms/search:index` to rebuild the index for existing documents.
Workarounds
Avoid storing sensitive values in `viewPermission`-protected fields until upgraded.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmapostrophe |
Corregida | 4.34.1 | 0 d | 4.34.1 no afectada |
4.34.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-69r4-gcp7-c67rLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
