GHSA-FG4G-XMPF-4CXF
Picker panel accepts client changes to its upload, storage and scoping settings
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-FG4G-XMPF-4CXF divulgada · CVSS 8.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `CuratorPanel` Livewire component, which is the media browser opened by `CuratorPicker` and the RichEditor integration, keeps its configuration in public Livewire properties, and none of them is `#[Locked]`. A panel user can change these properties from the browser, and the panel trusts them for uploads, listing and item actions.
Exploiting this needs an account that can open a picker. It isn't reachable by unauthenticated visitors.
Details
The properties a user can change include:
- `acceptedFileTypes`, `validationRules`, `rules`, `minSize`, `maxSize`, `isMultiple`, `maxItems`: these bypass the field's upload restrictions. For example, an HTML document can be stored on the public disk and served from the application's origin, which gives stored XSS.
- `diskName`, `directory`, `visibility`, `shouldPreserveFilenames`, `pathGenerator`: these write uploads to any configured disk and directory, with a chosen name and visibility. Flysystem still blocks paths that escape a disk root.
- `isTenantAware`, `tenantOwnershipRelationshipName`: when the panel is used without Filament's own tenant scope on `Media`, these list, edit, download and delete other tenants' media. That happens when `CuratorPlugin` isn't registered on the tenant panel.
- `showAll`: this removes the type filter.
- `selected`, `statePath`: these dispatch arbitrary items into a picker on the page.
- `defaultLimit`: this sets an unbounded page size.
Two consequences raise the impact:
- Reading images on any configured disk. Curator's Glide server is configured with `base_url` set to the route prefix (`curator` by default). Glide strips that prefix from source paths, so a media record stored under `curator/<dir>/<name>` is served from `<dir>/<name>`. Combined with the ability to choose the disk and directory, a user can obtain a rendition of an image they could not otherwise read, including on private disks. They need to know or guess its path.
- Script injection through directory names. Directory names are rendered into `wire:click` expressions in the panel view without JavaScript escaping. A crafted directory name, stored through the tampered `directory` property, runs script for other panel users who click the folder.
*Score:* `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N` (8.1)
Affected versions
Confirmed at runtime on 5.5.0 and 3.7.11. 4.2.1 was checked against the 5.x code paths, which are the same, and the fixes were tested on every line.
All 5.x, 4.x and 3.x releases are affected. On 3.x, the panel's settings can also be replaced in a single call to its `openModal` listener.
The two consequences differ by line:
- Reading images on other disks: this applies from 5.3.7, when Glide began reading from the media's own disk. On earlier 5.x releases, and on 4.x and 3.x, Glide reads only from the public storage root, so the prefix confusion can't reach private disks there.
- Script injection through directory names: this applies to 5.x and 4.x. 3.x has no directory navigation.
Patches
Upgrade to 5.5.1, 4.2.2 or 3.7.12. Later releases in each line include the fix.
- 5.x and 4.x: the panel's configuration properties are locked, so they can't be changed from the browser.
- Inserted media is reloaded from the database by id.
- Folder navigation is limited to known directories, and folder names are encoded for JavaScript.
- 3.x: the picker and the TipTap media action pass the panel's settings as an encrypted payload that expires after ten minutes, and the panel ignores anything else.
- Apps that open the panel themselves must use `CuratorPanel::encryptSettings()`.
- All lines: Glide's base URL is no longer set to the route prefix, so a path under `curator/` is served as itself.
Workarounds
Restrict access to pickers to trusted users, and register `CuratorPlugin` on tenant panels so Filament's tenant scope applies to `Media`.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistawcodes/filament-curator |
Corregida | 3.7.12, 4.2.2, 5.5.1 | — | — |
3.7.124.2.25.5.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/awcodes/filament-curator/security/advisories/GHSA-fg4g-xmpf-4cxfLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
