News for hackers. Stuff that matters.
Re:The Trello Tech Stack by radagaisus on Thursday January 19, 2012 @03:21PM (#3486475)
You CAN do injections to MongoDB code. An injection is basically 'allow user input to interfere with code' so for mongoDB assuming the query is a string you can do '{name: ' + user_input + '}'. and user_input, without sanitizing it (which is simpler, just converting it to a string) could be: {'$where': ...}

http://www.mongodb.org/display/DOCS/Do+I+Have+to+Worry+About...

Re:The Trello Tech Stack by rjrodger on Thursday January 19, 2012 @05:59PM (#3487309)
Unlike SQL, which you have to build as a string, the natural approach in JavaScript (even for junior devs) is to use an object literal to build the query. And then you get escaping for free.