id: cargo-takeover

info:
  name: cargo takeover detection
  author: pdteam
  severity: high
  description: cargo takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - "If you're moving your domain away from Cargo you must make this configuration through your registrar's DNS control panel."

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