Miggo Logo

CVE-2018-16490: Prototype Pollution in mpath

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.40867%
Published
2/7/2019
Updated
9/7/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
mpathnpm< 0.5.10.5.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in path traversal logic within set() and unset() functions. The patches add explicit checks to block modifications via 'proto', 'constructor', and 'prototype' path segments. In vulnerable versions, these functions would process malicious paths without validation, making them the direct entry points for prototype pollution. The profiler would show these functions handling attacker-controlled paths during exploitation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

V*rsions o* `mp*t*` ***or* *.*.* *r* vuln*r**l* to prototyp* pollution. Provi*** **rt*in input `mp*t*` **n *** or mo*i*y prop*rti*s o* t** `O*j**t` prototyp*. T**s* prop*rti*s will ** pr*s*nt on *ll o*j**ts. ## R**omm*n**tion Up**t* to v*rsion `*.

Reasoning

T** vuln*r**ility m*ni**sts in p*t* tr*v*rs*l lo*i* wit*in s*t() *n* uns*t() *un*tions. T** p*t***s *** *xpli*it ****ks to *lo*k mo*i*i**tions vi* '__proto__', '*onstru*tor', *n* 'prototyp*' p*t* s**m*nts. In vuln*r**l* v*rsions, t**s* *un*tions woul