A real solution would be to lock down what network connections can be opened, what files can be read in a CSP manner, but then it needs to be made sure those files themselves can’t also be changed
The only relevant command line options I see "allow-write" and "allow-net" would not actually prevent much. Those command line options apply to everything being run equally.
So if I was writing a server (needs "allow-net"), it would have been vulnerable to the same attack, because all dependencies would have net access as well. It allows read access to everything also, which I see no command line argument to disable.
Not trying to belittle deno, because I think there are a lot of good things about it, but preventing this kind of attack is not one of them.
5
u/Fingebimus Nov 27 '18
A real solution would be to lock down what network connections can be opened, what files can be read in a CSP manner, but then it needs to be made sure those files themselves can’t also be changed