4 ms·
I'm not sure I agree. If you can affect the state of the runtime in ways that are not intended to be possible by the WASM API, this breaks sandboxing requiremen
by nickmooney 7y ago
I'm not sure I agree. If you can affect the state of the runtime in ways that are not intended to be possible by the WASM API, this breaks sandboxing requirements. Even if you can't break out of the current process (due to isolation provided by the kernel), you can still cause arbitrary code execution within the process.
- int_19h 7y agoWASM is originally designed for the sandbox, but it doesn't mean that all its practical applications have to be sandboxed.
- sitkack 7y agoWasm (not an acronym) assumes a sandbox, if an execution environment doesn't provide a sandbox it needs to clearly call that out. This one clearly needs work in validating the Wasm sent to it.
- BenjiWiebe 7y agoIsn't it a combination of the first letter of Web and the common abbreviation for assembly language, ASM?
- int_19h 7y agoThey're correct - it's an abbreviation (of Web assembly), but it's not an acronym, so "Wasm" is the proper casing.
- kllrnohj 7y ago> you can still cause arbitrary code execution within the process You start with the ability to do arbitrary code execution, you don't have to find an exploit to do that. And since your WASM code is the only thing in the process, what is an exploit going to let you do that you couldn't already do anyway?
- sitkack 7y agoI nominate this thread for the Worst of HN. Reminds me of work.
- kllrnohj 7y agoYou seem to be confused. Arbitrary code execution is just the ability to run code. It is a security attack when a user that wasn't supposed to be able to run code can now run code. But WASM and JS runtimes would be literally useless if you didn't start with the ability to run arbitrary code. Their sole purpose is to run code. You feed them code, they run it. You were supposed to have the ability to run code, therefore arbitrary code execution is not an exploit here. Maybe you're confusing it with privilege escalation, though? Or a sandbox escape? But FYI those aren't the same thing. At all. Alternatively if the worst you've seen on HN is one person seemingly confusing arbitrary code execution with privilege escalation you must not be on HN very much.
- sitkack 7y agoYour rhetorical behavior is why I should leave HN. Trite, condescending, arrogant.