TMAegisBeta
Más reglas para redis

Redis

TMA-REDIS-RENAME-CONFIG

Ensure the CONFIG command is renamed or blocked

AltaNivel 1Automatizadaredis

Descripción

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).

Cómo se verifica

Método de auditoría: Patrón de archivo

Archivo
/etc/redis/redis.conf
Patrón
(?mi)^[ \t]*(?:rename-command[ \t]+['\x22]?config['\x22]?[ \t]+\S+|user[ \t]+default[ \t][^\n]*(?:-@dangerous|-@admin|-config)\b)

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Add 'rename-command CONFIG ""' (or a secret name) to redis.conf, or restrict the default ACL user with -@dangerous, then restart Redis

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
redisdatabasesurface-reduction
Referencia
CIS Redis Benchmark - Command Hardening / Dangerous Commands (verify section number for your release)

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target redis