Deno security model draws a sharp critique
The point
This opinion post argues Deno is not truly sandboxed, only filtering standard library calls in a fully privileged process. The author shows --allow-run=uname can be bypassed by setting PATH to a folder with a fake uname script.
Why it matters
For builders, permission flags alone are not a safe way to run untrusted code.
Key details
- LD_PRELOAD escape was patched by blocking variables starting with LD_
- Prompts share stdout and stdin with programs, so code can hide or fake them
- Advice: skip --allow-run and --allow-env, use --no-prompt, and sandbox with bwrap
Original ~9 min → 25 sec here Source: goldstein.lol, Aug 31, 2024