432 points · by rahidz · 7y ago · 207 comments
- You can still manually install extensions. From now on, all installations will need explicit user confirmation.
- No extensions can be installed silently. This is what sideloading did, all extensions in a special folder were installed in all Firefox instances on the computer without the user's consent.
This is most definitely a Good Thing, as it means for example no malicious extensions can be silently installed by malware etc. Communicating this change could've been done better, though.
And assuming that's possible, doesn't that mean they've just made side-loading more difficult to do than actually prevented it?
If that's the case, it just means that _you_ won't be able to sideload, effectively, but Skype et al will put in some programming time and be able to sideload again.
Correct me if I'm wrong!
I think you'll need to review whatever method Firefox uses to flag what extensions the user approved.
In general, the OS provides different ways to store data in an encrypted manner so that only your application can read it back. (Keychain on Mac, and DPAPI on Windows.)
Furthermore, modern OSes provide sandboxing so that your application can not be tampered with. I'm not sure if Firefox uses this.
Also, if you're able to figure out how to hide a private key, (perhaps in the Keychain or via DPAPI) you can then use things like digital signatures to know what the user really allowed, and know if your approval mechanism was tampered with.
Granted, these mechanisms aren't foolproof... They just make it harder for malware to see things it shouldn't.
> This is most definitely a Good Thing, as it means for example no malicious extensions can be silently installed by malware etc.
So, imagine I'm writing some kind of desktop app that needs a companion browser extension to work correctly - a malware scanner, password manager, etc. The program will break if the companion extension is not present.
I guess for the user who installs the program, the installer can ask the user to visit AMO and install the extension themselves - however, how would this be accomplished for other users?
Or, when they click OK you can make your installer tell the OS to "run" your .xpi file, which will open Firefox, and ask the user whether that extension is really something they want to install. And then when they click no you tell them that they can initiate the .xpi install process at any time by going to your application's help -> install extension or something.
What you _can't_ do, and what you should never have done in the first place, is copy a file into the magic Firefox directory that forces that extensions to be loaded outside of the control of every user and profile for Firefox on that computer.
Yes, but not as XPI file. For manual installation, you can install similar to Chrome, that's from source code folder
What gave you the impression that XPI files would not be supported?
The title. In normal usage, the word "sideloading" implies installing an extension file (apk, xpi, ...) yourself instead of via an app store.
Reading the article, I understood they mean something different, but the title is very misleading.
Added: It's not clear to me how "hostile to power users" this particular change is. But my general statement still applies.
• Preventing malware and enterprises from silently installing unremovable extensions through a special mechanism
What this is not:
• Preventing users from installing extensions without using the Internet (they can just load an xpi file like always)
• Preventing power users from installing unsigned extensions (already not possible in standard Firefox except non-persistently for development, but Mozilla provide unbranded builds which let you use extensions)
Why this is being done:
• Preventing adware adding itself to your browser without your consent and making itself difficult to remove
Not why this is being done:
• Mozilla hates users / the open Internet / freedom (their foremost concern is protecting users from malware nonconsensually installing extensions, they have always provided versions of Firefox allowing you to do whatever you want if you want that, and indeed standard Firefox does let you load unsigned extensions temporarily)
If malware gains enough access to my system to put extensions in the sideloading folder I have bigger problems than Mozilla can protect me from.
Some crazy software companies then used a dark pattern - clicking 'I don't agree,' meant you agreed to install unwanted crap.
Adobe flash, Java runtime, utorrent and any installer from cnet.com are examples. That's why I installed Unchecky to protect me from bundleware and automatically uncheck, skip 'offerings' when installing new software.
Edit: As mentioned below, the Chrome team used bundleware extensively in its early days.
> If you self-distribute your extension via sideloading, please update your install flows and direct your users to download your extension through a web property that you own, or through addons.mozilla.org (AMO).
And what if I don't want to use a "web property" to distribute an extension? What if I want to give my users a honest-to-God file, whether via e-mail or IM message or USB drive?
> Please note that all extensions must meet the requirements outlined in our Add-on Policies and Developer Agreement.
Or what? I can't make an extension and give it to friends unless it meets your policy? That's pushing it a bit.
This is aimed at Joe Average User who maybe downloaded a program from sourceforge and suddenly every user on the computer has Myway Search installed, or something with serious privacy problems that's injecting itself into every web page they visit.
1) write an user script and load it into Violentmonkey, or CSS and load into Stylus. You can easily distribute some Javascript/CSS text via email or IM.
2) If user script or CSS not enough, you can write an addon, create a free Firefox account, submit the addon to your own account at https://addons.mozilla.org/en-US/developers/addon/submit/agr... and download the signed addon XPI file. Then you can distribute the file in whatever way you want, provided you are not violating any license agreement.
It's not important who this is aimed at but who it hits.
They should just release a Firefox preskool edition for Joe Average User.
But this is a great example of the rot in Mozilla. When Apple or Google sacrifice functionality to appeal to users that don't like computers, it is because they make more money by expanding their platform.
When Mozilla sacrifices functionality to try to attract new users, then what? They aren't really making any money off of it. They are just getting new users for the sake of it.
If Firefox has to remove so much functionality to become more popular, than why bother at all?
It is like if everyone is eating McDonalds, and you are selling healthy produce, but only 20% of the population ever wants your healthy food. So you start coating your healthy food in sugar and deep frying it. Even if you win, you lose.
> This is aimed at Joe Average User who maybe downloaded a program from sourceforge and suddenly every user on the computer has Myway Search installed, or something with serious privacy problems that's injecting itself into every web page they visit.
I think this is a lie. I mean, yes it does mitigate a specific kind of malware injection, sure. But if someone already can write to your filesystem, then it is game over. If Firefox actually had any marketshare and was a big enough target to care about, malware could simply inject malicious extensions some other way. Having the web browser trying to secure itself on a compromised system is a fool's errand. And it is not a justification for such a massive regression in functionality. It is not a rational decision.
I strongly suspect that it was a rational decision for Google to do this with Chrome; to put up roadblocks for users trying to have too much control of their browser, and justify it in the name of security. And then Mozilla irrationally copied them. Because they are a Google cargo cult.
> They should just release a Firefox preskool edition for Joe Average User.
Seems like that's Developer Edition. The Joe Average won't know the difference, so obviously the default has to be for him.
And yeah, I also don't like were this is leading and wish they would have found a better way.
You still can give your users a file, as long as it's signed my Mozilla.
> Or what? I can't make an extension and give it to friends unless it meets your policy? That's pushing it a bit.
You can still install unsigned extensions if you're using Beta, Nightly, or Developer Edition, which are intended for power users.
> Note, however, that your add-on may still be subject to further review, if it is you’ll receive notification of the outcome of the review later.
So other than hosting, I fail to see how this is different from distributing through the official channel — you still have to pass their review.
Note that I’ve never written a Firefox add-on (I’ve written plenty of Chrome extensions though), so please correct me if I’m wrong.
This raises some security concerns in theory (your user now has to run an executable that is not sandboxed by the browser), but they were already trusting you enough to plug in a USB stick.
--
[0] - Do you still own a copy of Firefox? That's probably the hidden crux of the issue.
And if you don't want to be subject to AMO's security review process, then out of those options, don't pick AMO.
Everything is fine. This is blocking automatic extension installation. You can still install extensions manually.
Mozilla is blocklisting benign extensions distributed outside of Firefox Add-ons which do not follow these guidelines [2].
They are working on disabling a method which allows users with root access to configure Firefox to load unsigned extensions [3], citing concerns over adware with root access. The feature is being disabled even on Linux, where such adware was never really a problem, despite making several other use cases impossible.
Requiring extensions to be signed by default is a great initiative by Mozilla, but we must be given ways to install private extensions in the release version of Firefox without disclosing the source code to Mozilla, or worrying that an extension for personal use may be blocklisted.
Forbidding local extensions in the release version of Firefox, without a way to override the option, guarded by administrative access and appropriate warnings, is heavy-handed and has a questionable threat model.
Signing can be turned off in Firefox Developer Edition (based on Firefox Beta) and unbranded builds (no automatic updates), but those browsers are not meant for end users. We must be given ways to install private extensions in the best version of Firefox, and that is the release version of the browser.
Not even Google is this heavy-handed, they allow installing local extensions in Chrome after users enable an option, although a warning is shown on browser restarts about the presence of external extensions, which can be dismissed.
[1] https://extensionworkshop.com/documentation/publish/add-on-p...
[2] https://github.com/jeremiahlee/page-translator/issues/26
edit: Like, look at your second link. The extension was running remote code loaded from a third-party site! I'm sure you see why Mozilla can't just let that happen.
The extension was running remote code from Google Translate. The extension's author could no longer run a safe, unlisted extension in their own browser. Mozilla should have no business in what code people run in their own browsers, when that code was distributed outside of Mozilla services.
This is esentially arguing that user scripts, and the extensions which enable them, should be banned too.
Why can't Mozilla treat their users as arbiter of what the use may do? They really don't have to decide for users what the only allowable extensions are; they could just advise rather than dictate.
1% of 500M users is still millions of users. I don't know what the actual fraction of Beta/Developer vs Release users is, but the scale is significant enough that the beta channel is definitely intended for end users.
IMO Beta is the best channel of Firefox. Release is just an outdated version maintained for corporate/enterprise installations.
This does not make sense if it is just to fight malware. I no longer believe that Mozilla is acting in good faith. It seems that Mozilla is trying to claw control of Firefox away from users.
I do not trust them to decide what extensions I can have. Once they have locked it down even more, are they still going to be so nice about approving extensions?
Either this is just hubris and contempt for users, or a poor attempt to copy Google's restrictions, or something worse.
Mozilla is working on achieving exactly that, and in fact Firefox is already worse than Chrome in this aspect, see my comment here: https://news.ycombinator.com/item?id=21418604
[1]: Not that I have one such exploit, but even without access to “tabs” permissions, extensions can still query the status of tabs, run benchmark processes, and add context menus with various “filters” such as right click on a text or image. Sure this doesn’t give direct access to data, but timing attacks and such should be possible.
Mozilla is trying to defend against malware or adware with root access on the device.
Malware with root access can do what it wants, inluding just replacing the Firefox executable, keylogging, making screenshots, intercepting traffic, or patching Firefox in any number of ways.
Adware can legally do the same if users give consent. Most antivirus software in fact injects code and is capable of controlling processes, they also intercept traffic to monitor for threats.
If both malware and adware can do esentially what they want on the device, then we are left with how this change affects users.
Users can install a different browser, or patch Firefox, but it becomes prohibitive for regular users to control their own browsers if they choose to continue using Firefox, because they lack the expertise to make the necessary changes.
Disallowing local extensions at all costs in Firefox has minimal security benefits, while greatly harming user and software freedom.
Extensions which require signing by uploading to addons.mozilla.org are controlled by Mozilla and can be blocklisted, it does not matter from where the user ends up downloading the extension.
This practice is worse than what is allowed in Chrome. Google allows installing local and private extensions that have not been signed, after an option is changed in Chrome.
...You absolutely can install extensions from outside the Chrome extension store, though?
"To give users more control over their extensions, support for sideloaded extensions will be discontinued."
During the release cycle for Firefox version 73, which goes into pre-release channels on December 3, 2019 and into release on February 11, 2020, Firefox will continue to read sideloaded files, but they will be copied over to the user’s individual profile and installed as regular add-ons. Sideloading will stop being supported in Firefox version 74, which will be released on March 10, 2020. The transitional stage in Firefox 73 will ensure that no installed add-ons will be lost, and end users will gain the ability to remove them if they chose to.
From what I read only if those extensions are declared acceptable (aka signed) by Mozilla. Pretending this gives me as user the control seems highly disingenuous. The only entity with all the power is certainly not the user anymore.
It's not like removing a hole in your city wall gives you less control over entry into your city, even though it does remove a method of entry.
This doesn't give users more control, it gives less.
People who wanted to control their own 'hole' might have wanted to let people in that the city elders didn't care for.
I'm aware of some installations which rely on both auto configuration and some proprietary extensions to the enterprises themselves which needs to be non-removable and always active.
Disabling installation of sideloaded extensions may make these installations harder, if not impossible.
The announcement in question pertains to a specific method of silently force-installing unremovable add-ons to Firefox.
Is there some way to submit this post or edit the title to maintain compliance with the submission rule and also make it less misleading?
Seems somewhat tone-deaf with one of the big criticisms of the project being their restrictiveness regarding add-ons.
The side-loading they are talking about here seems to have the goal to avoid the search-bar crazyness thru adding extensions without user acknowledgement.
Given the obvious threats that a single signing authority presents (as proven by Apple recently) Mozilla should be decentralising the signing here to a few hundred redundant parties worldwide.
Isn't kind of contradictory?
Please correct me if I'm reading it wrong.
Saying "To give users more control over their extensions, support for sideloaded extensions will be discontinued." Also seems disingenuous at best...
Sounds good to me. No more annoying adware extensions.
We are removing sideloading (The ability to silently install extensions from your local machine as an xpi file)
- This will not affect the ability to manually install extensions, they will need to be installed from a source code directory (Link to chrome post on same)
- This makes users safer (Malicious extensions will need to be approved and installed by a user)
- This makes it more obvious when an extension is installed (Confirmation dialog)
ETC
Thanks for making me read into it further
Isn't this how distributions install browser extensions from package repositories? Now I can pacman -S an extension. With this change I will not be able to.
More control, right.
I think that's pretty fair. Lots of other software that interacts/loads into another bit of software requires manual configuration.
What will Mozilla do next then? Close the source so malware authors can't compile their own Firefox, for security reasons? Only allow installation on DRMed systems?