id: helpscout-takeover

info:
  name: helpscout takeover detection
  author: pdteam
  severity: high
  description: helpscout takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz
  metadata:
    max-request: 1
  tags: takeover,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        words:
          - "No settings were found for this company:"

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 4a0a00473045022100db70a33c3c643520d9c804e8a7a6e4218527d9a2614604776a663dfffd8b660d02204f60b57c0fb1eadae7fb77c423cf142ab6986ad4f9ed52ffb857b757eb815783:922c64590222798bb761d5b6d8e72950