id: hubspot-takeover

info:
  name: hubspot takeover detection
  author: pdteam
  severity: high
  description: hubspot takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/59
    - https://hackerone.com/reports/335330
  metadata:
    max-request: 1
  tags: takeover,hubspot,hackerone

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

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

      - type: word
        words:
          - "Domain not found"
          - "does not exist in our system"
        condition: and

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