Bug 13347 - security: Facebook config should use https URLs for Connect authentication
: security: Facebook config should use https URLs for Connect authentication
Status: RESOLVED INVALID
Product: MySqueezebox.com
Classification: Unclassified
Component: App Gallery
: unspecified
: PC Other
: -- enhancement with 2 votes (vote)
: Future
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-11 21:14 UTC by Peter Watkins
Modified: 2013-10-11 13:50 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
screenshot of FB settings page for https (44.85 KB, image/jpeg)
2011-04-19 15:44 UTC, Paul Chandler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Watkins 2009-08-11 21:14:57 UTC

    
Comment 1 Peter Watkins 2009-08-11 21:17:06 UTC
The test.squeezenetwork.com App Gallery uses a Facebook Connect button that spawns an http:-based popup from Facebook. If I recall correctly, it is possible to use an https:-based Connect address so the FB users have more reason to trust the popup's request for their FB username & password.
Comment 2 Andy Grundman 2009-08-11 21:19:09 UTC
I'll check on that, but you know Facebook's own site does not use SSL for login.
Comment 3 Andy Grundman 2009-08-12 05:38:23 UTC
http://wiki.developers.facebook.com/index.php/Facebook_Connect_Via_SSL

"Please note that Facebook ALWAYS sends user login credentials over the wire in SSL, regardless of which include you use. The protocol for the include is simply for loading the static resources, which don't contain secure data. The only reason you would need to do the above is because your site already uses SSL, and you want to avoid mixed content warnings."

Since our page doesn't use SSL, we can't load the Connect stuff with SSL.  It's a fair point that maybe we should deliver these pages with SSL but I think that's probably out of scope for now.
Comment 4 Peter Watkins 2009-08-12 18:16:57 UTC
Can't use it -- are you sure about that? It says no http JS if you're running https, but I don't see anything saying no https if you run http.

Always uses SSL/TLS: if the popup login page isn't delivered with https, Facebook can't be sure that the end user is seeing a FB form that hasn't been tampered  with. It's funny, that page you cite in one spot says that "the only reason" to use the https JS URL is for a better user experience (avoid mixed content warnings), but in another admits that "SSL is designed to prevent a man-in-the-middle attack".

FB doesn't use https: a few years ago, my bank's web site was like Facebook's -- its main page delivered over plain http, with the FORM ACTION specifying that my password be posted over https. Now my bank only asks for passwords on https pages, because it's important to protect the login form from MITM attacks. 

MITM attacks on password forms can be very subtle; an attacker could probably attach onchange/onblur handlers to the text input fields and use IMG beacons to transmit login credentials to a 3rd-party server without breaking the login form. AN MITM could even use keydown events to catch more data -- if the user started to enter a password to a different site, but cleared & fixed the password before submitting to FB, a keydown approach would give the attacker that password, even though FB would never see it.

I'd suggest you try simply changing the SCRIPT FB reference to https. If it works, great. If not, maybe punt until later?

Thanks.
Comment 5 Paul Chandler 2011-04-19 15:44:12 UTC
Created attachment 7237 [details]
screenshot of FB settings page for https

If I choose the setting in Facebook for "use https when possible" it breaks the FB app--at least wehn it tries to load the fb pictures
Comment 6 Paul Chandler 2011-04-19 15:45:53 UTC
THere is a setting in Facebook to use secure connection whenever possible (https)
When I use this setting, the Facebook app in Squeezebox cannot load the facebook photos (gets an error message)

The news feed still works correctly in the app, but not in the screen-saver version
Comment 7 Michael Herger 2013-10-11 13:50:05 UTC
Facebook is gone.