CVE-2011-1772
Cross-site Scripting in Apache Struts
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.
How to fix CVE-2011-1772
To remediate CVE-2011-1772, upgrade the affected package to a fixed version below.
- —upgrade to 2.2.3 or later
Is CVE-2011-1772 being exploited?
Likely — EPSS is 59.2%, placing CVE-2011-1772 in the top tier of vulnerabilities by exploitation probability. Prioritise patching.
Affected packages (1)
- from 0, < 2.2.3