MongoDB historically listened on all interfaces with no authentication, and exposed instances have been emptied and ransomed in bulk. The capture shows a client connecting to a MongoDB 7.0 server, running listDatabases and listCollections and reading documents, with Wireshark decoding the wire protocol messages. No exploit is involved; the exposure itself is the vulnerability.
MongoDB without authentication: an outside client connecting on port 27017, listing databases and collections and reading documents.
MongoDB 7.0.31 Unauthenticated Database Access and Enumeration
3 TCP connections to MongoDB 7.0.31 on 10.99.0.22:27017 without any authentication. The wire protocol shows TLS-encrypted MongoDB sessions (MongoDB 7.0 uses TLS for wire protocol framing). Operations performed: server version query (confirmed 7.0.31), database enumeration (admin, config, local, testdb), collection creation with user credential data insertion (3 documents with username/password pairs), full collection read, cross-database collection enumeration, serverStatus admin command (revealing uptime and connection count), and cleanup. Zeek logged 6 connections and 12 protocol anomalies across the 3 sessions between 10.99.0.10 and 10.99.0.22. The database accepts all operations without requiring authentication.