id: intercom-takeover

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

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

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

      - type: word
        words:
          - '<h1 class="headline">Uh oh. That page doesn\’t exist.</h1>'
          - 'This page is reserved for artistic dogs.'
        condition: and

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