Live data from Hacker News

Browser extensions are underrated: the promise of hackable software

geoffreylitt.com

161–170 of 189 posts

Re: Browser extensions are underrated: the promise of hackable software

#161
post #128

> The modern browser extension API has done a good job balancing extensibility with security No, it hasn't. Almost every single extension I install tells me some variant of "This extension can intercept and modify all of your browsing traffic". That's not "well balanced", it's completely broken. This is happening clearly for extensions by well intentioned people that do not need those permissions . I can't help but c…

>I can't help but cynically interpret the current situation as intentional on Google's part because having the security model be "trust Google to vet the extensions" happens to centralise all the power with them.

Isn't the situation the same with Mozilla? I thought that the reason was that most extensions do, in fact, need to be able to view and modify all your web browsing traffic. For example, my essential addons are uBlock origin, uMatrix, and Tree Tabs. Clearly the first needs to modify web pages, the second needs to intercept traffic, and the last needs the entire list of web pages I have open.

Can you give an example of an extension which requires permissions it shouldn't need?

Re: Browser extensions are underrated: the promise of hackable software

#162
post #146

Earlier quoted context omitted.

> Extensions should be able to have their permissions limited by domain (e.g. to customize YouTube or Reddit) at a minimum. This seems like a good idea until you realize that the behavior you might want to modify is coming from a different domain loaded by the page and you have no control over how they set that up.

So the app should ask for a permission to a reasonable set of domains, and when you're installing it, you should get a clearly laid out permissions / privacy risk management worksheet to look at and agree to.

That would indeed be nice, but currently the domain list is hardcoded in the json file.

Re: Browser extensions are underrated: the promise of hackable software

#163
post #129

Earlier quoted context omitted.

That's why you uncheck "update add-ons automatiocally' in the add-on manager.

This risks using a known-vulnerable extension unless you monitor releases another way

Vulnerable extensions are exploited when you access websites that can abuse the holes in the extension (XSS for example). You have to visit the site that the extension targets that has the attack payload for the extension.

I think that risking this by updating manually is more acceptable than getting the mallicious code directly auto-installed as soon as it's released by the attacker no matter what you do.

Re: Browser extensions are underrated: the promise of hackable software

#164
post #129

Earlier quoted context omitted.

That's why you uncheck "update add-ons automatiocally' in the add-on manager.

Standard users would have no idea they can do that or even bother. Extensions are risky additions to the browser because it's 3rd party code that can read your web pages and local storage values.

Yes, but I didn't talk about standard users.

Also, most of my extensions are not 3rd party code and I want them to have full access.

For the rest I update them once in a while and go check

    ~/.mozilla/**/*.xpi
