id: surveysparrow-takeover

info:
  name: SurveySparrow takeover detection
  author: philippedelteil
  severity: high
  description: SurveySparrow takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/281
  metadata:
    max-request: 1
  tags: takeover,surveysparrow

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

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

      - type: word
        words:
          - "Account not found."
          - "ouch!"
          - "SurveySparrow"
        condition: and

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