Miggo Logo

CVE-2024-5520: OpenCMS Cross-Site Scripting vulnerability

6.4

CVSS Score
3.1

Basic Information

EPSS Score
0.34766%
Published
5/30/2024
Updated
5/30/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.opencms:opencms-coremaven= 16.017.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The analysis involved examining the patches for CVE-2024-5520 in OpenCMS. The patches modified two classes, CmsCreateSiteThread and CmsDeleteSiteDialog, to properly escape site titles when generating output, thus fixing an XSS vulnerability. The functions run() in CmsCreateSiteThread and getContent() in CmsDeleteSiteDialog were identified as vulnerable because they directly handled user input (site titles) without proper sanitization before outputting it.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Two *ross-Sit* S*riptin* vuln*r**iliti*s **v* ***n *is*ov*r** in *lk**on's Op*n*MS *****tin* v*rsion **, w*i** *oul* *llow * us*r: wit* su**i*i*nt privil***s to *r**t* *n* mo*i*y w** p***s t*rou** t** **min p*n*l, **n *x**ut* m*li*ious J*v*S*ript *o

Reasoning

T** *n*lysis involv** *x*minin* t** p*t***s *or *V*-****-**** in Op*n*MS. T** p*t***s mo*i*i** two *l*ss*s, `*ms*r**t*Sit*T*r***` *n* `*ms**l*t*Sit**i*lo*`, to prop*rly *s**p* sit* titl*s w**n **n*r*tin* output, t*us *ixin* *n XSS vuln*r**ility. T**