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 2f466c2ebf
commit 86b6ff85ec
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/`) - OAuth tokens in browser/local `gcloud` config (`~/.config/gcloud/`)
**Unauthenticated Enumeration** **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) # GCS bucket existence (403 = exists but private, 404 = not found/wrong region)
gsutil ls gs://target-bucket
curl -I https://storage.googleapis.com/target-bucket/ curl -I https://storage.googleapis.com/target-bucket/
# Anonymous listing (no Authorization header; confirms allUsers/allAuthenticatedUsers List)
curl https://storage.googleapis.com/target-bucket/ curl https://storage.googleapis.com/target-bucket/
# Firebase/GCP storage alternate URLs # Alternate URL forms
https://target-bucket.storage.googleapis.com/ curl -I https://target-bucket.storage.googleapis.com/
``` ```
**Authenticated Enumeration** **Authenticated Enumeration**
@@ -69,8 +73,8 @@ gcloud container clusters list
**Test:** **Test:**
``` ```
gsutil iam get gs://BUCKET gsutil iam get gs://BUCKET # requires credentials
gsutil ls gs://BUCKET curl https://storage.googleapis.com/BUCKET/ # anonymous listing check
curl -I https://storage.googleapis.com/BUCKET/sensitive.sql 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/openid-configuration
GET https://TENANT.auth0.com/.well-known/jwks.json 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 GET https://TENANT.auth0.com/userinfo
Authorization: Bearer <access_token>
``` ```
**Application Fingerprint** **Application Fingerprint**