An unofficial, read-only Hacker News reader. Join the beta →

2035 came early (opens external site)

1037 points by setheron 4 days ago | fzakaria.com | 382 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. I have a hard time forgiving JS for normalizing the practice of blindly running whatever some remote server sent you after only validating that that server isn't lying about its name. It's like of your neighbor never locks their doors and now the neighborhood has robbery problem that would just never have gotten off the ground if they had.

    The web would be such a nicer place if browsers were built to respect the user's preferences about which content they trust separately from which software they trust.

    I'm aware that with some care you can build a wide variety of things with JS. You don't have to import the insane trust model that's part of its origin story. But I can't shake the feeling that the whole space is a slippery slope towards accidentally making bad assumptions that lead to your user being mistreated by a third party.

    Replies (1)
    1. Most browsers support (maybe with an extension) running JS only from sites you have decided to trust.
      Replies (1)
      1. That's quite different than restricting the execution of code that you've decided to trust. Control over a given domain name, a given server, or a given http response payload, is perpetually up for grabs in ways that just don't apply to software packages whose contents are identified by cryptographic hash.

        The attack surface for code served over the web at runtime is unnecessarily large, even if you've allow-listed the originating domain name. Also, it puts too much power in the hands of whoever controls that name, and power corrupts. People who are trustworthy today, will start selling their users out tomorrow.