id: google-api-private-key

info:
  name: Google Api Private Key
  author: DhiyaneshDK
  severity: medium
  description: Google API private keys are exposed in files.
  reference:
    - https://www.exploit-db.com/ghdb/6037
  metadata:
    verified: true
    max-request: 3
    google-query: intitle:"index of" "google-api-private-key.json"
  tags: exposure,cloud,google,devops,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/google-api-private-key.json"
      - "{{BaseURL}}/app/config/pimcore/google-api-private-key.json"
      - "{{BaseURL}}/pimcore/app/config/pimcore/google-api-private-key.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'private_key_id'
          - 'private_key'
        condition: and

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