News for hackers. Stuff that matters.
Re:I'm not a fan of Deno's security model (2024) by cadamsdotcom on Sunday November 08, 2026 @06:41PM (#50418948)
Accepting terminal input for security decisions after printing arbitrary untrusted output. Fundamental error that comes from a design flaw in stdio. stdio only offers one way to interact with users. That pulls naive designers into this trap.

The "in-band vs. out-of-band" is nothing new. Worth looking up 2600hz, the signaling frequency of the US phone system way back when. Pick up a handset, generate a 2600hz tone. Suddenly you're talking to the call routing system. It's a few steps from there to making free phone calls anywhere in the world. Call routing signaling should've been separate, out of band - but they'd probably have needed extra wires for signal lines ($$$) so the tradeoff was made, risk accepted.

The phone system designers accepted the risk to save money. Deno doesn't need to save money by running less copper so my money's on naïveté.

Deno should disallow arbitrary output on stdout/stderr. Even prefixing the lines won't work because control characters like ^H are sent in-band and can delete the prefix.

Thankfully there're great alternatives.

There are no comments on this comment yet.