Skip to content

'Exposure of confidential secret or token RubyGems API token'

Description

The response body contains content that matches the pattern of a RubyGems API token was identified. RubyGems tokens are used for accessing the API or publishing packages. RubyGems tokens can be created with specific permissions or scopes. Depending on the permissions and scope, a malicious actor with access to this token can add or remove packages, add or remove owners, or view the dashboard. Exposing this value could allow attackers to gain access to all resources granted by this token.

Remediation

For general guidance on handling security incidents with regards to leaked keys, please see the GitLab documentation on Credential exposure to the internet.

To revoke the API token:

For more information, please see the RubyGems documentation on API tokens.

Details

ID Aggregated CWE Type Risk
798.97 false 798 Passive High

Links