Redis enumeration with nmap and redis-cli
Enumerate Redis instances using Nmap scripts and redis-cli to extract server info, config, keys, and identify misconfigurations like unauthenticated access.
HackIndex.io
Language
Redis is an in-memory key-value data store running on TCP port 6379. Nmap identifies it as redis. Redis is used for caching, session storage, message queues, and as a lightweight database in web application stacks.
Redis has no authentication enabled by default. An unauthenticated instance allows full read and write access to all stored data, which may include session tokens, cached credentials, and application secrets. Redis can also write arbitrary files to disk using the CONFIG SET dir and CONFIG SET dbfilename commands, enabling SSH key injection, crontab modification, or webshell placement.
Connect with redis-cli and run INFO to check the server version, OS, and configuration. Enumerate keys with KEYS * and inspect their contents. Test file write capabilities through CONFIG SET. If authentication is enabled, try common passwords or brute-force with hydra. Nmap's redis-info script handles initial enumeration.
Redis auth, version, keyspace, and secrets via nmap and redis-cli
Enumerate Redis instances using Nmap scripts and redis-cli to extract server info, config, keys, and identify misconfigurations like unauthenticated access.
RCE, auth bypass, SSRF, and shell writes against Redis
Exploiting Redis master-slave replication to achieve RCE by loading a malicious module via the SLAVEOF command on exposed instances.
Exploit unauthenticated or authenticated Redis instances by loading a malicious .so module to achieve remote code execution on the target system.
Exploit unauthenticated Redis instances to achieve RCE by injecting attacker-controlled SSH public keys into root's authorized_keys via Redis config manipulation.
Escalate via Redis file writes to SUID, SSH keys, or cron paths
Write SSH keys, cron jobs, or webshells via Redis config
Abuses Redis CONFIG SET to redirect DB dumps or AOF logs to attacker-controlled paths, achieving filesystem writes and persistent backdoor placement.
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.