Skip to content

fix: add authentication for sync queue API#110

Open
Theta-Dev wants to merge 2 commits intojellyfin:masterfrom
Theta-Dev:fix/add-authentication
Open

fix: add authentication for sync queue API#110
Theta-Dev wants to merge 2 commits intojellyfin:masterfrom
Theta-Dev:fix/add-authentication

Conversation

@Theta-Dev
Copy link
Copy Markdown

I have just reviewed the security of my Jellyfin server and figured out that the API of the Kodi Sync queue plugin is completely unauthenticated.
This allows anyone to fetch the entire playback history of an user as long as they know the UserID.

Since the Kodi plugin sends the authorization token for all Jellyfin requests, there is no reason to leave the sync queue endpoints unprotected. I have just updated the plugin on my server and Kodi synchronization works as expected.

@Theta-Dev
Copy link
Copy Markdown
Author

I have updated my pull request and added a check of the authenticated user ID, so users can only fetch their own sync queue. Administrators can fetch any queue.

The RequestHelpers.GetUserId method as well as the methods under ClaimsPrincipalExtensions to extract authenticated user attributes are not part of the Jellyfin SDK, is that correct?

I have reimplemented this method in the plugin to get the authenticated user ID.

@Theta-Dev Theta-Dev force-pushed the fix/add-authentication branch from 9746ea4 to 27e5bd3 Compare October 24, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants