More Info:

Ensure that cloud Storage buckets do not allow All Authenticated Users to Write (“allAuthenticatedUsers” must not have “WRITER” roles)

Risk Level

High

Address

Security

Compliance Standards

NIST

Triage and Remediation

Remediation

To remediate the issue of GCP buckets allowing all authenticated users to write, you can follow these steps:

  1. Go to the GCP console and select the project where the bucket is located.

  2. Navigate to the Cloud Storage section and select the bucket that needs to be remediated.

  3. Click on the “Permissions” tab on the left-hand side of the screen.

  4. Under the “Members” section, find the “allAuthenticatedUsers” entry and click on the pencil icon next to it to edit the permissions.

  5. In the “Add members” field, type “allUsers” and select the “Storage Object Viewer” role from the dropdown menu.

  6. Click on the “Save” button to apply the changes.

  7. Next, find the “allAuthenticatedUsers” entry again, and this time, click on the trash can icon to remove it.

  8. Click on the “Save” button to apply the changes.

  9. Finally, verify that the bucket no longer allows all authenticated users to write by attempting to upload a file to the bucket with an authenticated user account that does not have write access. The upload should fail with an access denied error.

By following these steps, you should be able to remediate the misconfiguration of GCP buckets allowing all authenticated users to write.