Remix.run Logo
galaxyLogic 3 hours ago

So maybe the solution would be to sandbox Node.js?

I'm not quite sure what that would mean, but if it solves the problem for browsers, why not for server?

simiones 3 hours ago | parent | next [-]

You can't sandbox the code that is supposed to talk to your DB from your DB.

And even on client side, the sandboxing helps isolate any malicious webpage, even ones that are accidentally malicious, from other webpages and from the rest of your machine.

If malicious actors could get gmail.com to run their malicious JS on the client side through this type of supply-chain attack, they could very very easily steal all of your emails. The browser sandbox doesn't offer any protection from 1st party javascript.

int_19h 3 hours ago | parent | prev [-]

Deno does exactly that.

But in practice, to do useful things server-side you generally need quite a few permissions.