https-everywhere icon indicating copy to clipboard operation
https-everywhere copied to clipboard

HTTPS Everywhere should not force HTTP on meta.*.stackexchange.com subdomains

Open q-- opened this issue 11 years ago • 12 comments

With HTTPS Everywhere off, you can still use HTTPS if you accept the mismatched certificate. With HTTPS Everywhere on, you will always get redirected back to HTTP. This is extra problematic because HTTPS Everywhere uses <securecookie> for Stack Exchange, so you can't get logged in on the Meta sites.

This issue does not apply to sites that have their own domain, such as stackoverflow.com and superuser.com.

q-- avatar Aug 27 '15 12:08 q--

Can you post a sample link, please?

TheNavigat avatar Aug 27 '15 15:08 TheNavigat

For example: If you're logged in to https://travel.stackexchange.com/, you will not be logged in to http://meta.travel.stackexchange.com/ and if you try to go to https://meta.travel.stackexchange.com/ HTTPS Everywhere will redirect you back to HTTP.

q-- avatar Aug 27 '15 19:08 q--

"https links from other pages to these will cause MCB for important elements, hence the downgrades"

Copied from Stackoverflow's rule file.

TheNavigat avatar Aug 28 '15 00:08 TheNavigat

Users shouldn't be expected to accept mismatched cert hence the downgrade. But I can see the issue "If you're logged in to https://travel.stackexchange.com/, you will not be logged in to http://meta.travel.stackexchange.com/". HTTPS Everywhere can/should ensure (with appropriate rule) that HTTPS cookie doesn't pass over HTTP. But in this case, user relies on cookie from https://travel.stackexchange.com to use http://meta.travel.stackexchange.com . Currently, what I can think of is excluding subdomains *.stackexchange.com (assuming all subdomains have meta). But excluding all subdomains is too drastic though, any other suggestion anyone?

youdly avatar Aug 28 '15 08:08 youdly

I've suggested on another ticket, #49 specifically, that we might need to inject cookies to resolve the issue. In this case, a valid option would be to inject an HTTP session cookie (or allow the HTTPS cookie to be passed over to HTTP). However, I believe that is too drastic as well.

TheNavigat avatar Aug 28 '15 10:08 TheNavigat

The meta.*.stackexchange.com sites are now no longer available over HTTPS, even if you disable HTTPS everywhere and ignore the certificate warning; they now display a 403 Forbidden error.

This means that the only way to use the meta sites when using HTTPS everywhere is disabling HTTPS Everywhere and removing the cookie HTTPS Everywhere flagged as Secure and logging in again.

I know removing the <securecookie> rule will enable session hijacking, but this is hardly workable. The alternative, keeping the StackExchange rule disabled at all times, is even less desirable than removing cookie protection.

q-- avatar Sep 14 '15 13:09 q--

I agree, honestly. Makes sense.

TheNavigat avatar Sep 14 '15 15:09 TheNavigat

@q-- https://github.com/EFForg/https-everywhere/issues/2700#issuecomment-135528570 I did a test and I can't recreate the issue. When I login to https://travel.stackexchange.com, I also logged in to http://meta.travel.stackexchange.com (without re-login). I tested using v2015.8.13 on Chrome and also latest ruleset on Firefox.

youdly avatar Sep 16 '15 08:09 youdly

I tested it; it turned out that I had the Stack Exchange (mixed content) ruleset enabled, which was responsible for this.

I removed that ruleset in pull request #2701 a few weeks ago because it appeared it had lost its usefulness.But if everything is still working with the latest version of the Stack Exchange ruleset, I may have missed something that wasn't covered by the Stack Exchange ruleset after all.

(Note: I'm using the release version.)

q-- avatar Sep 16 '15 13:09 q--

Maybe https://github.com/EFForg/https-everywhere/pull/2701 fixed this issue somehow.

youdly avatar Sep 25 '15 05:09 youdly

Well, I'm still curious how #2701 could have solved the issue, but since the problem because of which I opened this issue has been resolved, I'm closing it.

q-- avatar Sep 25 '15 07:09 q--

Would any of this help with http://meta.stackexchange.com/q/276702/243424 ?

wilfm avatar Jun 04 '16 20:06 wilfm