Baldur's Gate 2 reincarnated in the browser using WebAssembly
browser-games.itch.io
browser-games.itch.io
But that seems to be an insane effort.
[0] https://store.steampowered.com/app/257350/Baldurs_Gate_II_En...
https://itch.io/t/1028526/cross-origin-policies-for-webassem... itch.io enabled them globally in the past, but it broke some things.
This is truly the future of gaming.
I thought the whole point of WASM was that it was sandboxed by the browser. Is that not the case, or is it just poorly done?
Sandboxing is only part of the solution, it doesn't protect all possible attack vectors.
For example, bounds checking is only enforced on the boundaries of the linear memory segment, not inside it.
So if you have a Web Assembly module, originally written in C, where all memory allocations get mapped into a single linear memory segment, there is no protection against possible corruption of neighbouring data structures.
With this in mind you can indirectly attack a module by providing data to the public APIs that would eventually change the expected results, for example returning an admin token for a security module, instead of a regular one that the API was expected to return for then given user id.