Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug, deny of service with null char in url #287

Open
Brainless43 opened this issue Feb 18, 2021 · 0 comments
Open

Bug, deny of service with null char in url #287

Brainless43 opened this issue Feb 18, 2021 · 0 comments

Comments

@Brainless43
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant