id: canny-takeover

info:
  name: Canny Takeover Detection
  author: pdteam
  severity: high
  description: Canny takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/114
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - 'Company Not Found'
          - 'There is no such company. Did you enter the right URL?'
        condition: and

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