Several reports we’re published in the news about how easy it is to access data stored in some NoSQL systems, including MongoDB. This is not surprising because security was rather relaxed in earlier versions of MongoDB . This post lists some of the common vulnerabilities in MongoDB and Percona TokuMX.
Network Security
One key point is to ensure that the bind_ip setting
is correctly adjusted: in MongoDB 2.4 and Percona TokuMX, it is
not set which means that the server will listen to all available
network interfaces. If proper firewall rules (iptables, Security
Groups in AWS, …) are not in place, your dataset could easily be
queried from anywhere in the world!
In MongoDB 2.6+, bind_ip is set by default to
127.0.0.1 in the official .deb and .rpm packages. This is great
from a security point of view, but remember that you’ll still
have to adjust the setting if the application servers are not …