id: mashery-takeover

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

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

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

      - type: word
        words:
          - Unrecognized domain <strong>

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