Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Privacy Badger crashes Firefox when opening sites that use basic auth prompts #1324

Closed
ghost opened this issue Apr 17, 2017 · 22 comments
Closed

Comments

@ghost
Copy link

ghost commented Apr 17, 2017

As the title says, Privacy Badger crashes Firefox when opening sites that use basic auth prompts. I have tested it opening a router and an IP cam on Firefox for Linux and for macOS 52.0.2. The IP for the devices have been whitelisted, and even disabling Privacy Badger for the sites the crashes happen. Had to disable Privacy Badger on the Add-ons Manager to avoid the crashes. I can access both devices using Chromium and Privacy Badger.

@ghostwords
Copy link
Member

Do the crashes still happen in Firefox with a new profile with Privacy Badger installed?

@ghost
Copy link
Author

ghost commented Apr 17, 2017

No, I have been making some tests and it seems that the crashes only happen when Privacy Badger and PassIFox are enabled at the same time.

@Bisaloo
Copy link
Contributor

Bisaloo commented Apr 28, 2017

I have been having the same issue for quite some time now. It didn't occur to me it was caused by privacy badger.

You can use the following test url: https://repos.archlinux.org/

When I click cancel with privacy bager enabled, firefox crashes. This is quite annoying.

I can provide further info if needed.

@Bisaloo
Copy link
Contributor

Bisaloo commented Apr 28, 2017

It's also worth noting that I don't use PassIFox.

@ghostwords
Copy link
Member

Hi @Bisaloo, do the crashes still happen in a new profile of Firefox with Privacy Badger installed?

@Bisaloo
Copy link
Contributor

Bisaloo commented Apr 30, 2017

No, it doesn't crash on a new profile with PB installed.

@ghostwords
Copy link
Member

Hmm, that's good to know. I wonder if it's one of your other add-ons (or some non-default Firefox setting?) that, in combination with Privacy Badger, is responsible for the crash. You could try disabling the other add-ons one by one to identify the culprit.

@ghostwords
Copy link
Member

Something else to check is whether the crashes are related to something in Privacy Badger's training data. We could test this possibility by seeing if importing Badger's data from your old profile into the new profile makes crashes happen in the new profile. To export/import Badger data, visit the Manage Data tab on Badger's options page.

@Bisaloo
Copy link
Contributor

Bisaloo commented May 1, 2017

Something else to check is whether the crashes are related to something in Privacy Badger's training data. We could test this possibility by seeing if importing Badger's data from your old profile into the new profile makes crashes happen in the new profile. To export/import Badger data, visit the Manage Data tab on Badger's options page.

Good idea! It doesn't crash on the new profile even when I import the data from my old profile.

Hmm, that's good to know. I wonder if it's one of your other add-ons (or some non-default Firefox setting?) that, in combination with Privacy Badger, is responsible for the crash. You could try disabling the other add-ons one by one to identify the culprit.

I will try that but something I have noticed that might put us on the right track is that I always get the login popup a second time after clicking cancel on my old profile with Privacy Badger disabled. This doesn't happen on a fresh profile.

@Bisaloo
Copy link
Contributor

Bisaloo commented May 1, 2017

Okay, in my case, the issue comes from the interaction between FoxyProxy and Privacy Badger.

When one or the other is disabled, the browser doesn't crash.

@Bisaloo
Copy link
Contributor

Bisaloo commented May 1, 2017

I can somewhat reproduce this issue when installing FoxyProxy and Privacy Badger on a fresh profile.

You need to configure FoxyProxy to Use proxies based on their pre-defined patterns and priorities (no need to define any proxy or pattern).

Go to any page with a login popup like https://repos.archlinux.org/ and the browser should crash the second time you click cancel.

Quite strangely, it crashes when I click cancel for the first time on my usual profile, hence the somewhat in my first sentence.

@ghostwords
Copy link
Member

Thanks for investigating @Bisaloo!

@loconox
Copy link

loconox commented May 31, 2017

Having the same issue with PB + PassIFox. Thanks :)

Edit: simple workarround : use the url auth like https://user:password@exemple.com/admin

@BenLand100
Copy link

I can independently confirm everything @Bisaloo found using Privacy Badger 2017.6.13.1, FoxyProxy Standard 4.6.5, and Firefox-54 on a fresh profile. I've noticed this issue for a few months now, but only recently was frustrated enough to narrow it down to some interaction between FoxyProxy and Privacy Badger.

@ghostwords
Copy link
Member

We should get this filed in Bugzilla@Mozilla if there isn't an issue for this already.

@loconox
Copy link

loconox commented Oct 17, 2017

I've done it : https://bugzilla.mozilla.org/show_bug.cgi?id=1409378

@ygrange
Copy link

ygrange commented Nov 14, 2017

And it was marked as invalid :(. Is there a way to disable parts of PrivacyBadger (or run it in a debug mode) so I could see if I can isolate where the issue comes from?

@ghostwords
Copy link
Member

Is this still an issue with Firefox 57?

My hunch is that this Firefox bug has to do with low-level WebExtensions APIs (like intercepting Web requests) that cannot be disabled without rendering Privacy Badger/uBlock (pfn/passifox#620 (comment)) pointless.

This might also be one of those Firefox bugs that happens when you have a WebExtensions add-on (Firefox 57 onwards only supports WebExtensions) and a legacy add-on installed together.

See above for a workaround.

@ygrange
Copy link

ygrange commented Nov 14, 2017

heh, good point, thanks. I wasn't aware of FF 57 coming out. Technically I can't test since passifox is now legacy, but I now have a stable(r) system (at cost of losing half my addons, but that's not your probem :) ).

@loconox
Copy link

loconox commented Nov 24, 2017

As PassiFox is not yet compatible with FF57, I switched to KeePassHttp-Connector. And not bug with Basic Auth.

@ghost
Copy link
Author

ghost commented Jan 9, 2018

Since PassIFox seems abandoned, and have been forked to KeePassHttp-Connector and there are no crashes in the fork I'm going to close this issue. If PassIFox is updated for Firefox Quantum it can be opened again.

@ghost ghost closed this as completed Jan 9, 2018
@ghostwords
Copy link
Member

Thanks for the update!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants