Skip to content

Cross-site Scripting in Apache Struts

Low severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

maven org.apache.struts:struts2-core (Maven)

Affected versions

< 2.2.3

Patched versions

2.2.3

Description

Multiple Cross-Site Scripting (XSS) in XWork generated error pages in Apache Struts. By default, XWork doesn't escape action's names in automatically generated error page, allowing for a successful XSS attack. When Dynamic Method Invocation (DMI) is enabled, the action name is generated dynamically base on request parameters. This allows to call non-existing page and method to produce error page with injected code as below. As of Struts 2.2.3 the action names are escaped when automatically generated error pages are rendered.

References

Published by the National Vulnerability Database May 13, 2011
Published to the GitHub Advisory Database May 17, 2022
Reviewed Nov 3, 2022
Last updated Feb 1, 2023

Severity

Low

EPSS score

0.422%
(75th percentile)

Weaknesses

CVE ID

CVE-2011-1772

GHSA ID

GHSA-56f8-g68r-j699

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.