id: google-services-json

info:
  name: Google Service Json
  author: DhiyaneshDK
  severity: low
  description: google-services.json internal file is exposed.
  reference:
    - https://www.exploit-db.com/ghdb/6886
  metadata:
    verified: true
    max-request: 3
    google-query: intitle:"index of" "google-services.json"
  tags: google,cloud,exposure,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/google-services.json"
      - "{{BaseURL}}/app/google-services.json"
      - "{{BaseURL}}/android/app/google-services.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'storage_bucket'
          - 'oauth_client'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402201a19149990eb16c915d2883f46f8a4a372a834223bc6adf2e7e73d40eeb0e06e02201131e9bd7af3cc4add972d50c8232cb1f8b1be5a6ccaacb65bc99337e49f5a9c:922c64590222798bb761d5b6d8e72950