When proxying stops in Firefox, notify user and don't undo proxy settings until user confirms
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:
- Users uses proxy
- Attacker disrupts WebRTC connections
- uProxy stop routing traffic through it
- 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.
Target: open source release
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.
Another UX approach could be to display a dinosaur-like interstitial (like the you lost network) with uProxy-specific messaging and options.
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
@salomegeo are you actively working on this?
I am, but you can take over if you want to.
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.
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!)
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.
I was not proposing to force users to close all tabs. I was proposing that they have the option to do so.
This is done for Chrome: https://github.com/uProxy/uproxy/pull/549