Audit Authentication / Limit login attempts

Need help? Post your questions here.

Moderator: moderators

Audit Authentication / Limit login attempts

Postby ztnewman » Thu Mar 07, 2013 1:12 am

<-------------------------Subsonic Help Request---------------------->
Problem Description: I've searched around (see viewtopic.php?f=3&t=1830), and please correct me if I'm wrong, but there doesn't appear to be any way to limit login attempts with Subsonic. This seems like a huge security vulnerability to me. Is there a log of authentication attempts or a way to limit the amount of unsuccessful logins? With the server internet facing in order to use the mobile client, I am shocked to see such a lack in security. Is it even possible to disable admin logins?

Troubleshooting Steps: Anyone can brute force http://<yourdomain.com>[:port]/[context_url/]login.view?user=admin&password=password to get access.

Subsonic Version: 4.7 (build 3105) – September 11, 2012

Server Version: jetty-6.1.x, java 1.6.0_24, Linux (45.0 MB / 90.2 MB)
<-------------------------Subsonic Help Request---------------------->
ztnewman
 
Posts: 1
Joined: Thu Mar 07, 2013 12:58 am

Re: Audit Authentication / Limit login attempts

Postby bushman4 » Thu Mar 07, 2013 2:21 pm

You are correct. There is no logon auditing nor is there failed-attempt based lockouts.

If you think it is something that should be added, please post a request in the Feature Request section of the forums.

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: Audit Authentication / Limit login attempts

Postby hakko » Thu Mar 07, 2013 2:25 pm

.. but only after searching the Feature Request forum for a thread requesting the same functionality. Adding a "+1" to an existing thread is smarter as popular threads are more likely to gain attention.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Audit Authentication / Limit login attempts

Postby bushman4 » Thu Mar 07, 2013 2:27 pm

hakko wrote:.. but only after searching the Feature Request forum for a thread requesting the same functionality. Adding a "+1" to an existing thread is smarter as popular threads are more likely to gain attention.


Great point. Always one step ahead of me hakko...

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: Audit Authentication / Limit login attempts

Postby hakko » Thu Mar 07, 2013 2:32 pm

More like one step behind!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Audit Authentication / Limit login attempts

Postby jol » Fri Mar 08, 2013 10:51 pm

ztnewman wrote:... there doesn't appear to be any way to limit login attempts with Subsonic. This seems like a huge security vulnerability to me.
It is not. In fact contrary if you lockout users after authentication failures you create the possiblity of denial of service attacks. Best practice is to use strong passwords to cause brute-force attacks to take years to succeed.
ztnewman wrote:Is it even possible to disable admin logins?
Disabling admin access or putting admin access on a different port or mechanism is a good idea as you turn something unlikely into impossible. Even just separating on URL (e.g. /admin instead of /subsonic) would allow to use a reverse proxy in front of Subsonic (I use ARR) that limits access to the outer world.
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: Audit Authentication / Limit login attempts

Postby daneren2005 » Fri Mar 08, 2013 11:23 pm

jol wrote:
ztnewman wrote:... there doesn't appear to be any way to limit login attempts with Subsonic. This seems like a huge security vulnerability to me.
It is not. In fact contrary if you lockout users after authentication failures you create the possiblity of denial of service attacks. Best practice is to use strong passwords to cause brute-force attacks to take years to succeed.
ztnewman wrote:Is it even possible to disable admin logins?
Disabling admin access or putting admin access on a different port or mechanism is a good idea as you turn something unlikely into impossible. Even just separating on URL (e.g. /admin instead of /subsonic) would allow to use a reverse proxy in front of Subsonic (I use ARR) that limits access to the outer world.
Best regards, jol

If anything, it stops DOS attacks. It takes computational resources to check the password. Increasing the strength of the password makes it harder to guess, but it doesn't stop a flood of requests from bringing your server to it's knees and cause others to not be able to use it. Using a basic firewall limited login attempt method like fail2ban on the other users very little resources to block a virtually unlimited number of tries. And this would only block that IP from trying again, so it wouldn't be disrupting service for others at all.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests