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

Stop connecting to check.torproject.org on every browser startup

Open crisalis opened this issue 11 years ago • 16 comments

Or at least offer the possibility to disable this checkup and assume the browser isn't (or is) using tor. This is phoning home and that doesn't make sense for a privacy extension.

crisalis avatar Aug 29 '15 15:08 crisalis

I never looked at the SSL Observatory in any great detail but this might be as simple as adding

if (!this.myGetBoolPref("enabled"))

to https://github.com/EFForg/https-everywhere/blob/master/src/components/ssl-observatory.js#L130.

fuglede avatar Nov 20 '15 21:11 fuglede

@fuglede I thought Tor was checked for some reason to establish certain compatibility settings?

DerekTurtleRoe avatar Feb 24 '16 02:02 DerekTurtleRoe

@vgturtle127: Proxy settings to be precise (at least if we are talking about the same part of the code).

fuglede avatar Mar 13 '16 21:03 fuglede

But these proxy settings should only be checked when the proxy settings are actually configured, shouldn't they?

rugk avatar Mar 13 '16 21:03 rugk

@Hainish, can you take a look at this one?

jsha avatar Mar 14 '16 05:03 jsha

Any update on this? This is still an issue in the latest version of https-everywhere.

Bisaloo avatar May 12 '16 09:05 Bisaloo

This is high on my priority list, I'll look into it next week.

Hainish avatar May 14 '16 02:05 Hainish

I'm not overly concerned with requests to check.torproject.org that are actually going over Tor. In that case, we can expect privacy to be reasonably assured. This may not always be the case: if for instance we are accessing Tor via a system proxy, the XMLHttpRequest may be sending out identifying headers. But let's set aside that concern for a moment.

Following the logic of getProxySettings, we should not be making requests to check.torproject.org without the use of Tor under normal circumstances. Following the line-by-line breakdown:

L832: We are using the Tor Browser and extensions.https_everywhere._observatory.use_tor_proxy is set to true. (request will be made over tor settings set in the tor browser) L852: We are using a custom proxy set by the user (request will not be made over Tor) or we have a direct connection but we're not running the check test (not relevant for this issue) L857 Otherwise (request will be attempted with a system-wide installation of Tor running on 9050)

The only one of these three that results in the request not going over Tor in normal circumstances is the middle conditional. In that case, most users are protected because it's rare that users will manually set an observatory proxy in about:config. This may however be a concern for more advanced users. For such cases, I'll open a pull request to ensure that the Tor check is not performed over a custom set proxy.

While investigating this issue I was concerned about DNS leaks. I ran a packet dump and fired up a clean HTTPS Everywhere profile (the startup sequence of which would reach the 'otherwise' conditional above, trying to make the request over socks localhost:9050) but observed no DNS requests being made to check.torproject.org.

Hainish avatar May 18 '16 00:05 Hainish

Looking at it now, within Tor Browser seems like we never actually succeed with the first conditional, because the testProxySettings is called while the Tor circuit is still being built. We should fix this, possibly with a callback upon the main window being drawn.

Hainish avatar May 18 '16 22:05 Hainish

Strikingly, the above has probably been an issue since the days of Torbutton.

Hainish avatar May 19 '16 18:05 Hainish

Does HTTPS Everywhere still connect to check.tpo even when the SSL Observatory is disabled?

If relevant, I'm asking in the context of Tor Browser.

I understand this is not a privacy issue if it goes through Tor, but would be nice to avoid if it's unneeded. Sorry if this is already the case, but couldn't make sure reading the code.

gunesacar avatar Jun 16 '16 12:06 gunesacar

@gunesacar in Tor Browser, Tor connectivity will be tested (even if the observatory is disabled) by connecting to check.tpo. This is in order to provide the appropriate UX for observatory settings.

Hainish avatar Jun 16 '16 21:06 Hainish

@Hainish Thanks!

gunesacar avatar Jun 17 '16 08:06 gunesacar

Is this still an issue? Looking at uBlock Origin's I'm seeing behind-the-scene requests are requests going to https://check.torproject.org/?TorButton=true#[ID snip]. I've configured uBlock to block this; but prior to that there were 2 XHR requests to that URL; a minute apart after turning my computer on this morning.

There's no assurance that HTTPS Everywhere is making this request (because uBlock Origin doesn't know who did), but it's the only addon I have related to Tor. I'm running HTTPS Everywhere 5.2.8 with SSL Observatory disabled in regular Firefox 50.1.

davidjb avatar Dec 21 '16 21:12 davidjb

I'm on Nightly 55, SSL Observatory disabled, same issue.

ddraws avatar Apr 05 '17 13:04 ddraws

Thanks for the notifications, this was fixed in https://github.com/EFForg/https-everywhere/pull/10028 and will be deployed in 5.2.18.

Hainish avatar May 24 '17 19:05 Hainish