id: leadpages-takeover

info:
  name: Leadpages takeover detection
  author: philippedelteil
  severity: high
  description: Leadpages takeover was detected.
  reference:
    - https://www.youtube.com/watch?v=HRFplefT46U
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/166
    - https://github.com/PushpenderIndia/subdover/issues/2
  metadata:
    max-request: 1
  tags: takeover,leadpages

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

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

      - type: word
        words:
          - "<h1>We couldn't find that page</h1>"
          - "The page you’re looking for may have been moved"
          - "Double-check that you have the right web address and give it another go!"
        condition: or

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 490a004630440220670c11cc8ec0fc1ba4e78105121633be19237f4c3a65c23a1bf42ff1175163d90220249a12219ce3e956e7861bd4e888d76591592af2a0c631daaab9c72fc0a5cbe9:922c64590222798bb761d5b6d8e72950