Miggo Logo

CVE-2024-50336: matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal

5.3

CVSS Score
4.0

Basic Information

EPSS Score
0.41405%
Published
11/12/2024
Updated
11/12/2024
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Package NameEcosystemVulnerable VersionsFirst Patched Version
matrix-js-sdknpm< 34.11.134.11.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerable functions are likely those that handle MXC URIs. The matrix-js-sdk's failure to validate() the server-name and media-id components of these URIs is the root of the vulnerability. Functions like parseMxCUri and getHttpUriForMxc are potential candidates because they are involved in processing MXC URIs.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Summ*ry m*trix-js-s*k ***or* **.**.* is vuln*r**l* to *li*nt-si** p*t* tr*v*rs*l vi* *r**t** MX* URIs. * m*li*ious room m*m**r **n tri***r *li*nts **s** on t** m*trix-js-s*k to issu* *r*itr*ry *ut**nti**t** **T r*qu*sts to t** *li*nt's *om*s*rv*

Reasoning

T** vuln*r**l* *un*tions *r* lik*ly t*os* t**t **n*l* MX* URIs. T** m*trix-js-s*k's **ilur* to `v*li**t*()` t** s*rv*r-n*m* *n* m**i*-i* *ompon*nts o* t**s* URIs is t** root o* t** vuln*r**ility. *un*tions lik* `p*rs*Mx*Uri` *n* `**t*ttpUri*orMx*` *r