Redis Authenticated Access – Password Brute Force and Login
When Redis requires authentication, a single password protects the entire instance — no usernames in Redis 5 and below, just one shared requirepass value. Redis 6 introduced ACL-based multi-user authentication. Weak or default passwords are extremely common. A successful login gives the same full access as an unauthenticated instance.
Step 1 – Confirm Authentication is Required
Connect and run PING:
NOAUTH Authentication required.
Authentication is active. If it returns PONG, the instance is open — see https://hackindex.io/services/redis/exploitation/unauthenticated-access instead.
Step 2 – Test Common Default Passwords First
Before running a wordlist, test the most common Redis passwords manually:
foobared is the example password in the default Redis config and is left in place more often than it should be.
Step 3 – Brute Force with Hydra
For a non-standard port:
[6379][redis] host: 10.10.10.10 password: foobared
Step 4 – Brute Force with nxc
nxc gives cleaner output for Redis and handles threading more reliably than Hydra in some environments.
Step 5 – Brute Force with redis-cli in a Loop
For a quick manual spray against a short list:
while read pass; do
result=$(redis-cli -h $TARGET_IP -p 6379 -a "$pass" ping 2>/dev/null)
if [ "$result" = "PONG" ]; then
echo "[+] Found password: $pass"
break
fi
done < /usr/share/wordlists/rockyou.txt
Step 6 – Connect with Found Password
Or authenticate after connecting:
AUTH $PASSWORD
Confirm access:
ping
info server
Step 7 – Verify CONFIG Access
CONFIG access is required for the most impactful exploitation paths. Check immediately:
If CONFIG returns data, proceed with write-based RCE techniques. If CONFIG is disabled (returns ERR unknown command), you are limited to data extraction and Lua-based techniques. See https://hackindex.io/services/redis/exploitation/vulnerabilities/cve-2022-0543 for CONFIG-free RCE on Debian/Ubuntu targets.
Redis 6+ ACL Multi-User Authentication
Redis 6 and above supports named users via ACL. If the default user is locked, try common usernames:
List configured users if you gain access with any credential:
Each entry shows username, password hash, and permitted commands — useful for understanding what your account can and cannot do.
References
-
Redis ACL Documentationredis.io/docs/latest/operate/oss_and_stack/management/security/acl (opens in new tab)
ACL command reference and multi-user authentication for Redis 6+.
Was this helpful?
Your feedback helps improve this page.