GHSA-828w-6qgx-3rcf: Filament Curator: Cross-tenant media metadata disclosure via Curator picker search
- Source:
- OSV.dev
- Published:
- Fetched:
- Updated:
- Affects:
- awcodes/filament-curator
https://osv.dev/vulnerability/GHSA-828w-6qgx-3rcf ↗
Filament Curator: Cross-tenant media metadata disclosure via Curator picker search Summary In multitenant Filament panels, an authenticated user could retrieve media metadata belonging to other tenants by typing in the Curator media-picker search box. The search query omitted the tenant ownership scope that the normal file listing applies. Details CuratorPanel::updatedSearch() built its Eloquent query independently of getFiles() and did not apply the filament()->hasTenancy() && $isTenantAware tenant-ownership where clause. As a result, the search matched media across all tenants. A secondary flaw compounded it: the orWhere('title'…) chain was not wrapped in a nested group, so the OR conditions also broke out of the isLimitedToDirectory constraint. The issue was introduced in v3.2.4, when multitenancy support was added to the media picker. Impact - Who: any authenticated user with access to a panel that uses the Curator picker. - What: disclosure of other tenants' media metadata (name, title, alt, caption, description, path, etc.) returned by the search. - Conditions: only affects deployments using Filament multitenancy with Curator's tenant awareness enabled. Single-tenant installs are not affected. Patches Fixed in 3.7.8, 4.1.1, and 5.1.1 by applying the tenant scope to the search query and grouping the search terms so they cannot escape the directory/tenant constraints. Upgrade to a patched version. Workarounds None other than upgrading. Disabling tenant awareness does not help (it removes the boundary entirely). Credit Reported via coordinated disclosure by [Afsana Alijabarova](https://github.com/afa114). Affected: Packagist:awcodes/filament-curator Fixed in: 5.1.1, 4.1.1, 3.7.8 References: https://github.com/awcodes/filament-curator/security/advisories/GHSA-828w-6qgx-3rcf https://github.com/awcodes/filament-curator/commit/17615a20924b7cd373595f6ec56abb79f23cdf7f https://github.com/awcodes/filament-curator/commit/c129a3692d7ef1c9923a2be7402704b20ed4f243 https://github.com/awcodes/filament-curator https://github.com/awcodes/filament-curator/releases/tag/v3.7.8 https://github.com/awcodes/filament-curator/releases/tag/v4.1.1 https://github.com/awcodes/filament-curator/releases/tag/v5.1.1