Lucene search

K
githubGitHub Advisory DatabaseGHSA-56F8-G68R-J699
HistoryMay 17, 2022 - 5:35 a.m.

Cross-site Scripting in Apache Struts

2022-05-1705:35:28
CWE-79
GitHub Advisory Database
github.com
4

0.004 Low

EPSS

Percentile

74.4%

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.

CPENameOperatorVersion
org.apache.struts:struts2-corelt2.2.3