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

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: 4a0a0047304502203b8cdbeba9080695b45626dd46b7a63058294d8015110ffc268c5d1b7d31bf65022100db73dd4921f53ca0f28a820554e6a4076e0bab52512c33e6b867e7109dfd838c:922c64590222798bb761d5b6d8e72950