Miggo Logo

CVE-2012-0392: Apache Struts's CookieInterceptor component does not use the parameter-name whitelist

N/A

CVSS Score

Basic Information

EPSS Score
0.99772%
CWE
-
Published
5/4/2022
Updated
12/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.struts:struts2-coremaven< 2.2.3.12.2.3.1
org.apache.struts.xwork:xwork-coremaven< 2.2.3.12.2.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly states that the CookieInterceptor component failed to use the parameter-name whitelist. Attackers exploited this by sending malicious cookies containing OGNL expressions, which were processed without validation(). While the provided commit diff shows fixes in other interceptors (e.g., ConversionErrorInterceptor) to escape OGNL expressions, the root cause lies in the CookieInterceptor's lack of whitelist enforcement. The absence of whitelist checks in cookie parameter handling directly aligns with the CVE's technical details and exploit examples involving HTTP Cookie headers.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** *ooki*Int*r**ptor *ompon*nt in *p**** Struts ***or* *.*.*.* *o*s not us* t** p*r*m*t*r-n*m* w*it*list, w*i** *llows r*mot* *tt**k*rs to *x**ut* *r*itr*ry *omm*n*s vi* * *r**t** *TTP *ooki* *****r t**t tri***rs J*v* *o** *x**ution t*rou** * st*ti*

Reasoning

T** vuln*r**ility **s*ription *xpli*itly st*t*s t**t t** `*ooki*Int*r**ptor` *ompon*nt **il** to us* t** p*r*m*t*r-n*m* w*it*list. *tt**k*rs *xploit** t*is *y s*n*in* m*li*ious *ooki*s *ont*inin* O*NL *xpr*ssions, w*i** w*r* pro**ss** wit*out `v*li**