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

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