Skip to content

Apache Struts2 Broken Access Control Vulnerability

Moderate severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Dec 28, 2023

Package

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

Affected versions

< 2.3.15.3

Patched versions

2.3.15.3

Description

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

References

Published by the National Vulnerability Database Sep 30, 2013
Published to the GitHub Advisory Database May 17, 2022
Reviewed Nov 3, 2022
Last updated Dec 28, 2023

Severity

Moderate

Weaknesses

CVE ID

CVE-2013-4310

GHSA ID

GHSA-q5q8-jghf-3pm3

Source code

Credits

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