Redis Without Authentication

Detects Redis connections and configurations without authentication, allowing unauthenticated access to the cache.

zakirkun 8e9ad75 2 files · 3.2 KB Updated

File contents

Redis Without Authentication

Overview

Redis instances running without authentication (requirepass) are exposed to unauthenticated access. Any client that can reach the Redis port can read, write, or delete all cached data — including session tokens, sensitive user data, and application secrets.

Detection Strategy

Look for Redis client connections that do not supply a password, or Redis configuration files with requirepass commented out or absent.

Remediation

  • Set requirepass <strong-password> in redis.conf
  • Use Redis ACL (Redis 6+) for fine-grained access control
  • Bind Redis to localhost or a private network interface
  • Use TLS for Redis connections in production

Vulnerable (Node.js):

const client = redis.createClient({ host: 'redis-host', port: 6379 });

Safe (Node.js):

const client = redis.createClient({ host: 'redis-host', port: 6379, password: process.env.REDIS_PASSWORD });

zakirkun/ice-tea/tree/main/skills/database/redis-no-auth commit 8e9ad755f5

Frequently asked questions

npx skillmds@latest add zakirkun/redis-without-authentication