id: wishpond-takeover

info:
  name: Wishpond Takeover Detection
  author: pdteam
  severity: high
  description: Wishpond takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz
  metadata:
    max-request: 1
  tags: takeover,wishpond

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

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

      - type: word
        words:
          - https://www.wishpond.com/404?campaign=true
          - 'Oops! There isn’t a Wishpond Campaign published to this page.'
        condition: or

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