Bug 2054663 (CVE-2022-0512)

Summary: CVE-2022-0512 nodejs-url-parse: authorization bypass through user-controlled key
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bdettelb, caswilli, dwhatley, dymurray, ibolton, jmatthew, jmontleo, kaycoth, micjohns, rfreiman, slucidi, sseago, sthirugn
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An authorization bypass vulnerability was found in nodes-url-parse. This flaw allows a remote attacker with a basic user account to evade hostname verification by inserting the at symbol "@" at the end of the password field. This issue can allow entry to systems designed to block remote access and may not have additional defenses.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-25 14:32:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2054768, 2055585, 2110597, 2110598, 2110855    
Bug Blocks: 2054664    

Description Guilherme de Almeida Suckevicz 2022-02-15 12:52:26 UTC
Authorization bypass through user-controlled key in NPM url-parse prior to 1.5.6.

Reference:
https://huntr.dev/bounties/6d1bc51f-1876-4f5b-a2c2-734e09e8e05b

Upstream patch:
https://github.com/unshiftio/url-parse/commit/9be7ee88afd2bb04e4d5a1a8da9a389ac13f8c40

Comment 1 juneau 2022-02-15 16:41:52 UTC
marking services affected/fix

services-ccx/advisor-frontend:a764354/url-parse-1.5.1 https://github.com/RedHatInsights/ocp-advisor-frontend/blob/prod-stable/package-lock.json
services-management-platform/frontend-starter-app/frontend-starter-app:2b2ef7d/url-parse-1.5.1 https://github.com/RedHatInsights/sed-frontend/blob/master/package-lock.json
quay-io-3/quayio/quay:09e783d/url-parse-1.4.0 https://github.com/quay/quay/blob/quayio/package-lock.json
quay-io-3/quayio/quay:09e783d/url-parse-1.4.0 https://github.com/quay/quay/blob/quayio/yarn.lock
services-rhods/rhods/jupyterhub-odh:64e363a/url-parse-1.4.7 https://github.com/red-hat-data-services/jupyterhub-odh/blob/master/package-lock.json
services-assisted-installer/facet:b119ef2/url-parse-1.5.3 https://github.com/openshift-assisted/assisted-ui/blob/master/yarn.lock
services-assisted-installer/ui:33db575/url-parse-1.5.3 https://github.com/openshift-assisted/assisted-ui-lib/blob/master/yarn.lock
services-drift/drift/drift-frontend:d87d582/url-parse-1.5.3 https://github.com/RedHatInsights/drift-frontend/blob/master/package-lock.json
services-rhcert/rhcert-spa:ae8c43b/url-parse-1.5.3 https://gitlab.cee.redhat.com/certification/rhcert-spa/blob/master/package-lock.json
services-rhcert/rhcert-spa:ae8c43b/url-parse-1.5.3 https://gitlab.cee.redhat.com/certification/rhcert-spa/blob/master/yarn.lock

Comment 10 errata-xmlrpc 2022-09-13 00:58:20 UTC
This issue has been addressed in the following products:

  Red Hat Migration Toolkit for Containers 1.7

Via RHSA-2022:6429 https://access.redhat.com/errata/RHSA-2022:6429

Comment 11 Product Security DevOps Team 2022-11-25 14:32:07 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-2022-0512