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

Blocking non-encrypted traffic not working in FF

Open foobar13373 opened this issue 9 years ago • 25 comments

I just got Version "2017.8.15" in FF55 (64Bit) on Win10 and the checkbox to block all non-encrypted traffic does not work at all. It does not get saved and no http-content is blocked.

Also, how can I enable/disable rules with this new interface?

foobar13373 avatar Aug 16 '17 11:08 foobar13373

Duplicate https://github.com/EFForg/https-everywhere/issues/10150

HTTPSNowhere avatar Aug 16 '17 13:08 HTTPSNowhere

Exactly the same issue in Chrome. It worked perfect few days ago.

aemixdp avatar Aug 17 '17 19:08 aemixdp

i can also confirm this issue on chrome. very strange

gripedthumbtacks avatar Aug 18 '17 20:08 gripedthumbtacks

I'm not experiencing this behavior on Firefox 55 or the latest Chromium. Are you still seeing this on >= 2017.8.17?

Hainish avatar Aug 19 '17 21:08 Hainish

@Hainish With your latest changes regarding the localStorage, this is also working for me in the currently running browser session. This means:

The checkbox state is saved between browser starts, but the functionality only works if one dis- and re-enables the checkbox after a browser restart (which comes from clearing the storage on exit, I assume).

foobar13373 avatar Aug 20 '17 06:08 foobar13373

I was seeing unencrypted requests succeeding with 2017.8.19 on Firefox-55.0.2 until I unchecked, and then came back and checked the setting again. Before doing that, the icon was also not red, as it was previously, but after that process, it is red again.

ansell avatar Aug 21 '17 01:08 ansell

@foobar13373 glad to hear the latest changes fixed this issue, unless I'm misunderstanding. Feel free to close if this is no longer an issue.

Hainish avatar Aug 22 '17 19:08 Hainish

@Hainish I think you've missed this part

but the functionality only works if one dis- and re-enables the checkbox after a browser restart (which comes from clearing the storage on exit, I assume).

which is not how addon was working before for me - the flag, icon state and functionality state were consistently being saved and restored after I've closed browser and opened it again.

It would be really cool if you can not worry about re-enabling it every time you open the browser. :)

Can we get that behavior back again? Is it blocked by something?

ivan-kolmychek avatar Aug 29 '17 13:08 ivan-kolmychek

right, this is actually now a SECURITY ISSUE. for instance, you close your browser on a secure network, then move to another network that is hostile, open the saved browser and all your traffic and cookies potentially leak over HTTP without protection. same bug also confirmed in chrome version of extension

gripedthumbtacks avatar Aug 29 '17 18:08 gripedthumbtacks

opened #12190 to track wider issue

gripedthumbtacks avatar Aug 29 '17 18:08 gripedthumbtacks

could potentially fix this security bug by simply changing

pref("extensions.https_everywhere.http_nowhere.enabled", false);

to

pref("extensions.https_everywhere.http_nowhere.enabled", true);

in

src/defaults/preferences/preferences.js

and making it more secure by default, requiring users to downgrade to the less secure option if they choose

gripedthumbtacks avatar Aug 29 '17 20:08 gripedthumbtacks

Can someone give me specific steps to reproduce this error? The description given is not reproducing this for me, but it may be that I'm not following the exact same workflow.

Hainish avatar Aug 29 '17 22:08 Hainish

@DtpEJsaYXDU4GDH8dE4MyI9VrieF0UZpPZ0K76K this will not work. The WebExtension has no access to the old preferences that the legacy XPCOM extension drew from.

Hainish avatar Aug 29 '17 23:08 Hainish

This issue started about two weeks ago in both Firefox and chrome. To reproduce, here are some potential steps.

Install extension

Enable no http mode

Close browser

Reopen browser. Notice that the setting is disabled (icon is blue), even if the option appears enabled. Enabled icon color is red when one.

Try chrome as well.

gripedthumbtacks avatar Aug 30 '17 02:08 gripedthumbtacks

Can reproduce. It becomes red for a split second before being changed to blue. Something seems to disable HTTPS-only mode.

ghost avatar Aug 30 '17 02:08 ghost

I am seeing the same behaviour as @DtpEJsaYXDU4GDH8dE4MyI9VrieF0UZpPZ0K76K My workaround above of disabling and re-enabling doesn't seem to be persisted across Firefox executions. When starting up Firefox, the icon is blue (I haven't noticed it flickering from red to blue myself), but the checkbox beside "Block all unencrypted requests" is checked, which matches the expected preference since it was checked on the previous Firefox execution.

ansell avatar Aug 30 '17 02:08 ansell

I have been experiencing the exact same behavior described by @ansell in Chrome.

jimmycuadra avatar Aug 30 '17 05:08 jimmycuadra

I was waiting to hear more on this issue but this looks like an exact duplicate of https://github.com/EFForg/https-everywhere/issues/10478.

Bisaloo avatar Aug 30 '17 09:08 Bisaloo

This behavior is not observed in Firefox 52.3.0 but interestingly is observed in 55.0.1. Possible Firefox regression? Looking into this further now.

Hainish avatar Aug 30 '17 18:08 Hainish

Doubt it could only be a regression in firefox if this issue ALSO affects chrome.

gripedthumbtacks avatar Aug 30 '17 19:08 gripedthumbtacks