Pentesting Redis
redis port 6379
https://book.hacktricks.xyz/pentesting/6379-pentesting-redis
Enumeration
Manual Enumeration
Redis is a text based protocol, you can just send the command in a socket and the returned values will be readable. Also remember that Redis can run using ssl/tls (but this is very weird).
In a regular Redis instance you can just connect using nc or you could also use redis-cli
Run the
info
first, it will either dump theredis
instance or say-NOAUTH Authentication required.
Username / Password are stored in the
redis.conf
file by default
Get Connected
Authenticated Enumeration
Dumping Database
Inside Redis the databases are numbers starting from
0
. You can find if anyone is used in the output of the command info inside the "Keyspace" chunk:
Use the TYPE command to check the type of value a key is mapping to:
redis RCE
https://github.com/Ridter/redis-rce
Last updated