Miggo Logo

CVE-2020-25830: MantisBT HTML Injection vulnerability

4.8

CVSS Score
3.1

Basic Information

EPSS Score
0.68382%
Published
5/24/2022
Updated
5/7/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
mantisbt/mantisbtcomposer< 2.24.32.24.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unescaped usage of a custom field's name in bug_actiongroup_page.php. The patch added string_attribute() around lang_get_defaulted(), confirming that the original implementation lacked proper output encoding. The lang_get_defaulted() function returns raw user-controlled data (custom field name), which was directly embedded into HTML without sanitization, creating an XSS vector. The file path and function are explicitly referenced in the commit diff and CVE description.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in M*ntis*T ***or* *.**.*. Improp*r *s**pin* o* * *ustom *i*l*'s n*m* *llows *n *tt**k*r to inj**t *TML *n*, i* *SP s*ttin*s p*rmit, ***i*v* *x**ution o* *r*itr*ry J*v*S*ript w**n *tt*mptin* to up**t* s*i* *ustom *i*l* vi* `*u

Reasoning

T** vuln*r**ility st*ms *rom un*s**p** us*** o* * *ustom *i*l*'s n*m* in *u*_**tion*roup_p***.p*p. T** p*t** ***** strin*_*ttri*ut*() *roun* l*n*_**t_****ult**(), *on*irmin* t**t t** ori*in*l impl*m*nt*tion l**k** prop*r output *n*o*in*. T** l*n*_**t