Bug 1959721 (CVE-2019-20149) - CVE-2019-20149 nodejs-kind-of: ctorName in index.js allows external user input to overwrite certain internal attributes
Summary: CVE-2019-20149 nodejs-kind-of: ctorName in index.js allows external user inpu...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-20149
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1960755 1971494 1971495 1971497 1959722 1960168 1960615 1961950 1961951 1961952 1961953 1961954 1961955 1961956 1961957 1967358 1971397 1971398 1971399 2126172 2126173
Blocks: 1959723
TreeView+ depends on / blocked
 
Reported: 2021-05-12 08:09 UTC by Sam Fowler
Modified: 2023-09-01 00:08 UTC (History)
73 users (show)

Fixed In Version: kind-of 6.0.3
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-kind-of. An external user is allowed input to overwrite certain internal attributes via a conflicting name, as demonstrated by 'constructor': {'name':'Symbol'}. Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.
Clone Of:
Environment:
Last Closed: 2021-09-08 02:33:25 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3454 0 None None None 2021-09-07 22:22:28 UTC

Description Sam Fowler 2021-05-12 08:09:25 UTC
ctorName in index.js in kind-of v6.0.2 allows external user input to overwrite certain internal attributes via a conflicting name, as demonstrated by 'constructor': {'name':'Symbol'}. Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.


References:

https://security-tracker.debian.org/tracker/CVE-2019-20149
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-20149
https://github.com/jonschlinkert/kind-of/issues/30
https://github.com/jonschlinkert/kind-of/pull/31

Comment 1 Sam Fowler 2021-05-12 08:10:35 UTC
Created nodejs-kind-of tracking bugs for this issue:

Affects: fedora-all [bug 1959722]

Comment 4 Jason Shepherd 2021-05-13 01:11:55 UTC
Versions of `kind-of` 6.x prior to 6.0.3 are vulnerable.

Comment 7 Tapas Jena 2021-05-14 18:26:03 UTC
Analysis is complete for AAP components and as a result, I found that though its uses the vulnerable version of nodeJS kind-of lib, none of the components seem to be using the ctorName functionality in index.js or kind-of / kindOf functionality for type checking. Hence, lowering the severity from medium to low.

Comment 19 errata-xmlrpc 2021-09-07 22:22:25 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8
  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 7

Via RHSA-2021:3454 https://access.redhat.com/errata/RHSA-2021:3454

Comment 20 Product Security DevOps Team 2021-09-08 02:33:25 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-20149


Note You need to log in before you can comment on or make changes to this bug.