mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Add comment on BsonObjectIdCall
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user