Free and open-source vulnerability scanner
Mageni eases for you the vulnerability scanning, assessment, and management process. It is free and open-source.
Install NowAvailable for macOS, Windows, and Linux
Apache Struts RCE Vulnerability (S2-036)
Information
Severity
Severity
Family
Family
CVSSv2 Base
CVSSv2 Base
CVSSv2 Vector
CVSSv2 Vector
Solution Type
Solution Type
Created
Created
Modified
Modified
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.