id: pagewiz-takeover

info:
  name: Pagewiz subdomain takeover
  author: brabbit10
  severity: high
  description: Pagewiz takeover was detected.
  reference:
    - https://help.pagewiz.com/hc/en-us/articles/115005391465-Page-URL
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - '404 - Page Not Found'
          - 'Start Your New Landing Page Now!'
          - 'pagewiz'
        condition: and

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