The default configuration for MongoDB is to listen on localhost only. Someone changed the configuration if it was listening on a public IP.
Feb 2015:
Discovered 40,000 vulnerable MongoDB databases on the Internet
http://securityaffairs.co/wordpress/33487/hacking/40000-vuln...
The changes were made after this, so we're only talking a few months now.
That's true, but I remember that change was only made recently. Before, mongo would listen on all IPs and had no passwords.
It also implies frontend server includes the DB, typically a sysadmin would de-couple it so this shows lack of experience.