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?).
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: