跳到正文

Apache Struts 'getClass()'方法安全绕过代码执行漏洞(S2-021)

严重 未验证 漏洞情报武器化

漏洞描述

Apache Struts是一款建立Java web应用程序的开放源代码架构。

Apache Struts 2.0.0 - 2.3.16.1内引入的排除参数模式无法有效阻止对getClass()方法的访问,攻击者通过特制的请求,利用此漏洞可绕过该模式。另外CookieInterceptor配置为接受所有cookie后也存在此类安全漏洞。成功利用后可使攻击者绕过某些安全限制并执行未授权或代码执行操作。

解决建议

用户可参考如下供应商提供的安全公告获得补丁信息:
https://cwiki.apache.org/confluence/display/WW/S2-021
补丁下载:
http://struts.apache.org/download.cgi#struts23162

参考链接

http://secunia.com/advisories/59178
http://www-01.ibm.com/support/docview.wss?uid=swg21676706
http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html
http://www.securityfocus.com/archive/1/531952/100/0/threaded
https://cwiki.apache.org/confluence/display/WW/S2-021