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,vuln

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