gcs-bucket-listing: Google Cloud Storage - Public Bucket Listing

2026-01-08 Google Cloud Storage PoC Public

Description

Detected Google Cloud Storage bucket was publicly accessible and allows listing of objects, potentially exposing sensitive files.

PoC

id: gcs-bucket-listing

info:
  name: Google Cloud Storage - Public Bucket Listing
  author: 0x_Akoko
  severity: unknown
  description: |
    Detected Google Cloud Storage bucket was publicly accessible and allows listing of objects, potentially exposing sensitive files.
  reference:
    - https://cloud.google.com/storage/docs/public-access-prevention
  metadata:
    verified: true
    max-request: 1
    shodan-query: "storage.googleapis.com"
  tags: exposure,gcs,google,cloud,bucket,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "ListBucketResult", "<Contents>", "<Generation>")'
        condition: and
# digest: 4a0a0047304502210092a3adcf783804e5ab807e064d610c6b38e57c7bbfb42759b2f96f18de67b38a02201161afa985ffc55524e0e2cf0878ecdcbcf1bb4189a2596faf198e181e5175e6:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities