id: vend-takeover

info:
  name: vend takeover detection
  author: pdteam
  severity: high
  description: vend 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:
          - Looks like you've traveled too far into cyberspace.

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