id: token-json

info:
  name: Token Json File Disclosure
  author: DhiyaneshDK
  severity: low
  description: Internal token.json file is exposed.
  metadata:
    verified: true
    max-request: 2
    google-query: intitle:"index of" "token.json"
  tags: exposure,cloud,google,devops,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/token.json"
      - "{{BaseURL}}/search/token.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"access_token":'
          - '"token_type":'
        condition: and

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