id: tilda-takeover

info:
  name: tilda takeover detection
  author: pdteam
  severity: high
  description: Tilda takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/155
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - Please go to the site settings and put the domain name in the Domain tab.

      - type: word
        words:
          - "<title>Please renew your subscription</title>"
        negative: true

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