• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Possible security issue?

     
    • 0 Vote(s) - 0 Average

    Possible security issue?

    Hotlinks to media files may work with no auth credentials
    JoeG
    Offline

    Junior Member

    Posts: 4
    Threads: 3
    Joined: 2025 Feb
    Reputation: 0
    #1
    2025-02-17, 02:09 AM (This post was last modified: 2025-02-17, 02:56 PM by TheDreadPirate. Edited 1 time in total.)
    Just something I stumbled on today...

    If I click the 3 dots next to a song, tv show, etc, and use the Copy Stream URL option and then paste it into an incognito browser, it downloads the file without me having to authenticate.  My expectation is that the file would be blocked or I would at least get a login page. 

    Here is a typical URL: http://{IP - Censored by TDP}:8096/Items/7dfe409daf79f5b4815786ac9e0a5898/Download?api_key={API_KEY - Censored by TDP} (This is not a valid URL.  Just an example.) 

    If I mess with the Items key, I get the correct error returned via JSON.
    If I mess with the api_key, it returns a 401 error in the console. 

    It seems like the api_key is not necessarily checking for a valid session before sending the file?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-02-17, 02:55 PM
    The "Copy Stream URL" link includes an api_key. This is how the link is authenticating. If you were to log out of the session you used to create the link, the api_key used would no longer be valid and the link would no longer work.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode