Address Greptile review: GCP and Auth0 recon guidance

- Use curl instead of gsutil for anonymous GCS checks
- Document userinfo requires bearer access token
This commit is contained in:
Ayush7614
2026-07-10 08:15:22 -07:00
committed by Ahmed Allam
parent 054725ccb6
commit f528a6d265
2 changed files with 15 additions and 6 deletions
+10 -6
View File
@@ -37,14 +37,18 @@ GCP misconfigurations expose project data, service account keys, and lateral mov
- OAuth tokens in browser/local `gcloud` config (`~/.config/gcloud/`)
**Unauthenticated Enumeration**
Avoid `gsutil` for anonymous checks — it can use ambient `gcloud` or application-default credentials and produce false public-bucket findings. Unset `GOOGLE_APPLICATION_CREDENTIALS` and use unauthenticated HTTP instead.
```
# GCS bucket existence and listing (allUsers / allAuthenticatedUsers)
gsutil ls gs://target-bucket
# GCS bucket existence (403 = exists but private, 404 = not found/wrong region)
curl -I https://storage.googleapis.com/target-bucket/
# Anonymous listing (no Authorization header; confirms allUsers/allAuthenticatedUsers List)
curl https://storage.googleapis.com/target-bucket/
# Firebase/GCP storage alternate URLs
https://target-bucket.storage.googleapis.com/
# Alternate URL forms
curl -I https://target-bucket.storage.googleapis.com/
```
**Authenticated Enumeration**
@@ -69,8 +73,8 @@ gcloud container clusters list
**Test:**
```
gsutil iam get gs://BUCKET
gsutil ls gs://BUCKET
gsutil iam get gs://BUCKET # requires credentials
curl https://storage.googleapis.com/BUCKET/ # anonymous listing check
curl -I https://storage.googleapis.com/BUCKET/sensitive.sql
```
+5
View File
@@ -40,7 +40,12 @@ client_id, audience, scope values in authorize URLs
```
GET https://TENANT.auth0.com/.well-known/openid-configuration
GET https://TENANT.auth0.com/.well-known/jwks.json
```
**Authenticated Userinfo** (requires bearer access token — unauthenticated requests return 401)
```
GET https://TENANT.auth0.com/userinfo
Authorization: Bearer <access_token>
```
**Application Fingerprint**