Miggo Logo

CVE-2020-25817: SilverStripe XXE Vulnerability in CSSContentParser

4.8

CVSS Score
3.1

Basic Information

EPSS Score
0.56709%
Published
5/24/2022
Updated
4/25/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
silverstripe/frameworkcomposer>= 4.0.0, < 4.7.44.7.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from XML parsing in CSSContentParser allowing external entities. Though the class is intended for test purposes, its misuse with user-controlled data made it vulnerable. The patch explicitly disabled external entities (LIBXML_NOENT), confirming the root cause was insecure XML parsing configuration in this component. The primary vulnerable function would be the HTML/XML parsing logic within CSSContentParser initialization.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Silv*rStrip* t*rou** *.*.*-r** **s *n XX* Vuln*r**ility in *SS*ont*ntP*rs*r. * **v*lop*r utility m**nt *or p*rsin* *TML wit*in unit t*sts **n ** vuln*r**l* to XML *xt*rn*l *ntity (XX*) *tt**ks. W**n t*is **v*lop*r utility is misus** *or purpos*s invo

Reasoning

T** vuln*r**ility st*ms *rom XML p*rsin* in `*SS*ont*ntP*rs*r` *llowin* *xt*rn*l *ntiti*s. T*ou** t** *l*ss is int*n*** *or t*st purpos*s, its misus* wit* us*r-*ontroll** **t* m*** it vuln*r**l*. T** p*t** *xpli*itly *is**l** *xt*rn*l *ntiti*s (`LI*X