← Port Encyclopedia
27017
MongoDB
TCP
Database Critical Risk
MongoDB — NoSQL database, unauthenticated access epidemic, data ransom

🔍 How to Scan Port 27017

nmap -sV -p 27017 target
nmap -sV -sC --script=banner -p 27017 target
nc -zv target 27017

🛡️ Security Considerations

  • Scan port 27017 with nmap -sV to identify the exact service and version
  • If MongoDB is not needed, close or firewall this port immediately
  • Check for default credentials if a management interface runs on this port
  • Use searchsploit mongodb to find known exploits
  • Monitor traffic on port 27017 with Wireshark or tcpdump for anomalies
  • Ensure the service is patched to the latest version to prevent known CVE exploitation