mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
add [INCONSISTENCY] comment in CodeInjection test
This commit is contained in:
@@ -14,7 +14,7 @@ app.post("/documents/find", (req, res) => {
|
||||
MongoClient.connect("mongodb://localhost:27017/test", (err, db) => {
|
||||
let doc = db.collection("doc");
|
||||
|
||||
doc.find(query); // NOT OK, but that is flagged by js/sql-injection
|
||||
doc.find(query); // NOT OK, but that is flagged by js/sql-injection [INCONSISTENCY]
|
||||
doc.find({ $where: req.body.query }); // NOT OK
|
||||
doc.find({ $where: "name = " + req.body.name }); // NOT OK
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user