News for hackers. Stuff that matters.
Re:Browser Extensions I Can't Live Without by Groxx on Tuesday August 11, 2020 @06:56PM (#24126943)
I really wish browsers would change their security model for extensions :\

"all or nothing" is ridiculous as the only option - let me revoke access or restrict it to specific sites. I may not care if X has access to site Y, but giving it access to Z means giving it the keys to my life so hell no. I don't even want to use it on Z.

Re:Browser Extensions I Can't Live Without by vezycash on Tuesday August 11, 2020 @08:07PM (#24127357)
> "all or nothing" is ridiculous as the only option - let me revoke access or restrict it to specific sites.

Thank you. I've been waiting for Firefox to add this feature for almost 2 years. For a privacy focused browser, this should be a must have, top priority.

Re:Browser Extensions I Can't Live Without by csin on Wednesday August 12, 2020 @01:43AM (#24128911)
I think they have already? In the old days, you just click once to install a mouse gesture addon.

Now you have to dig into the settings. And give it permission before it could work. At first I found that annoying. But upon reflection. I guess it's a necessary evil.

Edit: I misread the parent comment.

Re:Browser Extensions I Can't Live Without by gnicholas on Tuesday August 11, 2020 @07:04PM (#24126987)
Chrome lets you limit access to a list of specified websites. Right click the extension icon, click manage extension, and find the option there.
Re:Browser Extensions I Can't Live Without by sershe on Tuesday August 11, 2020 @11:51PM (#24128442)
I wish there was a way to exclude some websites instead! I want most of the extensions like ad/script/etc blockers to run everywhere, except say GMail.
Re:Browser Extensions I Can't Live Without by Groxx on Tuesday August 11, 2020 @07:26PM (#24127123)
Excellent, I hadn't noticed that one yet. Yeah, that's a good start.
Re:Browser Extensions I Can't Live Without by gnicholas on Tuesday August 11, 2020 @08:47PM (#24127570)
I only discovered it because I was going to add a similar feature to my Chrome extension, and I was researching to see how others tend to implement it. I was glad to see that Chrome offers the feature natively, and surprised to see that Firefox didn’t.
Re:Browser Extensions I Can't Live Without by ffpip on Wednesday August 12, 2020 @05:06AM (#24129918)
You can add domains to protected sites. No addons will work there.

So if you want no extension to be able to read gmail,

Add mail.google.com or google.com to

extensions.webextensions.RestrictedDomains in about:config

Re:Browser Extensions I Can't Live Without by mehrdadn on Tuesday August 11, 2020 @07:37PM (#24127196)
It's fairly new (maybe 1-2 years old, I forget), that's probably why you didn't notice it.
Re:Browser Extensions I Can't Live Without by rob-olmos on Wednesday August 12, 2020 @01:25PM (#24134413)
Agreed. Like with Pocket's Chrome extension permission model[1] that has a "read everything on all websites", when really it only needs brief access to the URL when I want to save something.

I tried changing the "Site access" setting to "On click" -- but then the extension started acting funny or not working in some cases.

Chrome has added a more limited "activeTab" permission[2], but even that might be too much since it grants control to the tab and continues to allow permission on the same origin.

Like the GP said, even if the extension developer isn't trying to exfiltrate data, they should do more to protect users from a compromise of their extension, and browsers should give them the models to do so.

IMO, good security models can be a foundation forward to better overall security compared to desktop apps since it seems that browsers are becoming an OS of their own.

1: https://help.getpocket.com/article/912-what-permissions-does...

2: https://developer.chrome.com/extensions/activeTab

Re:Browser Extensions I Can't Live Without by scns on Wednesday August 12, 2020 @01:09AM (#24128762)
In Firefox you can choose for every extension if it is allowed to work in private mode.
Re:Browser Extensions I Can't Live Without by pvorb on Wednesday August 12, 2020 @01:13AM (#24128789)
But this ties me to use private mode everytime I visit an important site. This is not what I want.
Re:Browser Extensions I Can't Live Without by ffpip on Wednesday August 12, 2020 @05:05AM (#24129910)
You can add domains to protected sites. No addons will work there.

So if you want no extension to be able to read gmail,

Add mail.google.com or google.com to

extensions.webextensions.RestrictedDomains in about:config

Re:Browser Extensions I Can't Live Without by aabbcc1241 on Tuesday August 11, 2020 @10:38PM (#24128083)
You could fork the extension and modify it for your own usage
Re:Browser Extensions I Can't Live Without by Groxx on Tuesday August 11, 2020 @11:31PM (#24128361)
while true, you can say this about anything which doesn't have any permissions system too. why worry about end-user security, they can just fork and modify.

which means, effectively, that it becomes a 0.001% or worse event. arguably the whole point of privacy-focused (or even -aware) software is to increase that beyond "fork and modify"'s ratio, as far as possible, because it doesn't work in practice for the vast majority of the globe.