secure subsonic

General discussions.

Moderator: moderators

secure subsonic

Postby keckskoenig » Wed Oct 30, 2013 12:57 am

Currently it is possible to access Files on server without beeing logged in, simply by "guessing".
Lets say you have a server instance running on foobar.subsonic.org
you may just open http://foobar.subsonic.org/stream?playe ... uffix=.mp3
where XX is a guessed number between 1 and lets say 20 (if no player with id XX is found you will recive an error message)
and YYYY is the file id (a number between 1 and lets say 9000"

It may take a while for finding a suitable player (correct match vor XX)
and also a file with database id YYYY.

I did try this on a few servers I found "guessing" premium subdomains from subsonic.org
like if.subsonic.org mine.subsonic.org and so on.

Conclusion:
Currently everyone could access files stored on subsonic server just by guessing/bruteforcing a low range of numbers.
! NO LOGIN IS REQURED !

A fix for this should be fairly easy like including a (valid session id/nonce) for accessing files.

as a rude example try to open http://mine.subsonic.org/stream?player= ... uffix=.mp3 in vlc and enjoy someones The Beauty and the Beast WaltDisney movie...
keckskoenig
 
Posts: 4
Joined: Fri Jul 01, 2011 8:51 pm

Re: secure subsonic

Postby gurutech » Wed Oct 30, 2013 2:27 am

I'd be more worried about people being able to UPLOAD files without an ID/password....
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: secure subsonic

Postby daneren2005 » Wed Oct 30, 2013 3:30 am

Oh now this is a fun game. Or not having the only way to use the REST API to be sending unencrypted plaintext passwords over the internet :D
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: secure subsonic

Postby keckskoenig » Wed Oct 30, 2013 10:57 am

gurutech wrote:I'd be more worried about people being able to UPLOAD files without an ID/password....

Hm If you do transcoding serverside one is able to lockup the whole machine by requesting transcoding files multiple times.
keckskoenig
 
Posts: 4
Joined: Fri Jul 01, 2011 8:51 pm

Re: secure subsonic

Postby daneren2005 » Wed Oct 30, 2013 5:56 pm

It seems like most of these problems would be easily solved. The common theme is that the methods that are used for the internal web view need to require an existing session to work. Whether they do this by appending a session id to the url, or by just checking if the session is a valid one on a request doesn't matter.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests