Free and open-source vulnerability scanner

Mageni eases for you the vulnerability scanning, assessment, and management process. It is free and open-source.

Install Now

Available for macOS, Windows, and Linux

App screenshot

Apache Struts RCE Vulnerability (S2-036)

Information

Severity

Severity

Critical

Family

Family

Web application abuses

CVSSv2 Base

CVSSv2 Base

9.0

CVSSv2 Vector

CVSSv2 Vector

AV:N/AC:L/Au:S/C:C/I:C/A:C

Solution Type

Solution Type

Vendor Patch

Created

Created

3 years ago

Modified

Modified

3 years ago

Summary

Apache Struts is prone to a remote code execution (RCE) vulnerability.

Insight

Insight

The same issue was reported in S2-029 but the proposed solutions were not fully proper. The Apache Struts frameworks when forced, performs double evaluation of attributes' values assigned to certain tags so it is possible to pass in a value that will be evaluated again when a tag's attributes will be rendered.

Affected Software

Affected Software

Apache Struts 2.0.0 through 2.3.28.1.

Detection Method

Detection Method

Checks if a vulnerable version is present on the target host.

Solution

Solution

Adding a proper validation of each value that's coming in and it's used in tag's attributes. Don't use forced evaluation of an attribute other than value using %{...} syntax unless really needed for a valid use-case. By upgrading to Struts 2.3.29 or 2.5.1, possible malicious effects of forced double evaluation are limited.

Common Vulnerabilities and Exposures (CVE)