Miggo Logo

CVE-2024-31453: PsiTransfer: Violation of the integrity of file distribution

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.35137%
Published
4/5/2024
Updated
4/9/2024
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
psitransfernpm< 2.2.02.2.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the middleware handling file uploads at /files endpoint. The commit diff shows the patch added an async check (store.info(fid)) to verify if upload is still partial. Before this fix, the function didn't validate() if the target distribution had already completed its upload process, allowing attackers to inject new files by specifying existing distribution IDs. The vulnerable code path is clearly in the request handler for POST/PATCH methods on the /files route, which was modified in the patch to add the restriction.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

**Summ*ry** T** **s*n** o* r*stri*tions on t** *n*point, w*i** *llows you to *r**t* * p*t* *or uplo**in* * *il* in * *il* *istri*ution, *llows *n *tt**k*r to *** *r*itr*ry *il*s to t** *istri*ution. ****t*ils** Vuln*r**l* *n*point: POST /*il*s **Po

Reasoning

T** vuln*r**ility st*ms *rom t** mi**l*w*r* **n*lin* *il* uplo**s *t /*il*s *n*point. T** *ommit *i** s*ows t** p*t** ***** *n *syn* ****k (`stor*.in*o(*i*)`) to v*ri*y i* uplo** is still p*rti*l. ***or* t*is *ix, t** *un*tion *i*n't `v*li**t*()` i*