Miggo Logo

CVE-2020-7679: Improperly Controlled Modification of Dynamically-Determined Object Attributes in casperjs

7.3

CVSS Score
3.1

Basic Information

EPSS Score
0.72647%
Published
5/17/2021
Updated
9/13/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
casperjsnpm<= 1.1.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

  1. Multiple sources (CVE, GHSA, Snyk) explicitly identify mergeObjects as the vulnerable function.
  2. The PoC demonstrates prototype pollution occurs through this function.
  3. The vulnerability matches CWE-1321's pattern of unsafe prototype attribute modification.
  4. The function's recursive merging logic likely doesn't check for prototype special properties like proto.
  5. File path is confirmed by GitHub advisory links to utils.js line 680 where merge logic resides.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Ov*rvi*w **sp*rjs is * n*vi**tion s*riptin* & t*stin* utility *or P**ntomJS *n* Slim*rJS. *****t** v*rsions o* t*is p**k*** *r* vuln*r**l* to Prototyp* Pollution vi* t** m*r**O*j**ts utility *un*tion. ### Po* ```js v*r p*ylo** = JSON.p*rs*('{"_

Reasoning

*. Multipl* sour**s (*V*, **S*, Snyk) *xpli*itly i**nti*y m*r**O*j**ts *s t** vuln*r**l* *un*tion. *. T** Po* **monstr*t*s prototyp* pollution o**urs t*rou** t*is *un*tion. *. T** vuln*r**ility m*t***s *W*-****'s p*tt*rn o* uns*** prototyp* *ttri*ut*