Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00640
- Vendor: 財團法人宜蘭縣社會福利聯合勸募基金會
- Title: 財團法人宜蘭縣社會福利聯合勸募基金會 網站存在 SQL injection to RCE 與 store XSS
- Introduction: 網站存在 SQL injection to RCE 與 store XSS
處理狀態
目前狀態
公開
Last Update : 2022/12/27
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2022/08/09 08:39:09 : 新提交 (由 BTtea 更新此狀態)
- 2022/08/09 08:48:55 : 新提交 (由 BTtea 更新此狀態)
- 2022/08/10 06:36:32 : 新提交 (由 BTtea 更新此狀態)
- 2022/08/10 06:44:39 : 新提交 (由 BTtea 更新此狀態)
- 2022/08/10 15:36:19 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/11 21:24:11 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/11 21:24:11 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/11 21:24:11 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/10/09 03:00:05 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2022/12/19 12:13:31 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/12/27 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00640
- 通報者:blacktea_player (BTtea)
- 風險:嚴重
- 類型:遠端命令執行 (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://www.yilanuw.org.tw/photos/view.php
https://www.yilanuw.org.tw/system/
https://www.yilanuw.org.tw/system/news/main_list.php
https://www.yilanuw.org.tw/system/
https://www.yilanuw.org.tw/system/news/main_list.php
敘述
使用工具 SQLmap 輔助測試 (以下若使用SQLmap工具進行注入時有中斷問題,請去除 --batch 參數後進行注入,遇到詢問連線異常是否繼續測試的訊息請選擇 y )
https://www.yilanuw.org.tw/photos/view.php?mainId=514
GET 參數 mainId 存在 SQL injection
SQLmap 工具測試參數 : python3 sqlmap.py --random-agent -u "https://www.yilanuw.org.tw/photos/view.php?mainId=515" --dbs --batch --tamper space2mssqlhash
https://www.yilanuw.org.tw/system/
- 後台可供外網存取,並且帳密輸入 「 ' or 1 or ' 」 後即可登入
- 登入之後有很多的檔案上傳點,我選擇了 最左邊的「首頁橫幅」( https://www.yilanuw.org.tw/system/advertise/main_pic_list.php )
- 上傳後門成功 getshell
https://www.yilanuw.org.tw/system/news/main_list.php
來到後台此處,選擇左上角「新增訊息」後,在訊息主題處直接打上 xss payload ,然後來到 https://www.yilanuw.org.tw/index/index.php 下方的「最新消息」可以看到我們所新增的訊息,點擊即可造成 store xss
store xss payload : </a><a href=javascript:alert(document.cookie)>xss test
無意義但不應該被存取的站點目錄可能導致資訊洩漏或其他危害
https://www.yilanuw.org.tw/cgi-sys
https://www.yilanuw.org.tw/mailman/listinfo
https://www.yilanuw.org.tw/system (後台)
system 目錄底下
https://www.yilanuw.org.tw/system/up.php (可上傳檔案功能頁面)
PS. 已將汙染環境之訊息,後門等測試檔案盡數刪除
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。