Описание
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.
Отчет
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.
Меры по смягчению последствий
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.
Дополнительная информация
Статус:
EPSS
5.7 Medium
CVSS3
Связанные уязвимости
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.
@backstage/backend-app-api leaks GitLab access tokens
Уязвимость функции catalog-import открытой онлайн-платформа разработки программного обеспечения Red Hat Developer Hub, позволяющая нарушителю раскрыть защищаемую информацию
EPSS
5.7 Medium
CVSS3