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,vuln

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: 490a00463044022065f1869833cb0d262f78d3f31ea77f2be0cdb2cf8c659110675c23dcffc45eb1022023a70ae55062441511876c626f7c525e235c730766efddd15d1be0ecbdd77d1d:922c64590222798bb761d5b6d8e72950