|
|
|
|
|
by ratorx
3 hours ago
|
|
There’s a big difference in the expected use of a file. If the file is attacker provided, and the fallback path is being used, the attacker can embed whatever WASM payload they want into the file since the file will be “opened” by “execute this offset into the file”. Compare that to JSON. The parser NEVER needs to execute arbitrary instructions. Parser might have bugs, but it avoids a whole class of issues. |
|
WASM physically cannot interact with the underlying host or perform I/O -- you need a WASI environment for that.