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

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: 490a00463044022035328935465ac3d98bd71c8198094de77b850ea4d85294e2c43df9fe73af23c102201ebfdcfabc467d9ab6c48992a21cd414c9062755416b3d2faafe132013a7c252:922c64590222798bb761d5b6d8e72950