Apache Struts 'getclass () 'method Security Restriction Bypass Vulnerability

Source: Internet
Author: User
Tags cookie names

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.