Discussion about this post

User's avatar
Nan Deng's avatar

The OpenCode case is a clean split between isolation and authorization. Binding to 127.0.0.1 kept the server off the public internet, but with no authentication any page could still submit a form to the update endpoint and pick the code that ran. The Content-Type check that used to reject non-JSON did not survive the framework rebuild, and those versions were downloaded more than 647,000 times before a fix. I would treat localhost as a network boundary only, and require an explicit allow for who may trigger an install—otherwise the browser becomes the caller the bind address never expected.

Ready for more?