Last 12 weeks · 0 commits
1 of 6 standards met
Repository: tj/node-monquery. Description: mongodb query language for humans Stars: 104, Forks: 12. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 1, open issues: 2. Last activity: 11y ago. Community health: 28%. Top contributors: tj, wwwy3y3.
I was thinking of putting it on multilanguage... It would be very interesting!
I'm aware how useful this can be but, how can a developer prevent injection attacks right at the monquery level? Since, the real mongodb query is generated by passing a string to the compile function, it is trivial to do injection right at this string level. Consider a very simple authentication example, Imagine if the input password is something like, Dealing with this requires another special set of heuristics and checks specific to the monquery syntax. How can a developer safely pass input to these strings?