正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Exposure of confidential secret or token GitHub personal access token (classic)

Description

The response body contains content that matches the pattern of a GitHub personal access token (classic) was identified. Personal access tokens can be used to access GitHub services as the user who created them. In most cases these tokens are given read-write access to all repositories. A malicious actor with access to this token can execute functionality on behalf of the user with the given permissions of the token. 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 regenerate a personal access token:

  • Sign in to your GitHub account and access https://github.com/settings/tokens
  • Find the token that was identified and select the name
  • Select “Regenerate token” at the top of the page Alternatively, you could select “Delete this token” at the bottom of the page and create a new one. Be sure to note the scopes and permissions set before doing this action.

For more information, please see GitHubs documentation on personal access tokens.

Details

IDAggregatedCWETypeRisk
798.52false798PassiveHigh