Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00571
- Vendor: 久德電子
- Title: 久德電子遠端命令執行
- Introduction: 透過資料庫注入,寫入網頁後門,取得管理員命令權限
處理狀態
目前狀態
公開
Last Update : 2025/08/13
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/06/13 04:25:22 : 新提交 (由 Sean Wei 更新此狀態)
- 2025/06/13 14:57:41 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/20 16:13:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/20 16:13:16 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/06/20 16:13:16 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/13 03:00:11 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00571
- 通報者:Sean64 (Sean Wei)
- 風險:嚴重
- 類型:遠端命令執行 (Remote Code Execution)
參考資料
攻擊者可經由該漏洞取得主機完整權限、任意寫入檔案及取得大量內網資訊。
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://joinsystem.jetec.com.tw/api/sensor/current?cid=JC230818001%27%20AND%20(SELECT%20COUNT(*)%20FROM%20mysql.user%20WHERE%20user=%27root%27%20AND%20file_priv=%27Y%27)%3E0%20--%20
敘述
透過 ZD-2025-00569 所述資料庫注入漏洞
使用「JC230818001' AND (SELECT COUNT(*) FROM mysql.user WHERE user='root' AND file_priv='Y')>0 --」語法
https://joinsystem.jetec.com.tw/api/sensor/current?cid=JC230818001%27%20AND%20(SELECT%20COUNT(*)%20FROM%20mysql.user%20WHERE%20user=%27root%27%20AND%20file_priv=%27Y%27)%3E0%20--%20
確認目前的 root 使用者具有寫入檔案的權限
使用 LINES TERMINATED BY 語法,順利上傳 PHP 後門
經確認可以用「nt authority\system」身份執行指令
也可以列出資料夾、檢視檔案、做任何操作
修補建議
修復資料庫注入問題
以最小權限原則,不該給資料庫使用者過高權限
網頁伺服器需要降低執行權限
或許可以禁止網頁資料夾的寫入權限,讓攻擊者無法上傳後門
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。