4 ms·
Proof of Concept showcasing WASM program access files outside node:wasi's dir
- revskill 2y agoI am more curious on integration between pure C and nodejs though.
- boomskats 2y agoFrom the documentation[0]: > The node:wasi module does not currently provide the comprehensive file system security properties provided by some WASI runtimes. Full support for secure file system sandboxing may or may not be implemented in future. In the mean time, do not rely on it to run untrusted code. Also some notes on how to use wasmtime here[1]. [0]:https://nodejs.org/api/wasi.html#webassembly-system-interface-wasi https://nodejs.org/api/wasi.html#webassembly-system-interfac... [1]:https://gitlab.com/-/snippets/4779035 https://gitlab.com/-/snippets/4779035
- ricochetcode 2y agoI'd like to see wasi:filesystem evolve beyond preopens (which would avoid "ghosts" like this) as described in this blog: https://blog.sunfishcode.online/capabilities-and-filesystems/ https://blog.sunfishcode.online/capabilities-and-filesystems...
- jedisct1 2y agoI wouldn't run untrusted code that can access local files without a prior chroot(2) call, or something like bubblewrap.
- IshKebab 2y agoA proof of concept of something that is clearly documented? Did they even read the documentation?