简体   繁体   中英

Mongoose and Query Injection when using Javascript?

How does MongoDB address SQL or Query injection? explains how to handle query injection with BSON when using javascript on the server. I haven't been able to track down how/whether Mongoose handles query injection though.

At this point I have two questions:

  1. Does Mongoose protect against query injection (using BSON or some other method)
  2. If it does, are there any quirks with it's implementation that a developer need to be aware of?

猫鼬不能防止查询注入,因此不幸的是,您需要按照上面链接中的指南执行自己的注入检测。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM