Miggo Logo

CVE-2024-31868: Apache Zeppelin vulnerable to cross-site scripting in the helium module

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.73865%
Published
4/9/2024
Updated
10/3/2024
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.zeppelin:zeppelin-interpretermaven>= 0.8.2, < 0.11.10.11.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing output encoding when processing helium.json data. The patch introduces HTML escaping via preventXss() and makes the constructor private. The original fromJson() method (CVE entry point) and public constructor were vulnerable because they allowed unescaped user-controlled data (from helium.json) to flow into the UI without sanitization. The commit adds escaping to all text fields and resources array, confirming these were the injection points.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Improp*r *n*o*in* or *s**pin* o* Output vuln*r**ility in *p**** Z*pp*lin. *tt**k*rs **n mo*i*y `**lium.json` *n* p*r*orm *ross-sit* s*riptin* *tt**ks on norm*l us*rs. T*is issu* *****ts *p**** Z*pp*lin: *rom *.*.* ***or* *.**.*. Us*rs *r* r**omm*n*

Reasoning

T** vuln*r**ility st*ms *rom missin* output *n*o*in* w**n pro**ssin* **lium.json **t*. T** p*t** intro*u**s *TML *s**pin* vi* pr*v*ntXss() *n* m*k*s t** *onstru*tor priv*t*. T** ori*in*l *romJson() m*t*o* (*V* *ntry point) *n* pu*li* *onstru*tor w*r*