I have a Mongo DB database installed and configured, but I have a very big problem regarding security...
I have enabled authentication and created a bunch of users, each with its own permissions, everything ok there, now my problem is that if a bad guy gets access to my server, he can simply restart the service without specifing the authentication parameter, and access all my databases just by loggin with the localhost...
In the documentation it says:
The localhost exception applies only when there are no users created in the MongoDB instance.
Well... I have already created users... and I am still able to access my database using the localhost exception... Am I doing anything wrong? Or is the documentation wrong?
If so, this seems to be a major security problem...
The Mongo version I am using is 3.4.
I have a Mongo DB database installed and configured, but I have a very big problem regarding security...
I have enabled authentication and created a bunch of users, each with its own permissions, everything ok there, now my problem is that if a bad guy gets access to my server, he can simply restart the service without specifing the authentication parameter, and access all my databases just by loggin with the localhost...
admin database. In previous versions, connections that gained access using the localhost exception had unrestricted access to the MongoDB instance."I have enabled authentication and created a bunch of users, each with its own permissions, everything ok there, now my problem is that if a bad guy gets access to my server, he can simply restart the service without specifing the authentication parameter, and access all my databases just by loggin with the localhost...
At the same level of the folder Collections, I also have another folder called Users, but I cant access it, it gives me the error "Failed to refresh 'Users'. Error: Wrong type for field (_id) string != 7" Is this anything to do with my problem?