QID 150354

Date Published: 2021-08-09

QID 150354: Apache Struts 2 Double OGNL Evaluation Vulnerability (CVE-2020-17530)

Apache Struts 2 is an open-source web application framework for developing Java EE web applications. A vulnerability CVE-2020-17530 exists due to use of forced OGNL evaluation on untrusted user input in tag attributes, leading to a Remote Code Execution.

Affected Versions:
Apache Struts 2.0.0 - 2.5.25

QID Detection Logic:
This QID sends POST and GET request along with the payload, which triggers a remote code execution. Successful execution on a Linux system results in contents of shadow file getting detected in the response, whereas on a Windows system a string is echoed using cmd and detected in the response.

A remote attacker could exploit this vulnerability to execute arbitrary code on the targeted system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Please refer Apache Security Bulletin S2-061 for more details on remediating this vulnerability.
    Vendor References

    CVEs related to QID 150354

    Software Advisories
    Advisory ID Software Component Link
    S2-061 URL Logo struts.apache.org/announce-2020.html#a20201208