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

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: 4a0a00473045022061c1efac5cb5996750490b3608756592535d0517d96d5ed5b94fbc983974ecf6022100c0bd799c000902b2cf440a3f0bb9e209d1738ad4cd747a4e1c3aa7b7c34acd52:922c64590222798bb761d5b6d8e72950