Miggo Logo

CVE-2018-3723: Prototype Pollution in defaults-deep

8.8

CVSS Score
3.0

Basic Information

EPSS Score
0.62845%
Published
7/26/2018
Updated
9/12/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
defaults-deepnpm< 0.2.40.2.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the recursive merging logic in the 'copy' helper function. Before the patch in 0.2.4, this function didn't check for 'proto' property when iterating over object keys. Attackers could craft objects containing 'proto' properties that would be merged into the target object, modifying the prototype chain. The commit c873f34 explicitly adds a check for 'proto' in this function, confirming this was the vulnerable code path. The CWE-471 classification and vulnerability description both align with this prototype pollution vector through recursive object merging.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

V*rsions o* `****ult-***p` ***or* *.*.* *r* vuln*r**l* to prototyp* pollution ## R**omm*n**tion Up**t* to v*rsion *.*.* or l*t*r.

Reasoning

T** vuln*r**ility st*ms *rom t** r**ursiv* m*r*in* lo*i* in t** '*opy' **lp*r *un*tion. ***or* t** p*t** in *.*.*, t*is *un*tion *i*n't ****k *or '__proto__' prop*rty w**n it*r*tin* ov*r o*j**t k*ys. *tt**k*rs *oul* *r**t o*j**ts *ont*inin* '__proto_