3 ms·
> Popular JS VMs have huge attack surfaces No, not really? Depending on the browser they have generally have a small-to-medium attack surface. Yes, they can JI
by saagarjha 7y ago
> Popular JS VMs have huge attack surfaces
No, not really? Depending on the browser they have generally have a small-to-medium attack surface. Yes, they can JIT, but often they can't do much else.
> and are prime candidates for gray and black market vulnerability hunts
Because they are remotely exploitable, nothing more.
> They are often not maintained
The world's deepest pockets and countless hours from the world's smartest minds go into maintaining them…
> once a vulnerability is discovered, the entire app is compromised
Not in modern browsers.
> In the case of a highly-privileged process
Oh good, so not the JavaScript process, right?
- LeoNatan25 7y agoHow many vulnerabilities have existed in Electron apps, sandboxing and all? I meant maintained by app developers who include the runtimes, not the runtimes themselves.
- saagarjha 7y ago> How many vulnerabilities have existed in Electron apps, sandboxing and all? Significantly fewer than you'd find in a comparable C++ application, probably, and with much less effort put into securing things like "if I index into this array am I allowing for an arbitrary write primitive" and "can I safety use this object without giving an attacker code execution". Electron bugs tend to be of the sort like "oops, we can load a file from the filesystem because we forgot a string check", and C++ bugs are "that, but with the other things I just mentioned".
- LeoNatan25 7y ago> probably Based on what? On C++ you have complex systems with difficult code to get correctly. With Electron, you have terrible chat apps that take 1GB of memory to display a few chat bubbles that allow remote execution into machines running them. The data to compare the two is just not there to assume anything like you just did. Meanwhile, electron apps have proven quite insecure, despite not being able to allow arbitrary write primitive by indexing into an array.