id: uservoice-takeover

info:
  name: Uservoice Takeover Detection
  author: MiryangJung
  severity: high
  description: Uservoice takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/163
    - https://hackerone.com/reports/269109
  metadata:
    max-request: 1
  tags: takeover,uservoice,hackerone

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

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

      - type: word
        words:
          - "This UserVoice subdomain is currently available!"

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