Getting my Subsonic installation secure

Need help? Post your questions here.

Moderator: moderators

Getting my Subsonic installation secure

Postby HerrNilsson » Fri Dec 07, 2012 2:56 pm

Hello

I'm running Subsonic on an Ubuntu Server, AD integrated and with SSL-cert.
I want this to be secure from the outside and i've scanned my IP and found the following:

1.
Code: Select all
444 / tcp The remote host is vulnerable to renegotiation DoS over SSLv3.


2.
Code: Select all
444 / tcp
Service: www

Here is the list of weak SSL ciphers supported by the remote server :

  Low Strength Ciphers (< 56-bit key)

    SSLv3
      EXP-EDH-RSA-DES-CBC-SHA      Kx=DH(512)     Au=RSA      Enc=DES(40)              Mac=SHA1   export     
      EXP-DES-CBC-SHA              Kx=RSA(512)    Au=RSA      Enc=DES(40)              Mac=SHA1   export     
      EXP-RC4-MD5                  Kx=RSA(512)    Au=RSA      Enc=RC4(40)              Mac=MD5    export     

    TLSv1
      EXP-EDH-RSA-DES-CBC-SHA      Kx=DH(512)     Au=RSA      Enc=DES(40)              Mac=SHA1   export     
      EXP-DES-CBC-SHA              Kx=RSA(512)    Au=RSA      Enc=DES(40)              Mac=SHA1   export     
      EXP-RC4-MD5                  Kx=RSA(512)    Au=RSA      Enc=RC4(40)              Mac=MD5    export     

The fields above are :

  {OpenSSL ciphername}
  Kx={key exchange}
  Au={authentication}
  Enc={symmetric encryption method}
  Mac={message authentication code}
  {export flag}


3.
Code: Select all
444 / tcp
Service: www

When processing the following request :

  GET / HTTP/1.0

this web server leaks the following private IP address :

  192.168.x.x

as found in the following collection of HTTP headers :

HTTP/1.1 302 Found
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=1l8rygqjs33cz;Path=/
Location: https://192.168.x.x:444/login.view;jsessionid=1l8rygqjs33cz?
Content-Length: 0
Server: Jetty(6.1.x)



Where is the webserver? It's not Apache, where do i find httpd.conf or equal?
Any suggestions?
Thanks
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Getting my Subsonic installation secure

Postby hakko » Fri Dec 07, 2012 3:21 pm

Vanilla Subsonic runs on Jetty 6. If you want to stay with that version, you could run it on Tomcat instead.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Getting my Subsonic installation secure

Postby HerrNilsson » Fri Dec 07, 2012 3:25 pm

hakko wrote:Vanilla Subsonic runs on Jetty 6. If you want to stay with that version, you could run it on Tomcat instead.


Alright. So how do i edit the settings for the web server?
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Getting my Subsonic installation secure

Postby hakko » Fri Dec 07, 2012 3:30 pm

MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Getting my Subsonic installation secure

Postby HerrNilsson » Fri Dec 07, 2012 3:35 pm

I want to change the security settings. Not install a new web server.
Among other things i'd like to change the cipher security.
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Getting my Subsonic installation secure

Postby bushman4 » Fri Dec 07, 2012 4:33 pm

There is no built in facility for what you want to do in the standalone jetty version of Subsonic. That is why someone else suggested that you install Tomcat (a different web server/Java Servlet Host) and pointed you to how get subsonic working on that new host once it is installed.

Adjusting Tomcat's security settings is outside of the scope of this mailing list. It appears as though this link:
http://blog.techstacks.com/2008/09/secu ... t-two.html
...might contain what you need.

As to the third issue you mentioned, there is nothing you can do about that. That is how Subsonic is designed to work.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Getting my Subsonic installation secure

Postby jol » Fri Dec 07, 2012 5:16 pm

There is one more option that I use, albeit on Windows but I assume you can do similar with Apache on Linux and a local firewall (ipfilter). The https port is not directed to Subsonic but goes to IIS (Windows webserver) which proxies it to Jetty using http only. From the internet only the https port is open, enforcing security settings of IIS. For this to work https must be turned off in Subsonic configuration as otherwise Subsonic redirects to https itself.
Best regards, jol
Subsonic 4.7 running on Acer H340 with LDAP authentication / Windows Home Server 2011 - Android client (3.5)
jol
 
Posts: 52
Joined: Sat Jan 21, 2012 7:40 pm

Re: Getting my Subsonic installation secure

Postby hakko » Fri Dec 07, 2012 5:51 pm

Jetty comes with an embedded web server, and it is normally configured programmatically. It might be possible to configure it using a config file, but I'll think you'll struggle to find information on how to do it (especially since Jetty 6 is really old by now, not maintained and has its own list of vulnerabilities). Setting up Tomcat will be much more straight-forward and well documented.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Getting my Subsonic installation secure

Postby daneren2005 » Fri Dec 07, 2012 7:11 pm

I personally just use Subsonic on the original port, don't open up that port in the firewall so it's not accessable, then have a reverse nginx proxy so that I use https://xxx/subsonic. The benefit of that is that you can control the chiphers and general ssl settings from within nginx. I've been hearing a lot of people have also been doing basically the same thing with apache as well.

PS What are you using to scan your network? I would be curious to run the same scan on my own.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Getting my Subsonic installation secure

Postby HerrNilsson » Sat Dec 08, 2012 12:10 pm

Alright. Thank you everyone for your answers. I'll look into installing Tomcat.
For network skanning (outside) i used the Nessus Appliance
http://www.tenable.com/products/nessus/ ... -appliance

Most cause we have that one a work so it's outside my network and we have a valid license.
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Getting my Subsonic installation secure

Postby HerrNilsson » Wed Feb 13, 2013 10:13 am

Hey again guys.

Is it possible to migrate from the embedded db to a tomcat installation?
I want all the modifications i've done to be there when i'm migrating. It doesnt seem to work when i just move the db folder.
I have some modifications in the jetty folder aswell i want to move.

How should i do?
Thanks
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am


Return to Help

Who is online

Users browsing this forum: No registered users and 49 guests