Release date:
Updated on:
Affected Systems:
Apache Group Struts 2.0.0-2.3.16.1
Description:
--------------------------------------------------------------------------------
Bugtraq id: 67081
CVE (CAN) ID: CVE-2014-0113
Struts2 is the second generation of java enterprise-level web application framework based on the Model-View-Controller (MVC) Model.
The excluded parameter mode introduced in Apache Struts 2.0.0-2.3.16.1 cannot effectively block access to the getClass () method. Attackers can exploit this vulnerability to bypass this mode through specially crafted requests. In addition, CookieInterceptor is configured to accept all cookies. After successful exploitation, attackers can bypass certain security restrictions and perform unauthorized operations.
Recommended reading:
Getting started instance of Struts2
Send XML and JSON data asynchronously in Struts
<* Source: Taki Uchiyama
Takeshi Terada
Takayoshi Isayama
Yoshiyuki Karezaki
NSFOCUS Security Team
BAKA/ty
Shine
Heige
Link: http://secunia.com/advisories/58016/
Https://cwiki.apache.org/confluence/display/WW/S2-021
*>
Suggestion:
--------------------------------------------------------------------------------
Temporary solution:
If you cannot install or upgrade the patch immediately, NSFOCUS recommends that you take the following measures to reduce the threat:
* Exclude the 'class' Parameter
On the excludeParams list, use '(. *\. | ^ |. * | \ [('| ") class (\. | ('| ")] | \[). * 'replaces the previous class-related mode, as shown below:
<Interceptor-ref name = "params">
<Param name = "excludeParams"> (. *\. | ^ |. * | \ [('| ") (c | C) lass (\. | ('| ")] | \[). *, ^ dojo \.. *, ^ struts \.. *, ^ session \.. *, ^ request \.. *, ^ application \.. *, ^ servlet (Request | Response )\.. *, ^ parameters \.. *, ^ action :. *, ^ method :. * </param>
</Interceptor-ref>
CookieInterceptor cannot perform this operation. Do not use wildcard ing to accept cookie names or execute your CookieInterceptor version based on the Code provided by Struts 2.3.16.2.
Vendor patch:
Apache Group
------------
Apache Group has released a Security Bulletin (S2-021) and patches for this:
S2-021: S2-021
Link: https://cwiki.apache.org/confluence/display/WW/S2-021
Patch download: http://struts.apache.org/download.cgi#struts23162
Struts details: click here
Struts: click here
This article permanently updates the link address: