id: squadcast-takeover

info:
  name: Squadcast Takeover Detection
  author: philippedelteil
  severity: high
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/398
  metadata:
    max-request: 1
  tags: takeover,squadcast,vuln

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

    redirects: true
    max-redirects: 2

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

      - type: word
        words:
          - 'There doesn’t seem to be an active status page associated with this URL.'
          - 'Please check the URL and try again.'
        condition: and

      - type: status
        status:
          - 404

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