3 ms·
You've got it the wrong way around - the browsers' sandboxing is good because they make use of resource isolation features provided by your kernel.
by 10000truths 5y ago
You've got it the wrong way around - the browsers' sandboxing is good because they make use of resource isolation features provided by your kernel.
- klabb3 5y agoIs that so? I thought even different contexts within the same browser context were well isolated. For instance, isn't the reason arbitrary web pages can't access my Lastpass credentials is due to this sandboxing?
- ale42 5y agoYou can't enforce real isolation in user mode, you need the kernel to do it.
- kevingadd 5y agoThe browser security model relies heavily on protection from things like process isolation, ASLR, etc though at this point browsers also implement their own defense in depth mechanisms on top. for example, jsc maintains separate heaps for each data type - referred to as cages, i think - so that it's hard to perform type confusion attacks. but there are entire classes of attacks that would be viable against browsers if not for the tools they get from the kernel like ACLs, page protections, ASLR, control flow guard, etc. When one part of the stack of protections fails, you can see things like persistent root on chromebooks where that one hole is used as a springboard to attack other vulnerabilities: https://news.ycombinator.com/item?id=15713103 https://news.ycombinator.com/item?id=15713103