Miggo Logo

CVE-2018-18548: Ajenti Cross-site Scripting Via Filename

6.1

CVSS Score
3.0

Basic Information

EPSS Score
0.86102%
Published
5/14/2022
Updated
9/3/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
ajentipip<= 1.2.23.13

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unsanitized filename rendering in the File Manager's web interface. The exploit requires filenames to be displayed without proper encoding, which points directly to the directory listing functionality. In Ajenti's architecture, the FileManagerHandler class likely handles file/directory operations, and its directory listing method would be responsible for passing raw filenames to the UI template. The absence of HTML entity encoding in this data flow matches the described XSS attack vector via crafted filenames.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*j*nti t*rou** v*.*.**.** **s * *ross-sit* S*riptin* (XSS) vuln*r**ility vi* * *il*n*m* t**t is mis**n*l** in *il* M*n***r.

Reasoning

T** vuln*r**ility st*ms *rom uns*nitiz** `*il*n*m*` r*n**rin* in t** *il* M*n***r's w** int*r****. T** *xploit r*quir*s `*il*n*m*s` to ** *ispl*y** wit*out prop*r *n*o*in*, w*i** points *ir**tly to t** *ir**tory listin* *un*tion*lity. In *j*nti's *r*