I escaped the WebAssembly's sandbox and got arbitrary shell execution on the host.
Source Reddit NetSec
Discussion
A security researcher reported escaping the WebAssembly sandbox, achieving arbitrary shell execution on the host system. The issue relates to WABT's wasm2c tool, which compiles WebAssembly to C code assumed to maintain sandbox security. This proof-of-concept demonstrates that the sandboxing guarantees can be bypassed, potentially allowing code execution outside the intended WebAssembly environment.
r/netsec (opens in a new tab)u/trustsigRobert0 points0 comments
As per WABT's SECURITY.txt, #2831 issue exists
For context:
WABT is a Binary Toolkit for WebAssembly developed by WebAssembly.org (W3C)
wasm2c is a tool inside of it, which is used by many projects like FireFox (via RLBox) to compile wasm down to a sandboxed c library, the assumption is the built C code preserves all WebAssembly's sandbox security features.
This PoC demonstrates escaping that sandbox.