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

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