id: agilecrm-takeover

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

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

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

      - type: word
        words:
          - Sorry, this page is no longer available.

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