id: surge-takeover

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

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

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

      - type: word
        words:
          - project not found

      - type: status
        status:
          - 404

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