1. 程式人生 > >Redis安全配置和未授權訪問寫

Redis安全配置和未授權訪問寫

0x00

Redis 作為分散式資料庫的一種 在安裝後有時為了進行遠端管理 會將bind 127.0.0.1 同時沒有設定密碼是非常危險的 能輕易導致伺服器被攻破

0x01 Redis安全配置

CONFIG set requirepass "hellocarl"   設定密碼 (一定要複雜)

su -m nobody -c redis-server  使用nobody啟動redis 

vim /etc/passwd 

找到 nobody:x:99:99:Nobody:/:/sbin/nologin  

 改為nobody:x:99:99:Nobody:/:/bin/bash

後儲存執行su -nobody  這樣可永nobody使用者進行遠端管理

0x02 Reids 未授權訪問漏洞




到這 任意檔案被寫入了

所以 一定要對Redis進行安全配置