Android client: basic authentication possible

Need help? Post your questions here.

Moderator: moderators

Android client: basic authentication possible

Postby piethein » Thu Jul 05, 2012 8:32 am

I have noticed the Android client uses plaintext/hex-excoded credentials in the url, is it possible to change this to basic authentication?
piethein
 
Posts: 35
Joined: Fri Dec 03, 2010 5:58 pm

Re: Android client: basic authentication possible

Postby hakko » Thu Jul 05, 2012 8:49 am

I totally agree that plain text credentials is a security flaw, but basic authentication is just as bad? It's only base64.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Android client: basic authentication possible

Postby piethein » Thu Jul 05, 2012 10:41 am

To access subsonic I proxy it through Apache on a ssl connection, not having credentials in the URL would have some advantages for my server's logs and possibly for browser histories.

Without ssl (or other method (IPSec...)) to encrypt the connection only some secure kind of key exchange (Diffie-Hellman f.e.) could prevent simple attacks on the credentials. Using a hash+salt for the credentials could prevent their plaintext base from being exposed better than hex/base64-encoded plaintext of course.
piethein
 
Posts: 35
Joined: Fri Dec 03, 2010 5:58 pm

Re: Android client: basic authentication possible

Postby jol » Thu Jul 05, 2012 11:50 am

Imho credentials on the URL are a no-go, basic authentication with SSL is totally fine, especially for REST like calls. If you want to protect credentials without SSL, one can use SCRAM or similar, but you need to be aware it protects only the password, any other communication is unprotected.
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: Android client: basic authentication possible

Postby piethein » Thu Jul 05, 2012 12:16 pm

As Subsonic supports http basic authentication (for quite some time now) I am surprised to see the Android client still uses the mechanism to supply the credentials via the URL.
piethein
 
Posts: 35
Joined: Fri Dec 03, 2010 5:58 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests