This repository was archived by the owner on Mar 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 802
Bug, deny of service with null char in url #287
Copy link
Copy link
Open
Description
You can stop npm service with null char %00 in url :
http://[URL]:1234/app/Local/[BDD]/%00/view/1
http://[URL]:1234/app/Local/%00
Error in utlis.js :
/opt/adminMongo/node_modules/mongodb/lib/utils.js:123
process.nextTick(function() { throw err; });
Error: namespace cannot contain a null character
at new Query (/opt/adminMongo/node_modules/mongodb-core/lib/connection/commands.js:41:11)
at setupCommand (/opt/adminMongo/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:536:15)
at WireProtocol.command (/opt/adminMongo/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:259:12)
at Server.command (/opt/adminMongo/node_modules/mongodb-core/lib/topologies/server.js:519:40)
at Server.command (/opt/adminMongo/node_modules/mongodb/lib/server.js:383:17)
at executeCommand (/opt/adminMongo/node_modules/mongodb/lib/db.js:313:19)
at Db.command (/opt/adminMongo/node_modules/mongodb/lib/db.js:337:44)
at /opt/adminMongo/routes/index.js:183:22
at /opt/adminMongo/routes/common.js:232:13
at handleCallback (/opt/adminMongo/node_modules/mongodb/lib/utils.js:120:56)
Metadata
Metadata
Assignees
Labels
No labels