TMA-MONGO-BIND-ALL
Ensure mongod does not listen on all interfaces
VisokaNivo 1Automatskamongodb
Opis
bindIp 0.0.0.0 or bindIpAll exposes the database on every network interface; bind only to localhost and required private addresses. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist).
Kako se proverava
Metod provere: Obrazac u datoteci
- Datoteka
/etc/mongod.conf- Obrazac
(?m)^[ \t]*(?:bindIp:[^#\n]*0\.0\.0\.0|bindIp:[^#\n]*::(?:[ ,'\x22]|$)|bindIpAll:[ \t]*true)
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Set net.bindIp to 127.0.0.1 plus the specific private addresses required (remove bindIpAll), then restart mongod
Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- mongodbdatabasenetwork
- Referenca
- CIS MongoDB Benchmark - Network Exposure / Bind Address (verify section number for your release)
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target mongodb