I've been using PHPIDS for just over a year now - its pretty damn good considering its free. While PHPIDS is able to pickup SQL injection it seems unable to pick up simple MongoDB injection attacks. Recently I've seen a few injection attacks against mongodb that PHPIDS is unable to detect eg.
example.php?password[ne]=12 (which is the equivalent of password != 12)
MongoDB seems to be being used more and more so it'd be nice to see some support for it. It shouldn't be too tricky to implement. It'd just need to look at the array keys being passed in and look for "ne" "eq" etc..
Interesting comment - I haven't worked with MongoDB so far. I will have a look at the tests regarding the rule you added and consider adding it to the core.
Looking great! Just added the rule and a basic test to the trunk. Thanks a lot - this seems to be an interesting and future relevant topic! Maybe it would make sense to create a thread in the SQLI forum on sla.ckers.org?
yeah, thats right. All the conditionals need prefixing with a $ if they are to work :) I also noticed "$or" is missing as well (http://www.mongodb.org/display/DOCS/Advanced+Queries)