News for hackers. Stuff that matters.
Re:Wasm3 – A high performance WebAssembly interpreter in C by johncolanduoni on Monday January 13, 2020 @02:30AM (#22032545)
The CLR doesn’t guarantee control flow integrity (modulo type confusion) or any form of isolation when linear memory accesses are used. So here WASM offers another option in the middle between trust and don’t trust: “trust unsafe module only to not compromise its own functionality; no attacking the rest of the process or kernel” (modulo runtime bugs).
Re:Wasm3 – A high performance WebAssembly interpreter in C by pjmlp on Monday January 13, 2020 @02:39AM (#22032593)
Well for that execution of unsafe Assemblies was already enabled anyway, so there isn't much that the verifier can do.

Which is something that WASM isn't being honest about, corruption of internal data structures is allowed.

If I can control what goes into memory just by calling module public functions with the right data set and access patterns, CFI won't help a thing.

Suddenly the authorization module that would authenticate me as regular user, might give me another set of capabilities and off to the races.

Re:Wasm3 – A high performance WebAssembly interpreter in C by my123 on Monday January 13, 2020 @04:00AM (#22032914)
Note for C++ on the CLR that you can use /clr:safe as an MSVC compilation argument. This errors out when trying to access to random pointers at compile time.

/clr:pure uses unsafe and supports those cases though.

And yeah, WebAssembly only doing bounds checking within a single memory block and not actually offering true bounds checking is a big downgrade, and a pretty much unjustified one (+ it's rare among JITted languages...).

Re:Wasm3 – A high performance WebAssembly interpreter in C by zozbot234 on Monday January 13, 2020 @05:15AM (#22033238)
If you care about "true" bounds checking, just compile to Wasm from a safe source language. Besides, Wasm does support multiple memory blocks so a potentially-unsafe module need not "taint" anything else.
Re:Wasm3 – A high performance WebAssembly interpreter in C by pjmlp on Monday January 13, 2020 @05:24AM (#22033266)
Security is as strong as the weakest link.
Re:Wasm3 – A high performance WebAssembly interpreter in C by my123 on Monday January 13, 2020 @05:28AM (#22033284)
Memory blocks have a page granularity, which makes them useless for pervasive checking. (+ you can do the same thing to a reasonable extent with C even, with guard pages.)