TMAegis
Више правила за redis

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