News for hackers. Stuff that matters.
Re:A Big Case of Oops by chrischen on Friday February 26, 2010 @02:03PM (#1153834)
I'm pretty sure couchdb has a query language which can receive injections. If you pass JavaScript into mongodb theoretically you could open an injection problem if you don't use parametrization. But unless your nosql database has a native API, it still probably is vulnerable to command injection in the same way SQL databases are. Nothing really special about nosql itself that prevents this.
Re:A Big Case of Oops by dm_mongodb on Friday February 26, 2010 @02:08PM (#1153855)
Preferred and typical use of MongoDB is with no javascript in the queries. There really is a huge reduction of risk for this one particular attack.
Re:A Big Case of Oops by dm_mongodb on Friday February 26, 2010 @02:15PM (#1153870)
you may be right that i've overgeneralized to the other products based on my experience with mongodb; all i know for sure is mongodb has some nice properties here.
Re:A Big Case of Oops by chrischen on Friday February 26, 2010 @03:21PM (#1154019)
Yes mongo language drivers do make it harder to open up injection problems, but php extension like mysqli also provide similar protection. However the SQL-oriented nature does make it more likely that someone merges uncleaned input into a command.