id: get-access-token-json

info:
  name: Get Access Token Json
  author: DhiyaneshDK
  severity: low
  description: Internal file is exposed in Constant Contact Forms wordpress plugin.
  classification:
    cpe: cpe:2.3:a:constantcontact:constant_contact_forms:*:*:*:*:wordpress:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: constantcontact
    product: constant_contact_forms
    google-query: intitle:"index of" "get_access_token.json"
  tags: exposure,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/constant-contact-forms/vendor/constantcontact/constantcontact/test/Json/Auth/get_access_token.json"
      - "{{BaseURL}}/wp-content/plugins/constant-contact-api-old/vendor/constantcontact/constantcontact/test/Json/Auth/get_access_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: 4a0a004730450221008e96cc213e60ea33ca1e1da67a4f4115e00da60f99b8d88ad4c802a25a229feb022049b9e6f350b77a6f9953303d20abfe9677df4b4bd9f903523c232fd25248e2dd:922c64590222798bb761d5b6d8e72950