VDB
Sign up
MEDIUM

GHSA-rpj9-r897-wc6q

Open redirect in Apache Struts

Quick fix

GHSA-rpj9-r897-wc6q — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.

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

Details

The Struts 2 DefaultActionMapper used to support a method for short-circuit navigation state changes by prefixing parameters with "redirect:" or "redirectAction:", followed by a desired redirect target expression. This mechanism was intended to help with attaching navigational information to buttons within forms. Attackers could use this to redirect to arbitrary web sites and conduct phishing attacks.

In Struts 2 before 2.3.15.1 the information following "redirect:" or "redirectAction:" can easily be manipulated to redirect to an arbitrary location.

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.1
Fix# pom.xml: bump <version>2.3.15.1</version> for org.apache.struts:struts2-core

References