id: wix-takeover

info:
  name: Wix Takeover Detection
  author: harshinsecurity,philippedelteil,zy9ard3
  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,vuln

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

      - type: dsl
        dsl:
          - '!contains(host,"wix.com")'

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