Spotify’s Playlist Search Has a Sneaky State Bug
A client-side state bug in Spotify's mobile app causes the playlist view to retain a filtered track list after the user swipes back from the in-playlist search, instead of resetting to the full playlist. An attacker could not exploit this for unauthorised access, but it can mislead users into thinking their playlist is empty or altered.
Published on avinashkratnam.medium.com
I was scrolling through one of my playlists on Spotify mobile the other day when I noticed something odd. I searched for “eminem” within the playlist, found what I was looking for, and swiped back to return to the full playlist view.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely shared mutable state between the playlist view and the search view, where the search view directly modifies the playlist's displayed track list and the swipe-back gesture bypasses the cleanup logic that the Cancel button triggers.
Impact
The bug could cause user confusion and a misleading view of playlist contents, but it does not expose or alter the underlying data, and the correct data reappears after navigating away and back.
What the attacker needed
Spotify mobile app; A playlist with multiple tracks; Use in-playlist search; Swipe back instead of tapping Cancel
The fix
The bug should be fixed by deriving the displayed track list from the full track list and an optional search query, so that dismissing the search view by any means resets the query and automatically restores the full list.
How it was found
- Open a playlist in the Spotify mobile app.
- Use the in-playlist search to filter tracks by a query.
- Swipe back to return to the playlist view.
- Observe that the playlist still shows only the filtered tracks.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a bug in how a mobile app remembers what you searched for. When you search inside a playlist, the app shows only matching songs. If you leave the search by swiping back, the app forgets to clear that filter, so the playlist looks like it only contains those songs. It is not a security vulnerability that lets someone steal data, but it is a confusing state bug.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.