mirror of
https://github.com/0xMarcio/cve.git
synced 2025-05-31 10:40:54 +00:00
1.1 KiB
1.1 KiB
CVE-2022-21190
Description
This affects the package convict before 6.2.3. This is a bypass of CVE-2022-22143. The fix introduced, relies on the startsWith method and does not prevent the vulnerability: before splitting the path, it checks if it starts with proto or this.constructor.prototype. To bypass this check it's possible to prepend the dangerous paths with any string value followed by a dot, like for example foo.proto or foo.this.constructor.prototype.
POC
Reference
- https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808
- https://snyk.io/vuln/SNYK-JS-CONVICT-2774757