VDB
Sign up
MEDIUM

GHSA-q5q8-jghf-3pm3

Apache Struts2 Broken Access Control Vulnerability

Quick fix

GHSA-q5q8-jghf-3pm3 — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.3.15.3</version> for org.apache.struts:struts2-core

Details

The Struts 2 action mapping mechanism supports the special parameter prefix action: which is intended to help with attaching navigational information to buttons within forms, under certain conditions this can be used to bypass security constraints.

In Struts 2.3.15.3 the action mapping mechanism was changed to avoid circumventing security constraints. Two additional constants were introduced to steer behaviour of DefaultActionMapper:

- struts.mapper.action.prefix.enabled - when set to false support for "action:" prefix is disabled, set to false by default - struts.mapper.action.prefix.crossNamespaces - when set to false, actions defined with "action:" prefix must be in the same namespace as current action

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.struts:struts2-core
Introduced in: 0Fixed in: 2.3.15.3
Fix# pom.xml: bump <version>2.3.15.3</version> for org.apache.struts:struts2-core

References