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

Exposure of confidential secret or token GCP OAuth client secret

Description

The response body contains content that matches the pattern of a GCP OAuth client secret was identified. Client secret are used when allowing users to Sign in to your application. Depending on the scopes requested, a malicious actor with access to the secret can impersonate the service to access users information. 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 OAuth client secret:

  • Sign in to your GCP account and go to https://console.cloud.google.com/apis/credentials
  • Under the “Name” column of “OAuth 2.0 Client IDs” table, select the name of the client of the identified key
  • Under the “Client secrets” section, you must first add a new secret, select “Add Secret”
  • For the identified key, select “Disable”
  • When prompted, select “Disable” in the “Disable this secret?” dialog
  • You may now select the trash icon to delete the disabled key

For more information, please see Googles authentication documentation on setting up OAuth 2.0

Details

IDAggregatedCWETypeRisk
798.138false798PassiveHigh