Google Api Private Key
ID: google-api-private-key
Severity: medium
Author: DhiyaneshDK
Tags: exposure,cloud,google,devops,files
Description
Section titled “Description”Google API private keys are exposed in files.
YAML Source
Section titled “YAML Source”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
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: 490a00463044022000d8c0014f6966ae3bb0f104056aaafdffeecc7bedc276226e999df847e97919022049d124306ae6f2f43a4372e2eb167b29287fe7003246bbf0c6359d9c6b030720:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/files/google-api-private-key.yaml"