Serious Discussion Should browser extensions be armed to the equivalent of people carrying guns yes or no?

Thread details

LinuxFan58

Level 26
Verified
Top Poster
Well-known
Hi, during the development of my (personal) extensions I found two strange things (Ghostery using an Eval-bridge between main and restricted world and the infamous uBO/uBOL json edit script family). I am not going into the risk (contributor supply chain) again, I had lengthy discussions (with Botty, so @Bot please let's not repeat that discussion, in the end you often had to admit I was right :-) ) IMO justified the design decisions I took:

a) drop scriptlets requiring trust
b) drop scriptlets accepting raw JavaScript as input
c) drop scriptlets accepting long input parameters

The security limitations also comes with a functional limitation (e.g. unable to block in-video ads which are stitched into video's at server side, inability to block some cookie prompt formats), but the cause simply not justify the means. IMO Giving extensions (through user script permission) super powers simply does not justify the (trusted third-party code) risk which are related with such strong means. For me it is like the gun discussion in the US. People with guns are better protected, but guns can also be misused and people with guns also become a threat.

What has this to do with my extensions?
I first developed uBlock Dynamic and 3P-Matrix-lite as extension for power user (like me) with a nerd-like fascination for security. My wife was using uBOL on het Chrome browser in Windows. After the XSS poc (uBO in Firefox, for uBOL in Chrome this probably would have a much lower impact or breach severeness), I decided I needed to make uBD and 3PM useable for ordinary PC users (like my wife). Bottom line: with a little more creativity the need for such powers can be substantially reduced.

For simple use: uBD (with I am power user disabled) + zero config Safe Surfing Sentinel + (optional for UnGoogled Chrome or Linux) Download Sentinel
For power users: uBD (with I am power user enabled) + 3PM (level 3 for casual surfing, level 2 startup mode).

By using heuristics both the protection extensions (3PM or the combo SSS + DS) and the adBlock extension (uBD) use heuristics to overcome most of the functional limitations by applying stricter secuity standards. uBlock Dynamic Seamless surfing and the (on-demand) Ad & cookie leftover cleaner feature both use heuristics. uBD also has 6 safe variants for unsafe scriptlets (replacing them when filters are compiled).

Back to our discussion: yes or no to extensions with user script permissions?
Besides the principle argument, uBD (easy smart mode) with SSS proof that extension builders can build workarounds (to the functional limitations that come with these extra security measures) for 95% percent of the edge cases. With the limited real word surfing annoyances, using user script permissions in an adblocker would be like providing machine guns to cross guards in stead of stop-signs and orange hi-vis vests. In Dutch we say it is like using a canon to shoot a mosquito when looking at use cases of really needing user script permission.

@Bot the floor is yours to reply
(maybe you can explain a little history on the reasons why Active-X and NPAPI-plugins proved to be a bad idea and were removed and the reasons to upgrade Mv2 to Mv3?).
 
Last edited:
Brave users can run a field test on how many or few annoyances you are confronted with when surfing using ONLY SAFE scriptlets (and see for themselves that using unsafe scriptlets for the remaining edge cases is like using a canon to shoot a musquito).


Open Brave://flags, search for filter and disable advanced options of brave filters (basically allowing only host like network rules which are handled by DNR)
1796029255143.png


Then install uBlock Dynamic and disable all below filters (only using safe scriptlets for annoyances, anti-adblock and your language filter).
1796032704116.png

I know AG remove param is also a Brave build-in filter, but the AG remove param rules require Google review when I update uBD, so when disabling all advanced filtering in Brave this filter might also be disabled and you therefor better enable this anti-tracking filter in uBD.


Run uBD in
a) Easy mode (disable I am power user in options in settings dashboard)
b) Seamless surfing in smart
c) Select Ad & cookie leftover cleaner when faced with ads or cookies

1796029719619.png


Report back how many annoyances you are faced with and when encountering annoyances please provide example websites links (with my surfing habits I see none), so I can investigate whether it is possible to find safe alternatives to hide/block them. You can keep your language filter(s) enabled (uBD autmatically enables them), they are limited to safe scriptlets to.

You might install Safe Surfing Sentinel as well (zero-config browser protection).

@Jack, does @Bot has capabilities to run such a field test?
 
Last edited:
Fiuuuu... that was a close call!!
After a quick, cursory read, I thought to myself:

“Surely this "obsessive" guy doesn't want everyone who uses uBo + uBoL to have to get a gun permit?” 🫣

Then I read it more carefully.......

P.S.

Just kidding, OK? 😊
 
Aren't we shooting with a big gun at Brave? ;)
No the suggestion is only for the field test :-)

I am not telling people to use these settings when they use Brave Shields, it cripples Brave's adblocking.
It is just to show that most of us, carry a few bazooka's and grenade launcher's in their scriptlet arsenal, but hardly use them.

Version 11.3 will adopt some of JShelter's little lies approach to reduce breakage risk and will get an option to omit fingerprinting signals which Brave already tackles in its in-browser fingerprinting protection. Brave dropped its strict (anti-) fingerprinting measures because it breaks to much (when applied globally for each website).

The advantage is thet Fingerprint inspector looks at a specific website only, so it does not has the performance penalty of JShelter nor the breakage hassle of Brave Strict fingerprinting protection.
 

MalwareTips community

Join the discussion. It's free.

Create an account to reply to this thread, ask your own questions and get help from people who know security.

  • Reply and ask your own questions
  • Get an alert when someone answers
  • Free malware removal help from volunteers

Free account

Berny nicolaasjan Jan Willy Jack 75,757 members since 2010
or
Have malware? Get free help

Recently browsing

Members and guests who viewed this thread in the last 5 minutes

Back
Top