Miggo Logo

CVE-2004-1177: mailman Cross-site scripting (XSS) vulnerability

N/A

CVSS Score

Basic Information

EPSS Score
0.80807%
Published
4/29/2022
Updated
9/18/2023
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
-
Package NameEcosystemVulnerable VersionsFirst Patched Version
mailmanpip< 2.1.52.1.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper output encoding in error pages generated by mailman's driver script. The Debian bug report shows the patch adds XML escaping for both environment variables (os.environ items) and traceback output. The original vulnerable code directly printed user-controlled URL parameters in error responses without sanitization, particularly in the sections handling: 1) Traceback output after exceptions 2) Environment variable display in debug output. The patch specifically introduces xml.sax.saxutils.escape() calls to sanitize these outputs, confirming these were the vulnerable code paths.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*ross-sit* s*riptin* (XSS) vuln*r**ility in t** *riv*r s*ript in m*ilm*n ***or* *.*.* *llows r*mot* *tt**k*rs to inj**t *r*itr*ry w** s*ript or *TML vi* * URL, w*i** is not prop*rly *s**p** in t** r*sultin* *rror p***.

Reasoning

T** vuln*r**ility st*ms *rom improp*r output *n*o*in* in *rror p***s **n*r*t** *y m*ilm*n's *riv*r s*ript. T** ***i*n *u* r*port s*ows t** p*t** ***s XML *s**pin* *or *ot* *nvironm*nt v*ri**l*s (os.*nviron it*ms) *n* tr******k output. T** ori*in*l vu