id: wix-takeover

info:
  name: Wix Takeover Detection
  author: harshinsecurity,philippedelteil
  severity: high
  description: This subdomain take over would only work on an edge case when the account was deleted. You will need a premium account (~ US$7) to test the take over.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/231
  metadata:
    max-request: 1
  tags: takeover,wix

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

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

      - type: word
        words:
          - 'Error ConnectYourDomain occurred'
          - 'wixErrorPagesApp'
        condition: and

      - type: status
        status:
          - 404

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