id: zendesk-takeover

info:
  name: Zendesk Takeover Detection
  author: pdteam
  severity: high
  description: Zendesk takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/23
    - https://hackerone.com/reports/869605
    - https://hackerone.com/reports/759454
  metadata:
    max-request: 1
  tags: takeover,zendesk,hackerone

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

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

      - type: word
        words:
          - "this help center no longer exists"
          - "Help Center Closed"
        condition: or

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