News for hackers. Stuff that matters.
Re:No-SQL injection in Mongo PHP by ronnoch on Monday March 07, 2011 @05:02PM (#2298898)
> Honestly, I'm trying to figure out how someone could sanitize their input and still be affected by this.

I don't think you could, unless you tried to write your own sanitizing functions from scratch and somehow screwed it up. In PHP, htmlspecialchars(), mysql_real_escape_string() and addslashes() all do fine sanitizing array input -- either throwing an exception or returning the string "Array".

Re:No-SQL injection in Mongo PHP by Getahobby on Monday March 07, 2011 @08:58PM (#2299519)
Hmm. I think these functions escape output, not sanitize input.