Miggo Logo

CVE-2013-2248:
Open redirect in Apache Struts

5.8

CVSS Score

Basic Information

EPSS Score
-
Published
5/17/2022
Updated
12/28/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:P/I:P/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.struts:struts2-coremaven< 2.3.15.12.3.15.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from how DefaultActionMapper handled parameters prefixed with 'redirect:' or 'redirectAction:'. The commit diff shows removal of these handlers:

  1. REDIRECT_PREFIX/REDIRECT_ACTION_PREFIX constants were deleted
  2. The associated ParameterAction blocks (which took untrusted input to set redirect locations) were removed
  3. Tests validating redirect behavior were modified to expect null results This demonstrates the vulnerable code was the logic that parsed these prefixes and executed redirects based on unvalidated user input.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T** Struts * ****ult**tionM*pp*r us** to support * m*t*o* *or s*ort-*ir*uit n*vi**tion st*t* ***n**s *y pr**ixin* p*r*m*t*rs wit* "r**ir**t:" or "r**ir**t**tion:", *ollow** *y * **sir** r**ir**t t*r**t *xpr*ssion. T*is m****nism w*s int*n*** to **lp

Reasoning

T** vuln*r**ility st*ms *rom *ow ****ult**tionM*pp*r **n*l** p*r*m*t*rs pr**ix** wit* 'r**ir**t:' or 'r**ir**t**tion:'. T** *ommit *i** s*ows r*mov*l o* t**s* **n*l*rs: *. R**IR**T_PR**IX/R**IR**T_**TION_PR**IX *onst*nts w*r* **l*t** *. T** *sso*i*t*