id: oauth-credentials-json

info:
  name: Oauth Credentials Json
  author: DhiyaneshDK
  severity: low
  description: Oauth Credentials file is exposed.
  metadata:
    verified: true
    max-request: 1
    google-query: intitle:"index of" "oauth-credentials.json"
  tags: exposure,oauth,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/oauth-credentials.json"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"client_id":'
          - '"client_secret":'
        condition: and

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