? Success

User tests: Successful: Unsuccessful:

avatar smz
smz
29 May 2015

Description

This should fix #7044 by using a secure cookie when the server is an HTTPS server.

Test instructions

  • verify that there is no regression on normal servers by using a multilingual site, switchnig to a non-default language, exiting the browser, re-visiting the test site with the naked domain and observing that you are redirected to the non-default language you had previously selected.
  • observe how the language cookie is delivered on HTTPS servers
avatar smz smz - open - 29 May 2015
avatar zero-24 zero-24 - change - 29 May 2015
Labels Added: ?
avatar smz
smz - comment - 29 May 2015

Of the two testing instructions I personally could test the first one only as I have no HTTPS server at hand.
@andrepereiradasilva, can you please perform the second test?

avatar zero-24 zero-24 - change - 29 May 2015
Category Multilanguage
avatar zero-24 zero-24 - change - 29 May 2015
Status New Pending
Easy No Yes
avatar Bakual
Bakual - comment - 29 May 2015

Code review looks fine, thanks! :+1:

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 May 2015

In HTTPS the cookie is delivered in secure mode!
image

thanks!

avatar Fedik
Fedik - comment - 29 May 2015

I think, would be good idea to use "httponly" cookies always ... not only for ssl
this will protect cookies from access from a js scripts and make joomla more secure
Protecting Your Cookies: HttpOnly

ignore me, it for different issue

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 May 2015

yes, httponly is a good security practice too, so javascript can't read the cookies.
Is more used in session cookies to prevent XSS attacks but is always a good practice.

avatar smz
smz - comment - 29 May 2015

Personally I don't think this is necessary at all: in the worst case a minor data leak could happen ("someone" could know about your language preferences, and that's it). On the other hand I can envision a scenario where a legit JS could be willing to access the language cookie for good reasons, so for me it is... :-1:

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 May 2015

yes, agree

avatar Bakual Bakual - change - 3 Jun 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 3 Jun 2015

Merged into staging. Thanks!

avatar Bakual Bakual - change - 3 Jun 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-06-03 18:52:54
Closed_By Bakual
avatar Bakual Bakual - close - 3 Jun 2015
avatar zero-24 zero-24 - close - 3 Jun 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment