gcloudignore-file-exposure: Google Cloud Ignore File Exposure

2026-01-16 gcloudignore-file-exposure PoC Public

Description

Detected exposed .gcloudignore files which may reveal directory structure,deployment configurations, and sensitive project information used by Google Cloud SDK (gcloud) during deployments.

PoC

id: gcloudignore-file-exposure

info:
  name: Google Cloud Ignore File Exposure
  author: DhiyaneshDK
  severity: low
  description: |
    Detected exposed .gcloudignore files which may reveal directory structure,deployment configurations, and sensitive project information used by Google Cloud SDK (gcloud) during deployments.
  reference:
    - https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore
  metadata:
    verified: true
    max-request: 1
  tags: exposure,gcloud,google,config,files,cloud,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.gcloudignore"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "deployment"
          - "Cloud Build"
        condition: or

      - type: word
        part: content_type
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100962a59ca63749b85340b1afadcb47cc2638c016ecd8afc3a2e937e549d157efa022100f6e580e4345812a0ed7fe900fb8750f118a23ea0c4f1c7579e155b29002b0a6d:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities