CVE-2022-21190
Convict Prototype Pollution Bypass
Description
This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) 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.
INFO
Published Date :
May 13, 2022, 8:15 p.m.
Last Modified :
Nov. 21, 2024, 6:44 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2022-21190 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-21190
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
My personal repository
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-21190
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-21190
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808 Added Reference https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571 Added Reference https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07 Added Reference https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75 Added Reference https://snyk.io/vuln/SNYK-JS-CONVICT-2774757 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
May. 24, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808 No Types Assigned https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808 Exploit, Third Party Advisory Changed Reference Type https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571 No Types Assigned https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571 Broken Link, Patch, Third Party Advisory Changed Reference Type https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07 No Types Assigned https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07 Broken Link, Release Notes, Tool Signature Changed Reference Type https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75 No Types Assigned https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75 Patch, Tool Signature Changed Reference Type https://snyk.io/vuln/SNYK-JS-CONVICT-2774757 No Types Assigned https://snyk.io/vuln/SNYK-JS-CONVICT-2774757 Exploit, Third Party Advisory Added CWE NIST CWE-1321 Added CPE Configuration OR *cpe:2.3:a:mozilla:convict:*:*:*:*:*:node.js:*:* versions up to (excluding) 6.2.3 -
CVE Modified by [email protected]
May. 13, 2022
Action Type Old Value New Value Changed Description This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) 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. This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) 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.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-21190
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-21190
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.35 }} 0.62%
score
0.85856
percentile