CVE-2023-6944: Rhdh: catalog-import function leaks credentials to frontend
A flaw was found in Red Hat Developer Hub (RHDH) in the catalog-import function. The vulnerability is that the catalog-import function leaks GitLab access tokens on the frontend. This leakage occurs when the base64 encoded GitLab token includes a newline at the end of the string. The sanitized error displayed on the frontend inadvertently includes the raw access token, which should never be exposed to frontend users.
The impact of this vulnerability is significant. An attacker, upon gaining access to this token, could potentially execute a range of malicious activities depending on the token's permissions. These activities could include pushing malicious code to repositories, deleting resources in Git, revoking or generating new keys, or even signing code illegitimately.
Other sources
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.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2023-6944?
CVE-2023-6944 has a moderate severity due to the potential exposure of sensitive GitLab access tokens.
How do I fix CVE-2023-6944?
To remediate CVE-2023-6944, update Red Hat Developer Hub to version 1.21.0 or later.
What systems are affected by CVE-2023-6944?
CVE-2023-6944 affects Red Hat Developer Hub versions prior to 1.21.0 and certain versions of Linux Foundation's Backstage.
What kind of data is leaked by CVE-2023-6944?
CVE-2023-6944 leaks GitLab access tokens on the frontend, potentially exposing user credentials.
Is there a workaround for CVE-2023-6944?
Currently, the recommended fix for CVE-2023-6944 is to upgrade to the patched versions as no specific workaround has been provided.