News for hackers. Stuff that matters.
Re:QuickJS Running in WebAssembly by Kiro on Sunday November 20, 2022 @07:56AM (#33680538)
Would you use this to run untrusted JS on the server?
Re:QuickJS Running in WebAssembly by gmatejka on Sunday November 20, 2022 @08:03AM (#33680587)
From what I understand, this allows you to run untrusted js anywhere, as long as there’s a wasm runtime.

This repo in particular is for JavaScript host environments

Re:QuickJS Running in WebAssembly by jansommer on Sunday November 20, 2022 @12:48PM (#33683253)
Not sure if I'd trust the wasm runtime. If someone breaks out of that it's game over. QuickJS in a unikernel in something like Firecracker VM would be the most secure approach and still provide good performance and startup time.

Another thing is resource consumption where you likely want to limit cpu- and mem-usage.

Re:QuickJS Running in WebAssembly by jitl on Sunday November 20, 2022 @01:07PM (#33683457)
I recommend Lambda as an easy way to create ephemeral Firecracker VMs and set overall limits on host + guest. For casual use, the memory and CPU limits available in the library should be enough.
Re:QuickJS Running in WebAssembly by jitl on Sunday November 20, 2022 @12:58PM (#33683355)
I use it on both client and server. A easy way to get excellent security in the server is to run inside AWS Lambda or similar FaaS that uses strong VM isolation; ideally with a lambda instance per user.
Re:QuickJS Running in WebAssembly by remram on Sunday November 20, 2022 @04:30PM (#33685565)
You can just run QuickJS (without std lib) as a separate process running as an unprivileged user with seccomp rules.

WASM probably doesn't add much there.