Re:Server-Side JavaScript Injection
by kzahel on Thursday October 18, 2012 @10:08PM
(#4671991)
Strangely long article for what amounts to: server runs eval on user input, security problems follow.
[ Parent
| on HN ]
Re:Server-Side JavaScript Injection
by firefoxman1 on Friday October 19, 2012 @12:47AM
(#4672309)
It's funny how we've been taught for years not to use eval for "security reasons" and I always thought "eh, how much harm can someone do in their own browser? But I won't use eval anyway."
...then Node came along and I vowed to never consider eval even an option. I mean, that's a HUGE risk if you eval any user input on the server side. In fact, the only valid use I've seen for eval is template engines like Jade, but they don't touch user input.
What if one of the libraries you call into use it?