Add comment on BsonObjectIdCall

This commit is contained in:
thank_you
2021-05-04 19:11:59 -04:00
parent d85b1a2d5f
commit 56dc4d886e

View File

@@ -92,6 +92,10 @@ private module NoSQL {
override DataFlow::Node getSanitizerNode() { result = this.getArg(0) }
}
/** ObjectId returns a string representing an id.
* If at any time ObjectId can't parse it's input (like when a tainted dict in passed in),
* then ObjectId will throw an error preventing the query from running.
*/
private class BsonObjectIdCall extends DataFlow::CallCfgNode, NoSQLSanitizer::Range {
BsonObjectIdCall() {
this =