by tester756 · 4y ago · 0 comments
https://microsoftedge.github.io/edgevr/posts/Super-Duper-Sec...
>Looking at CVE (Common Vulnerabilities and Exposures) data after 2019 shows that roughly 45% of CVEs issued for V8 were related to the JIT engine. Moreover, we know that attackers weaponize and abuse these bugs as well; an analysis from Mozilla shows that over half of the “in the wild” Chrome exploits abused a JIT bug, as illustrated in the charts below. Note “Edge” below refers to the legacy version of Edge.
https://msrc-blog.microsoft.com/2019/07/16/a-proactive-appro...
>Figure 1: ~70% of the vulnerabilities Microsoft assigns a CVE each year continue to be memory safety issues
>C++ does have its virtues that make it attractive and in some cases essential: it is blisteringly fast, it has a small memory and disk footprint, it’s mature, it’s execution predictable, its platform applicably is almost unparalleled and you can use it without having to install additional components. If only the developers could have all the memory security guarantees of languages like .NET C# combined with all the efficiencies of C++. Maybe we can: One of the most promising newer systems programming languages that satisfy those requirements is the Rust programming language originally invented by Mozilla.
https://www.chromium.org/Home/chromium-security/memory-safet...
>The Chromium project finds that around 70% of our serious security bugs are memory safety problems. Our next major project is to prevent such bugs at source.
>Using safer languages anywhere applicable
>>Rust
______________
As you see you can literally turn off JIT with a few clicks and make your browser way safer.
Unfortunely you cannot force people to use Rust or other safe environments like .NET or Javas
BTW Chromium is testing rewriting critical parts in Rust (https://chromium.googlesource.com/chromium/src/+/refs/heads/...)
Rust is an improvement to memory related issues
My guess is yes and these are issues that would affect both languages equally, with Rust it just happens to be in an `unsafe` block.
That language has the potential to really change the entire landscape.
Am I the only one not able to see this for browsers other than Microsoft Edge?
Disabling JIT looks like cli flags only for Chrome/Brave/etc, which isn't activated when you've clicked on a link outside the browser or other methods for launching the default browser application, probably the most important times for security as it's often initiating login flows for apps or password resets.
Additionally it disables WASM, whereas Edge has alternate means to run WASM with JIT disabled.
Pretty disappointing to see from Google given the sheer extent of other in-browser settings flags.
Gmail takes forever to load in my machine. How much worse is the performance if I disable the JIT? x5?
Protip: archive your inbox regulaely to improve gmail load time.
There seem to be some experiments with adding Rust code slowly, but there seem to be some interop issues.
(acknowledging that this is a very fuzzy question)