Description
Black Candy through 3.2.1 fails to scope playlist search queries to the authenticated session user, allowing any authenticated user to enumerate all playlists on the instance. Attackers can query the SearchController or Search::PlaylistsController endpoints with blank or targeted search parameters to retrieve playlist names belonging to other users without authorization.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| blackcandy-org | Black Candy | ≤ 3.2.1 | — |
References
- GitHub Issue #463 issue-tracking
- https://github.com/blackcandy-org/blackcandy/blob/93cfdca9857a5e2ae847469c3238a6174515c76f/app/controllers/search_controller.rb#L9 technical-description
- https://github.com/blackcandy-org/blackcandy/blob/93cfdca9857a5e2ae847469c3238a6174515c76f/app/controllers/search/playlists_controller.rb#L5 technical-description
- https://github.com/blackcandy-org/blackcandy/blob/93cfdca9857a5e2ae847469c3238a6174515c76f/app/models/concerns/searchable_concern.rb#L21 technical-description
- https://github.com/blackcandy-org/blackcandy product
- VulnCheck Advisory: Black Candy through 3.2.1 Information Disclosure via Playlist Search third-party-advisory