mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
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:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user