Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00008
- Vendor: 丹尼互動美語
- Title: 丹尼互動美語網站參數存在SQL injection .git 原始碼洩漏
- Introduction: 網站參數存在SQL injection及 .git 原始碼洩漏
處理狀態
目前狀態
公開
Last Update : 2022/04/19
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2022/01/05 15:17:05 : 新提交 (由 P@ssw0rd 更新此狀態)
- 2022/01/05 15:17:44 : 新提交 (由 P@ssw0rd 更新此狀態)
- 2022/01/06 12:37:38 : 新提交 (由 P@ssw0rd 更新此狀態)
- 2022/02/16 22:42:25 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/18 15:53:15 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/18 15:53:15 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/18 15:53:15 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/21 03:00:05 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2022/03/21 12:55:53 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/21 12:56:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/21 12:56:13 : 公開 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/21 12:56:13 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/21 12:56:47 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/28 15:00:47 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/28 15:01:10 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/18 14:26:52 : 已修補 (由 組織帳號 更新此狀態)
- 2022/04/18 14:27:16 : 已修補 (由 組織帳號 更新此狀態)
- 2022/04/19 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00008
- 通報者:wucy0612 (P@ssw0rd)
- 風險:高
- 類型:資料庫注入攻擊 (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.dannykids.com.tw/danny_admin/plug/CKEdit/ckfinder/ckfinder.html
https://www.dannykids.com.tw/upload/files/20220104.txt
http://www.dannykids.com.tw/.git/
https://www.dannykids.com.tw/upload/files/20220104.txt
http://www.dannykids.com.tw/.git/
敘述
帶入 sqlmap
Parameter: #1* (URI)
available databases [2]:
[] dannykids
[] information_schema
管理者帳密(密碼未完成解密)
透過 https://www.somd5.com/ 是無法解出密碼
那試試看帳密如有設一樣有沒有可能呢? 果真.... 不要再用相同的密碼囉
使用帳號及密碼可以成功登入並可以新增一組管理者帳號
管理區可以使用
https://www.dannykids.com.tw/danny_admin/plug/CKEdit/ckfinder/ckfinder.html
若未登入可以操作嗎? 無須登入可以上傳檔案(如文字檔及圖檔)
https://www.dannykids.com.tw/upload/files/20220104.txt
看到.git 可以使用 git-dumper 下載網頁原始碼及相關檔案
git-dumper http://www.dannykids.com.tw/.git/ /home/XXX/dannykids
修補建議
1.處理SQLI: 參數過濾及禁止
2.管理區非請勿入: 建議限制只有內網可以存取目錄
3.套件安全性: CKFinder應該在管理者登入後才能使用,強烈建議進行權限判斷
4.刪除測試檔案20220104.txt,強烈建議改掉管理者帳號johnnie及cruella的密碼
5.禁止訪問 .git 之下的所有檔案
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。