Hey all,
I just wanted to warn you of a potential security issue with Subsonic.
I have figured out that anything in your music folders are as good as publicly available.
While I haven't been able to access anything outside of these directories, I have been able to download files that are not in the subsonic database that do indeed exist in these directories.
All you need to do is have a valid session cookie in your browser (i.e. log in...at least that is the only way I tested it) and then point your browser at:
http://<yourserver:port>/subsonic/stream?path=<path to the file you want to download>
Edit (04-01-2009): I have found that a valid session does not need to exist. This means that you can access this without being authenticated, which is how the music players do it.
I would encourage Sindre to fix this to only allow access to files that are available in the index and are actually music files (there are a number of utilities that can determine file-types...the Unix "file" command comes to mind). There are probably other secure alternatives too...
I am going to continue poking around and see what else I can come up with...
In the mean time...please make sure that you do NOT store anything confidential or that you don't want the world to have access to in any of the directories used by subsonic.