mirror of
https://github.com/usestrix/strix.git
synced 2026-08-23 11:22:37 +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/`)
|
- 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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**
|
||||||
|
|||||||
Reference in New Issue
Block a user