Miggo Logo

CVE-2018-1285:
Apache Log4net XML External Entity Vulnerability

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.9754%
Published
1/29/2021
Updated
1/30/2023
KEV Status
No
Technology
TechnologyC#

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
log4netnuget< 2.0.102.0.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from log4net's XML configuration parser not disabling DTD/external entity processing. The JIRA ticket LOG4NET-575 explicitly identifies the InternalConfigure() method as the vulnerable function that handles configuration stream processing. This matches the CVE description of XXE vulnerability in configuration parsing. The function's purpose of loading configurations from arbitrary streams without proper XML hardening makes it the clear entry point for XXE attacks.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*p**** lo**n*t ***or* *.*.** *o*s not *is**l* XML *xt*rn*l *ntiti*s w**n p*rsin* lo**n*t *on*i*ur*tion *il*s. T*is *oul* *llow *or XX*-**s** *tt**ks in *ppli**tions t**t ****pt *r*itr*ry *on*i*ur*tion *il*s *rom us*rs.

Reasoning

T** vuln*r**ility st*ms *rom `lo**n*t`'s XML *on*i*ur*tion p*rs*r not *is**lin* *T*/*xt*rn*l *ntity pro**ssin*. T** JIR* ti*k*t `LO**N*T-***` *xpli*itly i**nti*i*s t** `Int*rn*l*on*i*ur*()` m*t*o* *s t** vuln*r**l* *un*tion t**t **n*l*s *on*i*ur*tion