3 ms·
You misunderstand why people think JS is insecure. The problem is that JS is really easy to make mistakes in because of silent errors, dynamic typing, type coer
by smt88 11y ago
You misunderstand why people think JS is insecure. The problem is that JS is really easy to make mistakes in because of silent errors, dynamic typing, type coercion, etc.
The result is that your server-side JS is more prone to different kinds of security issues.
On the client side, in the browser, JS is sandboxed, so the language is almost irrelevant. If JS can't actually access the underlying system, no number of bugs make the code insecure.
- sangnoir 11y ago> The problem is that JS is really easy to make mistakes in because of silent errors, dynamic typing, type coercion, etc. All those are not a factor in this instance. It seems to me it's a result of calling exec() on unscrubbed user input, and this can be done in any language.
- smt88 11y agoI agree. I was responding to a tangential comment, rather than the root post.