PT-2013-1359 · Apache · Apache Struts
Douglas Rodrigues
+1
·
Published
2013-05-24
·
Updated
2022-05-13
·
CVE-2013-2115
CVSS v2.0
9.3
High
| Vector | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Apache Struts versions prior to 2.3.14.2
Description
The issue is related to incorrect code generation management when handling the includeParams attribute, allowing a remote attacker to execute arbitrary code by sending a specially crafted request. This can lead to remote command execution, session access and manipulation, and XSS attacks. The
includeParams attribute in the s:url and s:a tags is used to determine whether to include HTTP request parameters or not, with allowed values being none, get, or all. A specially crafted request parameter can inject arbitrary OGNL code into the stack, which is then evaluated as an OGNL expression, enabling method execution and bypassing Struts and OGNL library protections.Recommendations
For Apache Struts versions prior to 2.3.14.2, update to version 2.3.14.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
includeParams attribute in the s:url and s:a tags to minimize the risk of exploitation. Avoid using the all value for the includeParams attribute, and instead use none or get to limit the inclusion of request parameters.Exploit
Fix
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Apache Struts