Prit777-Akola / 777777888

777777
0 stars 0 forks source link

immer : < 9.0.6 - Prototype Pollution in immer #1

Open armorcodegithubqa[bot] opened 2 years ago

armorcodegithubqa[bot] commented 2 years ago

This affects the package immer before 9.0.6. A type confusion vulnerability can lead to a bypass of CVE-2020-28477 when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "proto" || p === "constructor") in applyPatches_ returns false if p is ['proto'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.

References:

File Path: public/package-lock.json

Mitigation: Patched version: 9.0.6

https://qa.armorcode.ai/#/findings/6251193

armorcodegithubqa[bot] commented 2 years ago

Finding 6251193 is mitigated by SYSTEM via ArmorCode Platform