4 ms·
Without the security holes, hopefully.
by saagarjha 7y ago
Without the security holes, hopefully.
- pjmlp 7y agoWell, given that WebAssembly has decided that doing bounds checking inside a linear memory segment, or memory tagging wasn't worth the effort... Meanwhile real hardware is adopting memory tagging (with exception of x86/x64).
- saagarjha 7y agoI’m well aware of hardware support for enforcing memory safety, but that’s not quite what I’m talking about here: browser plugins have historically been poorly sandboxed, while WebAssembly should be an improvement in this area.
- pjmlp 7y agoWhich I doubt, given that it depends on what is being compiled into WebAssembly anyway. It is really nothing new here, just the politics to have a bytecode execution platform that everyone agrees on. For example, if I can replicate a Flash security flaw with CheerpX, should I blame Flash, CheerpX for being a good implementation, or WebAssembly for allowing Leaning Technologies to faithfully re-implement Flash?
- afiori 7y agoMemory tagging or inner bound checks have no effect on sandboxing. The wasm guarantee is that a module cannot escape it's sandbox, not that it is logically correct. the security model of the web site based on executing arbitrary code, so you would need to assume that the wasm you receive tagged it's memory in the most malicious way possible anyway. the way I see it real hardware needs this kind of checks more because they have worse sandboxing
- jankiel 7y agoAFAIK WebAssembly can't do more harm than JS since it lives in the same sandbox, so that's not a concern? You're basically running Flash in a small VM.
- afiori 7y agoAlso, Flash vulnerabilities were about escaping the execution sandbox of the web, so you should blame bad the implementation/specification of wasm in your case.