Don't cast number to buffer by creating a new buffer of size num · Issue #3764 · Automattic/mongoose
Potential DoS vulnerability: send a big number to the server and the server then creates a massive buffer and tries to save it to mongodb. Example: var schema = new Schema({ buf: Buffer }); var MyM...
GitHub