Miggo Logo

CVE-2022-24948: Cross-site Scripting in Apache JSPWiki

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.91083%
Published
2/26/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.jspwiki:jspwiki-mainmaven< 2.11.22.11.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The patch modifies a JSP template that renders user-controlled data (wikiUserName) in a meta tag. The change from single to double quotes suggests the username value wasn't properly escaped for HTML attributes. The vulnerability manifests in the UserNameTag handler that processes and outputs the username value. As JSP custom tags typically implement doStartTag()/doEndTag() methods for rendering, the UserNameTag's doStartTag() method would be responsible for outputting the unescaped username value to the response stream.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* **r**ully *r**t** us*r pr***r*n**s *or su*mission *oul* tri***r *n XSS vuln*r**ility on *p**** JSPWiki, r*l*t** to t** us*r pr***r*n**s s*r**n, w*i** *oul* *llow t** *tt**k*r to *x**ut* j*v*s*ript in t** vi*tim's *rows*r *n* **t som* s*nsitiv* in*o

Reasoning

T** p*t** mo*i*i*s * JSP t*mpl*t* t**t r*n**rs us*r-*ontroll** **t* (wikiUs*rN*m*) in * m*t* t**. T** ***n** *rom sin*l* to *ou*l* quot*s su***sts t** us*rn*m* v*lu* w*sn't prop*rly *s**p** *or *TML *ttri*ut*s. T** vuln*r**ility m*ni**sts in t** `Us*