uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

When proxying stops in Firefox, notify user and don't undo proxy settings until user confirms

Open felixgr opened this issue 12 years ago • 11 comments

If an active uProxy connection stops working, Chrome will continue to use the default proxy settings.

Even though the user is notified about the proxy connection stopped working, we should not continue to serve traffic without a proxy connection until the users has explicitly confirmed he wants to. E.g. by clicking on the changed uProxy icon.

Otherwise an attack along the following would be possible:

  1. Users uses proxy
  2. Attacker disrupts WebRTC connections
  3. uProxy stop routing traffic through it
  4. Traffic continues to flow through default network, observable to an attacker

We should prevent any traffic from leaving the proxy otherwise an attacker might be able to learn information about a specific proxy user.

felixgr avatar Jun 25 '14 13:06 felixgr

Target: open source release

felixgr avatar Jun 25 '14 13:06 felixgr

The UX challenge is that it will look like their web-browser has stopped working (this was the behavior in v0.1.9). A good work-around might be to open a tab the uproxy options page and tell the user that they have lost connectivity, and provide a button there to reset back to the previous proxy settings.

iislucas avatar Jun 25 '14 14:06 iislucas

Another UX approach could be to display a dinosaur-like interstitial (like the you lost network) with uProxy-specific messaging and options.

felixgr avatar Jun 25 '14 15:06 felixgr

From discussion, we've agreed to do this for the working build of uProxy 0.5, with the UI rewrite in progress here: https://github.com/uProxy/uproxy/pull/346

iislucas avatar Sep 02 '14 13:09 iislucas

@salomegeo are you actively working on this?

lucyhe avatar Oct 31 '14 16:10 lucyhe

I am, but you can take over if you want to.

salomegeo avatar Oct 31 '14 16:10 salomegeo

One way you can handle differentiating between the local user stopping the proxy (resulting in the peerconnection close event, which should be ignored), and other types of peerconnection failures (remote peer cancels, or shuts down computer, or network error - all of which should display a warning to the local user) is to check whether there are currently any proxy settings set.

i.e. when the local user is getting access and clicks cancel, the UI should immediately clear the chrome.proxy.settings (or FF/node/etc equivalent), and only after clearing send a STOP_PROXYING command to the core. Then anytime the core gets a peerconnection close event, you can send it to the UI. The UI can then check if chrome.proxy.settings are set - if so it means that the proxy connection broke (non-user-initiated) and you can display the warning - but if proxy settings weren't set then this would mean it was local-user-initiated, so no warning needed.

dborkan avatar Nov 04 '14 14:11 dborkan

It's been pointed out that stopping the proxy suddenly could result in the user accidentally sending network traffic unproxied, because a tab was still open and performing network activity in javascript. I think we could resolve this by displaying a forced-choice warning dialog with two options: "Use default connection" and "Close my tabs and use default connection". (We would have to make sure that the tabs actually finish unloading before reverting the proxy config!)

bemasc avatar Nov 05 '14 23:11 bemasc

I don't think we want to force users close all the tabs they opened while proxying, some of them could be benign. But we should warn them somehow about these risks, because this could happen even if the user stops proxying.

On Wed, Nov 5, 2014 at 6:22 PM, Benjamin M. Schwartz < [email protected]> wrote:

It's been pointed out that stopping the proxy suddenly could result in the user accidentally sending network traffic unproxied, because a tab was still open and performing network activity in javascript. I think we could resolve this by displaying a forced-choice warning dialog with two options: "Use default connection" and "Close my tabs and use default connection". (We would have to make sure that the tabs actually finish unloading before reverting the proxy config!)

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/249#issuecomment-61900691.

salomegeo avatar Nov 06 '14 00:11 salomegeo

I was not proposing to force users to close all tabs. I was proposing that they have the option to do so.

bemasc avatar Nov 06 '14 15:11 bemasc

This is done for Chrome: https://github.com/uProxy/uproxy/pull/549

lucyhe avatar Nov 06 '14 16:11 lucyhe