Miggo Logo

GHSA-432c-wxpg-m4q3: xml2rfc has file inclusion irregularities

N/A

CVSS Score

Basic Information

CVE ID
-
EPSS Score
-
Published
2/7/2025
Updated
2/7/2025
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
xml2rfcpip>= 3.12.0, < 3.27.03.27.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from three key areas:

  1. In parser.py's resolve() method, XML entity references were allowed to access template_dir and source_dir without proper flag checks.
  2. In base.py's check_includes(), XInclude processing lacked centralized access control checks.
  3. In preptool.py's check_src_file_path(), src attributes were resolved without using the new can_access() validations. The commit diff shows these functions were modified to use the new can_access() security checks, indicating they were previously missing proper authorization controls. These functions directly handle file inclusion mechanisms (XML entities, XInclude, and src attributes) described in the vulnerability report.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

V*rsion [*.**.*](*ttps://*it*u*.*om/i*t*-tools/xml*r**/*lo*/m*in/***N**LO*.m*#****---****-**-**) ***n*** `xml*r**` so t**t it woul* not ****ss lo**l *il*s wit*out t** pr*s*n** o* its n*w `--*llow-lo**l-*il*-****ss` *l**. T*is pr*v*nt** XML *xt*rn*l *

Reasoning

T** vuln*r**ility st*ms *rom t*r** k*y *r**s: *. In p*rs*r.py's r*solv*() m*t*o*, XML *ntity r***r*n**s w*r* *llow** to ****ss t*mpl*t*_*ir *n* sour**_*ir wit*out prop*r *l** ****ks. *. In **s*.py's ****k_in*lu**s(), XIn*lu** pro**ssin* l**k** **ntr*