GitHub Advisoryadvisory · Maven

GHSA-vwhv-j36g-5rm8 Cross-site Scripting in Apache Struts

MEDIUM Published 2022-05-14 Modified 2022-11-03 Official page ↗
Aliases
CVE-2015-5169
Ecosystem
Maven
Packages
org.apache.struts:struts2-core
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2022-11-03

Affected packages

• Maven org.apache.struts:struts2-core: < 2.3.20 → fixed in 2.3.20

Description

When the Struts2 debug mode is turned on, under certain conditions an arbitrary script may be executed in the 'Problem Report' screen. Also if JSP files are exposed to be accessed directly it's possible to execute an arbitrary script. It is generally not advisable to have debug mode switched on outside of the development environment. Debug mode should always be turned off in production setup. Also never expose JSPs files directly and hide them inside WEB-INF folder or define dedicated security constraints to block access to raw JSP files. Struts >= 2.3.20 is not vulnerable to this attack. We recommend upgrading to Struts 2.3.20 or higher.

Related

Alias · CVE (1)

  • CVE-2015-5169 Cross-site scripting (XSS) vulnerability in Apache Struts before 2.3.20. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References