TMA-REDIS-RENAME-CONFIG
Ensure the CONFIG command is renamed or blocked
ВысокийУровень 1Автоматическаяredis
Описание
CONFIG lets a client rewrite dir/dbfilename and write arbitrary files (a classic Redis-to-RCE path). Compliant when rename-command CONFIG is set or the default ACL user has -@dangerous / -@admin / -config. Checks /etc/redis/redis.conf (SKIP when it does not exist; RHEL uses /etc/redis.conf).
Как проверяется
Метод проверки: Шаблон в файле
- Файл
/etc/redis/redis.conf- Шаблон
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?config['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-@admin|-config)\b)
Как исправляется
Метод исправления: Рекомендация или патч инфраструктуры
Add 'rename-command CONFIG ""' (or a secret name) to redis.conf, or restrict the default ACL user with -@dangerous, then restart Redis
Свойства
- Операционные системы
- Любая
- Теги
- redisdatabasesurface-reduction
- Источник
- CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)
Проверить этот хост
Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.
shell
tmaegis scan --target redis