for changes with something like this.

    find -maxdepth 1 -mindepth 1 -type d ! -name .git -print0 | xargs -0r rm -rf

    for f in ../extensions/*.xpi ; do
            unzip "$f" -d "$(basename "${f%.xpi}")"
    done

    git add -Af .
    git commit -m "Changes"

Re: Browser extensions are underrated: the promise of hackable software

#165
post #161
post #128

> The modern browser extension API has done a good job balancing extensibility with security No, it hasn't. Almost every single extension I install tells me some variant of "This extension can intercept and modify all of your browsing traffic". That's not "well balanced", it's completely broken. This is happening clearly for extensions by well intentioned people that do not need those permissions . I can't help but c…

>I can't help but cynically interpret the current situation as intentional on Google's part because having the security model be "trust Google to vet the extensions" happens to centralise all the power with them. Isn't the situation the same with Mozilla? I thought that the reason was that most extensions do, in fact, need to be able to view and modify all your web browsing traffic. For example, my essential addons a…

[deleted]

Re: Browser extensions are underrated: the promise of hackable software

#166
post #161
post #128

> The modern browser extension API has done a good job balancing extensibility with security No, it hasn't. Almost every single extension I install tells me some variant of "This extension can intercept and modify all of your browsing traffic". That's not "well balanced", it's completely broken. This is happening clearly for extensions by well intentioned people that do not need those permissions . I can't help but c…

>I can't help but cynically interpret the current situation as intentional on Google's part because having the security model be "trust Google to vet the extensions" happens to centralise all the power with them. Isn't the situation the same with Mozilla? I thought that the reason was that most extensions do, in fact, need to be able to view and modify all your web browsing traffic. For example, my essential addons a…

I think there's a lot of room for finer-grained permissions. Why is it that removing (uBlock Origin), adding (Stylus), and modifying (Privacy Badger) elements all require the same permissions?

Re: Browser extensions are underrated: the promise of hackable software

#167
post #128

> The modern browser extension API has done a good job balancing extensibility with security No, it hasn't. Almost every single extension I install tells me some variant of "This extension can intercept and modify all of your browsing traffic". That's not "well balanced", it's completely broken. This is happening clearly for extensions by well intentioned people that do not need those permissions . I can't help but c…

This is fear mongering. Every website could try 0-days exploits or drive-by downloads . Every app can abuse its permissions and track you/upload your photos/eavesdrop on your conversations. Every neighbor you have could spy on you through your windows/note when you come and go/follow you. Your grocery shop owner can poison your food. Etc etc. You can't blindly trust anything "from the wild" yet you can't really live without it. That's why we naturally do give trust by reputation, but at the same time remain vigilant.

Re: Browser extensions are underrated: the promise of hackable software

#168

Earlier quoted context omitted.

> If plugins were allowed for apps, pretty sure there'd be a better story around privacy today . Honest question : Can you expand on how this would work please? If anything, extensions as in chrome extensions is something I try to avoid as much as possible : giving access to all of my data to a third party extension promising that is going to increase my privacy but that I need to trust 100% with a complete access is…

> Honest question : Can you expand on how this would work please? Such a thing is already possible today. Some require root, some require breaking PlayStore's terms of use. One such example is: XPrivacyLua [0] by the creator of NetGuard. It helps fake location data, hide contacts and calendar, fake device-id, IMEI, MAC addresses etc on a per-app basis. Another example is how VPN in Android [1][2] is widely used to bl…

I just want to add that Android has a barely documented feature "Resource Overlay", designed to allow OEMs to customize stuff. [0] is a quick tutorial, [1] a bit longer introduction. The focus on configuration instead of code should make security a bit easier. Obviously they made it near impossible for even more advanced users to use, so opening that up a bit would be a good first step...

[0] https://code.tutsplus.com/tutorials/quick-tip-theme-android-... [1] https://developer.sony.com/posts/sony-contributes-runtime-re...

Re: Browser extensions are underrated: the promise of hackable software

#169

Earlier quoted context omitted.

But then you're using the beta channel instead of the stable channel. It's great that you're fine with that, but everyone shouldn't have to. At the absolute least , Mozilla should make Unbranded auto-update.

I've been using FF nightly - the most untested version, hot off of git - for two years and have yet to encounter a single bug which I could not reproduce in normal FF (mainly rare crashes on certain sites some of the time).

With all respect, I think that Mozilla has a lot more testers than just one person. If the beta channel (or nightly) was truly bug free, it would be turned into the release channel.

In other words, there is presumably a reason the release channel exists. As long as it does, the desire to use the release version alongside unsigned extensions is reasonable, and there should be a supported pathway.

Re: Browser extensions are underrated: the promise of hackable software

#170
post #161

Earlier quoted context omitted.

>I can't help but cynically interpret the current situation as intentional on Google's part because having the security model be "trust Google to vet the extensions" happens to centralise all the power with them. Isn't the situation the same with Mozilla? I thought that the reason was that most extensions do, in fact, need to be able to view and modify all your web browsing traffic. For example, my essential addons a…

I think there's a lot of room for finer-grained permissions. Why is it that removing (uBlock Origin), adding (Stylus), and modifying (Privacy Badger) elements all require the same permissions?

Because all three of those are, at the core, the very same thing? Whether removing, adding, or modifying, you're changing the contents of the HTML/CSS.

Whether it should be done in a more finely grained way, not sure, but if you have the permissions to modify then by definition you have the permission to remove or add content.

Post reply on HN