cve/2022/CVE-2022-21803.md

20 lines
972 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2022-21803](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21803)
![](https://img.shields.io/static/v1?label=Product&message=nconf&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%200.11.4%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Prototype%20Pollution&color=brighgreen)
### Description
This affects the package nconf before 0.11.4. When using the memory engine, it is possible to store a nested JSON representation of the configuration. The .set() function, that is responsible for setting the configuration properties, is vulnerable to Prototype Pollution. By providing a crafted property, it is possible to modify the properties on the Object.prototype.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2632450
- https://snyk.io/vuln/SNYK-JS-NCONF-2395478
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/dellalibera/dellalibera