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

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