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

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