News for hackers. Stuff that matters.
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.
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.

Re:Server-Side JavaScript Injection by pbz on Friday October 19, 2012 @12:53AM (#4672316)
What if one of the libraries you call into use it?
Re:Server-Side JavaScript Injection by ttflee on Friday October 19, 2012 @02:35AM (#4672517)
Perl has taint mode, which treats user input as unsafe before validation.

Does node provide anything similar?