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

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