--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2a571dc6-958e-4bff-a0b2-f610d98e54c7%40googlegroups.com.
BasicDBObject query = new BasicDBObject( "EMAILID" , "userEnteredValue" );
DBCursor cursor = collection.find(query);
How about in this case? Is query injection still possible ?
Case #2: Suppose if we are using $where in our BasicDBObject, there is a chance of query injection (since we can write JavaScript functions).
String userEnteredValue = "function() { return this._id; } ";
BasicDBObject query = new BasicDBObject( "$where" , userEnteredValue );
DBCursor cursor = collection.find(query);
In this case query injection is possible.
Is my understanding correct??
Please correct me understanding this concept....
Thanking you