TMA-REDIS-RENAME-FLUSH
Ensure FLUSHALL and FLUSHDB are renamed or blocked
SrednjaNivo 2Automatskaredis
Opis
FLUSHALL/FLUSHDB destroy all data in one command. Compliant when rename-command FLUSHALL is set or the default ACL user has -@dangerous / -flushall. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
Kako se proverava
Metod provere: Obrazac u datoteci
- Datoteka
/etc/redis/redis.conf- Obrazac
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?flushall['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-flushall)\b)
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Add 'rename-command FLUSHALL ""' and 'rename-command FLUSHDB ""' to redis.conf (or use ACLs -@dangerous) and restart Redis
Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- redisdatabasesurface-reduction
- Referenca
- CIS Redis Benchmark - Command Hardening / Dangerous Commands (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 redis --level 2