Miggo Logo

CVE-2022-29648: Cross site scripting in Jfinal

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.40373%
Published
6/3/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.jflyfox:jflyfox_jfinalmaven<= 5.1.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability requires two key points: 1) Unsanitized ingestion of X-Forwarded-For header into storage, and 2) Unsafe rendering of the stored value. JFinal's typical Controller.getHeader() pattern would handle the first vector, while FreeMarker/JSP templates without proper escaping would handle the second. The admin interface's TOP10 display mentioned in GHSA-8rp2-j3vj-hgj4 confirms the output context. Though exact code isn't available, these components are fundamental to the described attack flow.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* *ross-sit* s*riptin* (XSS) vuln*r**ility in J*in*l *MS v*.*.* *llows *tt**k*rs to *x**ut* *r*itr*ry w** s*ripts or *TML vi* * *r**t** X-*orw*r***-*or r*qu*st.

Reasoning

T** vuln*r**ility r*quir*s two k*y points: *) Uns*nitiz** in**stion o* X-*orw*r***-*or *****r into stor***, *n* *) Uns*** r*n**rin* o* t** stor** v*lu*. J*in*l's typi**l `*ontroll*r.**t*****r()` p*tt*rn woul* **n*l* t** *irst v**tor, w*il* *r**M*rk*r