Rhdh: catalog-import function leaks credentials to frontend
Published Jan 4, 2024
7.3
HIGHCVSS 3.1
EPSS 0.56%
Description
A flaw was found in the Red Hat Developer Hub (RHDH). The catalog-import function leaks GitLab access tokens on the frontend when the base64 encoded GitLab token includes a newline at the end of the string. The sanitized error can display on the frontend, including the raw access token. Upon gaining access to this token and depending on permissions, an attacker could push malicious code to repositories, delete resources in Git, revoke or generate new keys, and sign code illegitimately.
Affected products
No data.
Configuration 1
- < 1.21.0
Configuration 2
- < 1.21.0
No data.
RHDH-1.1-RHEL-9
rhdh/rhdh-hub-rhel9:1.1-107.1724038966
Fixed · RHBA-2024:5869
| Product | Package | State | Advisory |
|---|---|---|---|
| RHDH-1.1-RHEL-9 | rhdh/rhdh-hub-rhel9:1.1-107.1724038966 | Fixed | RHBA-2024:5869 |
@backstage/backend-app-api
npm
Introduced 0 Fixed 0.5.9-next.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @backstage/backend-app-api | 0 | 0.5.9-next.1 |
Remediation
Vendor solution
To mitigate this vulnerability until you can update to RHDH 1.1, ensure that the base64 encoded GitLab token does not contain a newline character at the end. Removing the newline from the token prevents the unintended disclosure of the access token through the frontend.
Red Hat statement
The vulnerability is assessed with a Moderate impact rating since its exploitation necessitates the user inputting an invalid token. Red Hat Developer Hub contains the fix for this vulnerability with Backstage 1.22.
Red Hat mitigation
To mitigate this vulnerability until you can update to RHDH 1.1, ensure that the base64 encoded GitLab token does not contain a newline character at the end. Removing the newline from the token prevents the unintended disclosure of the access token through the frontend.
References (11)
- https://access.redhat.com/errata/RHBA-2024:5869 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-6944 vdb-entryx_refsource_REDHATVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2255204 issue-trackingx_refsource_REDHATIssue TrackingVendor Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0292 Advisory
- https://github.com/advisories/GHSA-86rg-pf4c-5grg Advisory
- https://github.com/backstage/backstage/blob/master/docs/releases/v1.21.0-next.2-changelog.md
- https://github.com/backstage/backstage/commit/0382db60f6c8e8715a702bde6408ad10a48d8e11
- https://github.com/backstage/backstage/issues/21503
- https://github.com/backstage/backstage/pull/21582
- https://nvd.nist.gov/vuln/detail/CVE-2023-6944
- https://www.cve.org/CVERecord?id=CVE-2023-6944
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHBA-2024:5869 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2023-6944 | vdb-entryx_refsource_REDHATVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2255204 | issue-trackingx_refsource_REDHATIssue TrackingVendor Advisory | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0292 | Advisory | |
| https://github.com/advisories/GHSA-86rg-pf4c-5grg | Advisory | |
| https://github.com/backstage/backstage/blob/master/docs/releases/v1.21.0-next.2-changelog.md | ||
| https://github.com/backstage/backstage/commit/0382db60f6c8e8715a702bde6408ad10a48d8e11 | ||
| https://github.com/backstage/backstage/issues/21503 | ||
| https://github.com/backstage/backstage/pull/21582 | ||
| https://nvd.nist.gov/vuln/detail/CVE-2023-6944 | ||
| https://www.cve.org/CVERecord?id=CVE-2023-6944 |
Change history (0)
No recorded changes yet.