GCS Bucket with public write at risk of malicious hosting

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Description

A Google Cloud Storage bucket is publicly accessible and allows public writes. An attacker could use the bucket’s reputation and bandwidth to host malware or other malicious content, or to overwrite existing objects.

Remediation

  1. Update the bucket’s IAM policy to remove public write access (allUsers and allAuthenticatedUsers with write/owner roles). See the official documentation for more information about disabling public access.
  2. Restrict bucket access to the necessary users or service accounts by reviewing IAM policies and bucket-level permissions. For more information, see the official documentation.